@@ -46,6 +46,7 @@ import (
4646 rabbitmqv1 "github.com/openstack-k8s-operators/infra-operator/apis/rabbitmq/v1beta1"
4747 topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
4848 keystonev1 "github.com/openstack-k8s-operators/keystone-operator/api/v1beta1"
49+ "github.com/openstack-k8s-operators/lib-common/modules/common/operator"
4950 mariadbv1beta1 "github.com/openstack-k8s-operators/mariadb-operator/api/v1beta1"
5051 rabbitmqclusterv1 "github.com/rabbitmq/cluster-operator/api/v1beta1"
5152 monv1 "github.com/rhobs/obo-prometheus-operator/pkg/apis/monitoring/v1"
@@ -109,7 +110,7 @@ func main() {
109110 c .NextProtos = []string {"http/1.1" }
110111 }
111112
112- mgr , err := ctrl . NewManager ( ctrl . GetConfigOrDie (), ctrl.Options {
113+ options := ctrl.Options {
113114 Scheme : scheme ,
114115 Metrics : metricsserver.Options {
115116 BindAddress : metricsAddr ,
@@ -122,7 +123,15 @@ func main() {
122123 Port : 9443 ,
123124 TLSOpts : []func (config * tls.Config ){disableHTTP2 },
124125 }),
125- })
126+ }
127+
128+ err := operator .SetManagerOptions (& options , setupLog )
129+ if err != nil {
130+ setupLog .Error (err , "unable to set manager options" )
131+ os .Exit (1 )
132+ }
133+
134+ mgr , err := ctrl .NewManager (ctrl .GetConfigOrDie (), options )
126135 if err != nil {
127136 setupLog .Error (err , "unable to start manager" )
128137 os .Exit (1 )
0 commit comments