fix #985: add correct clusterroles for knative in global mode
diff --git a/pkg/install/operator.go b/pkg/install/operator.go
index e5cfc64..27580f3 100644
--- a/pkg/install/operator.go
+++ b/pkg/install/operator.go
@@ -122,7 +122,7 @@
return err
}
if isKnative {
- return installKnative(ctx, c, cfg.Namespace, collection)
+ return installKnative(ctx, c, cfg.Namespace, customizer, collection)
}
return nil
}
@@ -145,8 +145,8 @@
)
}
-func installKnative(ctx context.Context, c client.Client, namespace string, collection *kubernetes.Collection) error {
- return ResourcesOrCollect(ctx, c, namespace, collection, IdentityResourceCustomizer,
+func installKnative(ctx context.Context, c client.Client, namespace string, customizer ResourceCustomizer, collection *kubernetes.Collection) error {
+ return ResourcesOrCollect(ctx, c, namespace, collection, customizer,
"operator-role-knative.yaml",
"operator-role-binding-knative.yaml",
)