Skip to content

Commit ec2f327

Browse files
committed
[NE-2183] Initialize gateway-status controller
1 parent 4ba20ef commit ec2f327

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/operator/operator.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import (
3636
dnscontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/dns"
3737
gatewaylabelercontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/gateway-labeler"
3838
gatewayservicednscontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/gateway-service-dns"
39+
gatewaystatuscontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/gateway-status"
3940
gatewayapicontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/gatewayapi"
4041
gatewayclasscontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/gatewayclass"
4142
ingress "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/ingress"
@@ -334,6 +335,12 @@ func New(config operatorconfig.Config, kubeConfig *rest.Config) (*Operator, erro
334335
return nil, fmt.Errorf("failed to create gateway-labeler controller: %w", err)
335336
}
336337

338+
// Set up the gateway-status controller.
339+
gatewayStatusController, err := gatewaystatuscontroller.NewUnmanaged(mgr)
340+
if err != nil {
341+
return nil, fmt.Errorf("failed to create gateway-status controller: %w", err)
342+
}
343+
337344
// Set up the gatewayapi controller.
338345
if _, err := gatewayapicontroller.New(mgr, gatewayapicontroller.Config{
339346
GatewayAPIEnabled: gatewayAPIEnabled,
@@ -344,6 +351,7 @@ func New(config operatorconfig.Config, kubeConfig *rest.Config) (*Operator, erro
344351
gatewayClassController,
345352
gatewayServiceDNSController,
346353
gatewayLabelController,
354+
gatewayStatusController,
347355
},
348356
}); err != nil {
349357
return nil, fmt.Errorf("failed to create gatewayapi controller: %w", err)

0 commit comments

Comments
 (0)