mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-27 19:43:34 +00:00
feat: do not redeploy global service if spec hasn't changed
This commit is contained in:
@@ -120,7 +120,10 @@ func reconcileGlobalContainer(
|
||||
continue
|
||||
}
|
||||
|
||||
svcSpec := c.Container.ServiceSpec()
|
||||
svcSpec, err := c.Container.ServiceSpec()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("get service spec: %w", err)
|
||||
}
|
||||
if svcSpec.Equals(spec) {
|
||||
// The container is already running with the same spec.
|
||||
upToDate = true
|
||||
|
||||
Reference in New Issue
Block a user