Revert "Removed unnecessary use of fmt.Sprintf"

This reverts commit e71b5c0679.
This commit is contained in:
Nils Carstensen 2024-08-24 23:41:02 +02:00
parent e71b5c0679
commit f1e1f59c21
No known key found for this signature in database
GPG Key ID: 1F25989330BF84C3

View File

@ -50,7 +50,7 @@ type ContainerRuntimeOptions struct {
func (s *ContainerRuntimeOptions) AddFlags(fs *pflag.FlagSet) {
// General settings.
fs.StringVar(&s.RuntimeCgroups, "runtime-cgroups", s.RuntimeCgroups, "Optional absolute name of cgroups to create and run the runtime in.")
fs.StringVar(&s.PodSandboxImage, "pod-infra-container-image", s.PodSandboxImage, fmt.Sprint("Specified image will not be pruned by the image garbage collector. CRI implementations have their own configuration to set this image."))
fs.StringVar(&s.PodSandboxImage, "pod-infra-container-image", s.PodSandboxImage, fmt.Sprintf("Specified image will not be pruned by the image garbage collector. CRI implementations have their own configuration to set this image."))
_ = fs.MarkDeprecated("pod-infra-container-image", "will be removed in 1.35. Image garbage collector will get sandbox image information from CRI.")
// Image credential provider settings.