From e544c92dad6a15da85cfab57e8f80e6a481f7cb3 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Tue, 2 May 2023 12:13:25 -0700 Subject: [PATCH] Deprecate pod-infra-container-image kubelet flag Signed-off-by: Derek Nola --- pkg/daemons/agent/agent_linux.go | 3 --- pkg/daemons/agent/agent_windows.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/pkg/daemons/agent/agent_linux.go b/pkg/daemons/agent/agent_linux.go index 23f7b46a6438..5e22fbc085f7 100644 --- a/pkg/daemons/agent/agent_linux.go +++ b/pkg/daemons/agent/agent_linux.go @@ -112,9 +112,6 @@ func kubeletArgs(cfg *config.Agent) map[string]string { argsMap["container-runtime-endpoint"] = socketPrefix + cfg.RuntimeSocket } } - if cfg.PauseImage != "" { - argsMap["pod-infra-container-image"] = cfg.PauseImage - } if cfg.ImageServiceSocket != "" { if strings.HasPrefix(cfg.ImageServiceSocket, socketPrefix) { argsMap["image-service-endpoint"] = cfg.ImageServiceSocket diff --git a/pkg/daemons/agent/agent_windows.go b/pkg/daemons/agent/agent_windows.go index eb020afdb8e5..69995f5e9f7e 100644 --- a/pkg/daemons/agent/agent_windows.go +++ b/pkg/daemons/agent/agent_windows.go @@ -81,9 +81,6 @@ func kubeletArgs(cfg *config.Agent) map[string]string { argsMap["container-runtime-endpoint"] = socketPrefix + cfg.RuntimeSocket } } - if cfg.PauseImage != "" { - argsMap["pod-infra-container-image"] = cfg.PauseImage - } if cfg.ListenAddress != "" { argsMap["address"] = cfg.ListenAddress }