diff --git a/cmd/kubelet/app/options/globalflags_providers.go b/cmd/kubelet/app/options/globalflags_providers.go index 9fde6b7f4f2..100c575846c 100644 --- a/cmd/kubelet/app/options/globalflags_providers.go +++ b/cmd/kubelet/app/options/globalflags_providers.go @@ -27,4 +27,5 @@ func addLegacyCloudProviderCredentialProviderFlags(global, local *pflag.FlagSet) // TODO(#58034): This is not a static file, so it's not quite as straightforward as --google-json-key. // We need to figure out how ACR users can dynamically provide pull credentials before we can deprecate this. pflagRegister(global, local, "azure-container-registry-config") + local.MarkDeprecated("azure-container-registry-config", "Use --image-credential-provider-config and --image-credential-provider-bin-dir to setup acr credential provider instead. Will be removed in a future release.") }