Deprecate pod-infra-container-image kubelet flag (#7409)

Signed-off-by: Derek Nola <derek.nola@suse.com>
pull/10077/head
Derek Nola 7 months ago committed by GitHub
parent 144f5ad333
commit 6531fb79b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -112,9 +112,6 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
argsMap["container-runtime-endpoint"] = socketPrefix + cfg.RuntimeSocket argsMap["container-runtime-endpoint"] = socketPrefix + cfg.RuntimeSocket
} }
} }
if cfg.PauseImage != "" {
argsMap["pod-infra-container-image"] = cfg.PauseImage
}
if cfg.ImageServiceSocket != "" { if cfg.ImageServiceSocket != "" {
if strings.HasPrefix(cfg.ImageServiceSocket, socketPrefix) { if strings.HasPrefix(cfg.ImageServiceSocket, socketPrefix) {
argsMap["image-service-endpoint"] = cfg.ImageServiceSocket argsMap["image-service-endpoint"] = cfg.ImageServiceSocket

@ -81,9 +81,6 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
argsMap["container-runtime-endpoint"] = socketPrefix + cfg.RuntimeSocket argsMap["container-runtime-endpoint"] = socketPrefix + cfg.RuntimeSocket
} }
} }
if cfg.PauseImage != "" {
argsMap["pod-infra-container-image"] = cfg.PauseImage
}
if cfg.ListenAddress != "" { if cfg.ListenAddress != "" {
argsMap["address"] = cfg.ListenAddress argsMap["address"] = cfg.ListenAddress
} }

Loading…
Cancel
Save