chore: trim spaces for x-caddy, diff Caddy configs when comparing service specs

This commit is contained in:
Pasha Sviderski committed 2025-08-13 19:27:40 +10:00
1 parent 12c07812a2
commit dd7bc6c982
5 files changed
+101 -11

No files matched your search

+4
View File
@@ -72,6 +72,10 @@ func EvalContainerSpecChange(current api.ServiceSpec, new api.ServiceSpec) Conta
}
// Check if any mutable properties changed.
if !current.Caddy.Equals(new.Caddy) {
return ContainerNeedsRecreate
}
if !reflect.DeepEqual(current.Container.Resources, newResources) {
return ContainerNeedsUpdate
}