mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 14:36:32 +00:00
Fix rolling update of nginx-proxy for worker and etcd
This commit is contained in:
@@ -293,7 +293,9 @@ func IsContainerUpgradable(ctx context.Context, dClient *client.Client, imageCfg
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
if containerInspect.Config.Image != imageCfg.Image || !reflect.DeepEqual(containerInspect.Config.Cmd, imageCfg.Cmd) {
|
||||
if containerInspect.Config.Image != imageCfg.Image ||
|
||||
!reflect.DeepEqual(containerInspect.Config.Cmd, imageCfg.Cmd) ||
|
||||
!reflect.DeepEqual(containerInspect.Config.Env, imageCfg.Env) {
|
||||
logrus.Debugf("[%s] Container [%s] is eligible for updgrade on host [%s]", plane, containerName, hostname)
|
||||
return true, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user