mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
feat: do not redeploy global service if spec hasn't changed
This commit is contained in:
@@ -47,8 +47,8 @@ func (cli *Client) CreateContainer(
|
||||
api.LabelManaged: "",
|
||||
},
|
||||
}
|
||||
if spec.Mode == api.ServiceModeGlobal {
|
||||
config.Labels[api.LabelServiceMode] = api.ServiceModeGlobal
|
||||
if spec.Mode != "" {
|
||||
config.Labels[api.LabelServiceMode] = spec.Mode
|
||||
}
|
||||
|
||||
if len(spec.Ports) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user