Merge pull request #120903 from dims/deprecate-cloud-provider-and-config-cli-params

Deprecate cloud-provider/cloud-config in apiserver CLI
This commit is contained in:
Kubernetes Prow Robot 2023-09-27 18:17:33 -07:00 committed by GitHub
commit 26c3f66887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,8 @@ func (s *CloudProviderOptions) Validate() []error {
func (s *CloudProviderOptions) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.CloudProvider, "cloud-provider", s.CloudProvider,
"The provider for cloud services. Empty string for no provider.")
fs.MarkDeprecated("cloud-provider", "will be removed in a future version") // nolint: errcheck
fs.StringVar(&s.CloudConfigFile, "cloud-config", s.CloudConfigFile,
"The path to the cloud provider configuration file. Empty string for no configuration file.")
fs.MarkDeprecated("cloud-config", "will be removed in a future version") // nolint: errcheck
}