diff --git a/cluster-autoscaler/config/autoscaling_options.go b/cluster-autoscaler/config/autoscaling_options.go index 0850874b03..10d47173f8 100644 --- a/cluster-autoscaler/config/autoscaling_options.go +++ b/cluster-autoscaler/config/autoscaling_options.go @@ -137,4 +137,6 @@ type AutoscalingOptions struct { IgnoredTaints []string // AWSUseStaticInstanceList tells if AWS cloud provider use static instance type list or dynamically fetch from remote APIs. AWSUseStaticInstanceList bool + // Path to kube configuration if available + KubeConfigPath string } diff --git a/cluster-autoscaler/main.go b/cluster-autoscaler/main.go index 7d1cc5e117..cf5f18bd92 100644 --- a/cluster-autoscaler/main.go +++ b/cluster-autoscaler/main.go @@ -235,6 +235,7 @@ func createAutoscalingOptions() config.AutoscalingOptions { Regional: *regional, NewPodScaleUpDelay: *newPodScaleUpDelay, IgnoredTaints: *ignoreTaintsFlag, + KubeConfigPath: *kubeConfigFile, NodeDeletionDelayTimeout: *nodeDeletionDelayTimeout, AWSUseStaticInstanceList: *awsUseStaticInstanceList, }