You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cluster-autoscaler] Support using --cloud-config for clusterapi provider
- Leverage --cloud-config to allow for providing a separate kubeconfig for Cluster API management and workload cluster resources
- Allow for fallback to previous behavior when --cloud-config is not specified for backward compatibility
- Provides a --clusterapi-cloud-config-authoritative flag to disable the above fallback behavior and allow for both the management and workload cluster clients to use the in-cluster config
Copy file name to clipboardExpand all lines: cluster-autoscaler/main.go
+54-52Lines changed: 54 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -169,10 +169,11 @@ var (
169
169
regional=flag.Bool("regional", false, "Cluster is regional.")
170
170
newPodScaleUpDelay=flag.Duration("new-pod-scale-up-delay", 0*time.Second, "Pods less than this old will not be considered for scale-up.")
171
171
172
-
ignoreTaintsFlag=multiStringFlag("ignore-taint", "Specifies a taint to ignore in node templates when considering to scale a node group")
173
-
balancingIgnoreLabelsFlag=multiStringFlag("balancing-ignore-label", "Specifies a label to ignore in addition to the basic and cloud-provider set of labels when comparing if two node groups are similar")
174
-
awsUseStaticInstanceList=flag.Bool("aws-use-static-instance-list", false, "Should CA fetch instance types in runtime or use a static list. AWS only")
ignoreTaintsFlag=multiStringFlag("ignore-taint", "Specifies a taint to ignore in node templates when considering to scale a node group")
173
+
balancingIgnoreLabelsFlag=multiStringFlag("balancing-ignore-label", "Specifies a label to ignore in addition to the basic and cloud-provider set of labels when comparing if two node groups are similar")
174
+
awsUseStaticInstanceList=flag.Bool("aws-use-static-instance-list", false, "Should CA fetch instance types in runtime or use a static list. AWS only")
clusterAPICloudConfigAuthoritative=flag.Bool("clusterapi-cloud-config-authoritative", false, "Treat the cloud-config flag authoritatively (do not fallback to using kubeconfig flag). ClusterAPI only")
0 commit comments