File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,13 +71,17 @@ func main() {
7171 os .Exit (1 )
7272 }
7373
74- if err = (& controllers.FunctionMeshReconciler {
75- Client : mgr .GetClient (),
76- Log : ctrl .Log .WithName ("controllers" ).WithName ("FunctionMesh" ),
77- Scheme : mgr .GetScheme (),
78- }).SetupWithManager (mgr ); err != nil {
79- setupLog .Error (err , "unable to create controller" , "controller" , "FunctionMesh" )
80- os .Exit (1 )
74+ // allow function mesh to be disabled and enable it by default
75+ // required because of https://github.com/operator-framework/operator-lifecycle-manager/issues/1523
76+ if os .Getenv ("ENABLE_FUNCTION_MESH_CONTROLLER" ) == "false" {
77+ if err = (& controllers.FunctionMeshReconciler {
78+ Client : mgr .GetClient (),
79+ Log : ctrl .Log .WithName ("controllers" ).WithName ("FunctionMesh" ),
80+ Scheme : mgr .GetScheme (),
81+ }).SetupWithManager (mgr ); err != nil {
82+ setupLog .Error (err , "unable to create controller" , "controller" , "FunctionMesh" )
83+ os .Exit (1 )
84+ }
8185 }
8286 if err = (& controllers.FunctionReconciler {
8387 Client : mgr .GetClient (),
You can’t perform that action at this time.
0 commit comments