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
ctx.Log.Info("using amazon linux os family annotation", "value", v)
152
153
returnannotations[OsFamilyAnnotation]
153
154
}
154
155
ctx.Log.Info("used unsupported annotation value '%v=%v', will default to 'amazonlinux2', allowed values: %+v", OsFamilyAnnotation, v, AllowedOsFamilies)
Copy file name to clipboardExpand all lines: main.go
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,6 @@ func main() {
80
80
configRetentionint
81
81
errerror
82
82
defaultScalingConfigurationstring
83
-
amazonLinuxOsFamilystring
84
83
)
85
84
86
85
flag.IntVar(&maxParallel, "max-workers", 5, "The number of maximum parallel reconciles")
@@ -94,7 +93,6 @@ func main() {
94
93
flag.BoolVar(&nodeRelabel, "node-relabel", true, "relabel nodes as they join with kubernetes.io/role label via controller")
95
94
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")
96
95
flag.StringVar(&defaultScalingConfiguration, "default-scaling-configuration", "LaunchTemplate", "By default ASGs will have LaunchTemplate. Set this string to either 'LaunchConfiguration' or 'LaunchTemplate' to enforce defaults.")
97
-
flag.StringVar(&amazonLinuxOsFamily, "amazon-linux-os-family", "", "Setting this determines the amazon linux os family version for instance groups. Set this string to 'amazonlinux2023' or 'amazonlinux2'.")
98
96
flag.Parse()
99
97
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
100
98
@@ -175,7 +173,6 @@ func main() {
175
173
Aws: awsWorker,
176
174
Kubernetes: kube,
177
175
},
178
-
AmazonLinuxOsFamily: amazonLinuxOsFamily,
179
176
}).SetupWithManager(mgr)
180
177
iferr!=nil {
181
178
setupLog.Error(err, "unable to create controller", "controller", "instancegroup")
0 commit comments