From e03d7d3fddcbcd4c2773b1400e23754980fdd417 Mon Sep 17 00:00:00 2001 From: Aditi Sharma Date: Fri, 17 Dec 2021 09:43:54 +0530 Subject: [PATCH] Mark container-runtime flag as deprecated Signed-off-by: Aditi Sharma --- pkg/kubelet/config/flags.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kubelet/config/flags.go b/pkg/kubelet/config/flags.go index 80d0c77f41d..53a1b00dee2 100644 --- a/pkg/kubelet/config/flags.go +++ b/pkg/kubelet/config/flags.go @@ -86,7 +86,8 @@ func (s *ContainerRuntimeOptions) AddFlags(fs *pflag.FlagSet) { dockerOnlyWarning := "This docker-specific flag only works when container-runtime is set to docker." // General settings. - fs.StringVar(&s.ContainerRuntime, "container-runtime", s.ContainerRuntime, "The container runtime to use. Possible values: 'docker', 'remote'.") + fs.StringVar(&s.ContainerRuntime, "container-runtime", s.ContainerRuntime, "The container runtime to use. Possible value: 'remote'.") + fs.MarkDeprecated("container-runtime", "will be removed in 1.27 as the only valid value is 'remote'") fs.StringVar(&s.RuntimeCgroups, "runtime-cgroups", s.RuntimeCgroups, "Optional absolute name of cgroups to create and run the runtime in.") // Docker-specific settings.