Commit 360f18d1 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Always set pod-infra-container-image to protect it from image GC

parent 0710a719
......@@ -96,7 +96,8 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
if cfg.RuntimeSocket != "" {
argsMap["serialize-image-pulls"] = "false"
checkRuntimeEndpoint(cfg, argsMap)
} else if cfg.PauseImage != "" {
}
if cfg.PauseImage != "" {
argsMap["pod-infra-container-image"] = cfg.PauseImage
}
if cfg.ImageServiceSocket != "" {
......
......@@ -88,7 +88,8 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
argsMap["container-runtime"] = "remote"
argsMap["serialize-image-pulls"] = "false"
checkRuntimeEndpoint(cfg, argsMap)
} else if cfg.PauseImage != "" {
}
if cfg.PauseImage != "" {
argsMap["pod-infra-container-image"] = cfg.PauseImage
}
if cfg.ListenAddress != "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment