Skip to content

Commit 1efc258

Browse files
committed
config/options: add KubeConfigPath
Access to this is required by cloudprovider/clusterapi.
1 parent 4efe655 commit 1efc258

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

cluster-autoscaler/config/autoscaling_options.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,6 @@ type AutoscalingOptions struct {
137137
IgnoredTaints []string
138138
// AWSUseStaticInstanceList tells if AWS cloud provider use static instance type list or dynamically fetch from remote APIs.
139139
AWSUseStaticInstanceList bool
140+
// Path to kube configuration if available
141+
KubeConfigPath string
140142
}

cluster-autoscaler/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ func createAutoscalingOptions() config.AutoscalingOptions {
235235
Regional: *regional,
236236
NewPodScaleUpDelay: *newPodScaleUpDelay,
237237
IgnoredTaints: *ignoreTaintsFlag,
238+
KubeConfigPath: *kubeConfigFile,
238239
NodeDeletionDelayTimeout: *nodeDeletionDelayTimeout,
239240
AWSUseStaticInstanceList: *awsUseStaticInstanceList,
240241
}

0 commit comments

Comments
 (0)