Deprecate cloud-provider/cloud-config in apiserver CLI

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2023-09-26 15:22:56 -04:00
parent 139fa69620
commit 4d2d9947bf
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59

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
}