kubelet: mark '--azure-container-registry-config' flag as deprecated

This commit is contained in:
SataQiu 2023-06-10 00:52:01 +08:00
parent c840c94755
commit 910630fbea

View File

@ -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.")
}