@@ -129,7 +129,6 @@ func main() {
129129 var ingressControllerClassName string
130130 var ingressControllerTLSSecretName string
131131 var ingressHostSuffix string
132- var enableLWS bool
133132 var groveTerminationDelay time.Duration
134133 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":8080" , "The address the metric endpoint binds to." )
135134 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":8081" , "The address the probe endpoint binds to." )
@@ -156,8 +155,6 @@ func main() {
156155 "The name of the ingress controller TLS secret to use" )
157156 flag .StringVar (& ingressHostSuffix , "ingress-host-suffix" , "" ,
158157 "The suffix to use for the ingress host" )
159- flag .BoolVar (& enableLWS , "enable-lws" , false ,
160- "If set, enable leader worker set" )
161158 flag .DurationVar (& groveTerminationDelay , "grove-termination-delay" , consts .DefaultGroveTerminationDelay ,
162159 "The termination delay for Grove PodGangSets" )
163160 opts := zap.Options {
@@ -168,11 +165,13 @@ func main() {
168165
169166 ctrlConfig := commonController.Config {
170167 RestrictedNamespace : restrictedNamespace ,
171- EnableLWS : enableLWS ,
172168 Grove : commonController.GroveConfig {
173169 Enabled : false , // Will be set after Grove discovery
174170 TerminationDelay : groveTerminationDelay ,
175171 },
172+ LWS : commonController.LWSConfig {
173+ Enabled : false , // Will be set after LWS discovery
174+ },
176175 EtcdAddress : etcdAddr ,
177176 NatsAddress : natsAddr ,
178177 IngressConfig : commonController.IngressConfig {
@@ -240,10 +239,13 @@ func main() {
240239 os .Exit (1 )
241240 }
242241
243- // Detect Grove availability using discovery client
242+ // Detect orchestrators availability using discovery client
244243 setupLog .Info ("Detecting Grove availability..." )
245244 groveEnabled := commonController .DetectGroveAvailability (mainCtx , mgr )
246245 ctrlConfig .Grove .Enabled = groveEnabled
246+ setupLog .Info ("Detecting LWS availability..." )
247+ lwsEnabled := commonController .DetectLWSAvailability (mainCtx , mgr )
248+ ctrlConfig .LWS .Enabled = lwsEnabled
247249
248250 // Create etcd client
249251 cli , err := clientv3 .New (clientv3.Config {
0 commit comments