mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 06:56:29 +00:00
make psp upgradable for kubeapi
This commit is contained in:
@@ -296,6 +296,7 @@ func IsContainerUpgradable(ctx context.Context, dClient *client.Client, imageCfg
|
||||
return false, err
|
||||
}
|
||||
if containerInspect.Config.Image != imageCfg.Image ||
|
||||
!reflect.DeepEqual(containerInspect.Config.Entrypoint, imageCfg.Entrypoint) ||
|
||||
!reflect.DeepEqual(containerInspect.Config.Cmd, imageCfg.Cmd) {
|
||||
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