Validate the cloud-provider passed in and the corresponding feature flags

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas
2023-09-01 07:01:05 -04:00
parent 42e8cfa28a
commit ceaed508ce
4 changed files with 39 additions and 21 deletions

View File

@@ -229,13 +229,14 @@ const (
// owner: @andrewsykim
// alpha: v1.22
// beta: v1.28
// beta: v1.29
//
// Disable any functionality in kube-apiserver, kube-controller-manager and kubelet related to the `--cloud-provider` component flag.
DisableCloudProviders featuregate.Feature = "DisableCloudProviders"
// owner: @andrewsykim
// alpha: v1.23
// beta: v1.29
//
// Disable in-tree functionality in kubelet to authenticate to cloud provider container registries for image pull credentials.
DisableKubeletCloudCredentialProviders featuregate.Feature = "DisableKubeletCloudCredentialProviders"