Skip to content

Commit d823aaa

Browse files
update defaultScalingConfiguration flag description
Signed-off-by: sbadiger <[email protected]>
1 parent 8311a89 commit d823aaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/instancegroup_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (r *InstanceGroupReconciler) Reconcile(ctxt context.Context, req ctrl.Reque
195195
ctx = eksfargate.New(input)
196196
}
197197

198-
// for igs without any config type mentioned, allow the default to be set to launchconfig.
198+
// for igs without any config type mentioned, allow overriding the default.
199199
overrides := v1alpha1.NewValidationOverrides(r.DefaultScalingConfiguration)
200200

201201
if err = input.InstanceGroup.Validate(overrides); err != nil {

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func main() {
8888
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")
8989
flag.BoolVar(&nodeRelabel, "node-relabel", true, "relabel nodes as they join with kubernetes.io/role label via controller")
9090
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 launchtemplates. Set this flag to true if launchconfigs needs to be the default.")
91+
flag.StringVar(&defaultScalingConfiguration, "", string(instancemgrv1alpha1.LaunchTemplate), "By default ASGs will have LaunchTemplate. Set this string to either 'LaunchConfiguration' or 'LaunchTemplate' to enforce defaults.")
9292

9393
flag.Parse()
9494
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))

0 commit comments

Comments
 (0)