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
Copy file name to clipboardExpand all lines: main.go
+26-22Lines changed: 26 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -65,16 +65,17 @@ func main() {
65
65
printVersion()
66
66
67
67
var (
68
-
metricsAddrstring
69
-
configNamespacestring
70
-
spotRecommendationTimefloat64
71
-
enableLeaderElectionbool
72
-
nodeRelabelbool
73
-
disableWinClusterInjectionbool
74
-
maxParallelint
75
-
maxAPIRetriesint
76
-
configRetentionint
77
-
errerror
68
+
metricsAddrstring
69
+
configNamespacestring
70
+
spotRecommendationTimefloat64
71
+
enableLeaderElectionbool
72
+
nodeRelabelbool
73
+
disableWinClusterInjectionbool
74
+
maxParallelint
75
+
maxAPIRetriesint
76
+
configRetentionint
77
+
errerror
78
+
defaultScalingConfigurationstring
78
79
)
79
80
80
81
flag.IntVar(&maxParallel, "max-workers", 5, "The number of maximum parallel reconciles")
@@ -87,6 +88,7 @@ func main() {
87
88
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")
88
89
flag.BoolVar(&nodeRelabel, "node-relabel", true, "relabel nodes as they join with kubernetes.io/role label via controller")
89
90
flag.BoolVar(&disableWinClusterInjection, "disable-windows-cluster-ca-injection", false, "Setting this to true will cause the ClusterCA and Endpoint to not be injected for Windows nodes")
91
+
flag.StringVar(&defaultScalingConfiguration, "", string(instancemgrv1alpha1.LaunchTemplate), "By default ASGs will have LaunchTemplate. Set this string to either 'LaunchConfiguration' or 'LaunchTemplate' to enforce defaults.")
90
92
91
93
flag.Parse()
92
94
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
@@ -149,19 +151,21 @@ func main() {
149
151
setupLog.Info("instance-manager configmap does not exist, will not load defaults/boundaries")
0 commit comments