You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2019/10/18 20:59:50 UTC
[camel-k] branch master updated: fix #985: add correct clusterroles
for knative in global mode
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push:
new bc79ee5 fix #985: add correct clusterroles for knative in global mode
bc79ee5 is described below
commit bc79ee5cf075f5e3d0a94c198010a880097a1a31
Author: nferraro <ni...@gmail.com>
AuthorDate: Fri Oct 18 15:54:32 2019 +0200
fix #985: add correct clusterroles for knative in global mode
---
pkg/install/operator.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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 @@ func OperatorOrCollect(ctx context.Context, c client.Client, cfg OperatorConfigu
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 installKubernetes(ctx context.Context, c client.Client, namespace string, c
)
}
-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",
)