mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
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:
commit
26c3f66887
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user