1
0
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:
galal-hussein
2018-03-30 01:43:02 +02:00
parent 228423358a
commit 36e37d58f3
2 changed files with 7 additions and 0 deletions

View File

@@ -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