From 9b705d447e480a7b6e24a13b25ccb0e0e22dd192 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 c72d2c188d9c..1fe3dfe2a9e5 100644 --- a/pkg/daemons/agent/agent_linux.go +++ b/pkg/daemons/agent/agent_linux.go @@ -99,9 +99,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 3154d94e1bd3..00a3a5ac0c73 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 }