This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 05a8f8e6a5c59d4ff669acb79f8f1bbede487bf5 Author: nicolaferraro <[email protected]> AuthorDate: Thu Oct 7 16:38:40 2021 +0200 chore: allow multiple global operators to be installed by renaming clusterrolebindings --- pkg/install/operator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/install/operator.go b/pkg/install/operator.go index 6fa8344..c4dc68f 100644 --- a/pkg/install/operator.go +++ b/pkg/install/operator.go @@ -189,7 +189,7 @@ func OperatorOrCollect(ctx context.Context, c client.Client, cfg OperatorConfigu o = &rbacv1.ClusterRoleBinding{ ObjectMeta: metav1.ObjectMeta{ Namespace: cfg.Namespace, - Name: rb.Name, + Name: fmt.Sprintf("%s-%s", rb.Name, cfg.Namespace), Labels: map[string]string{ "app": "camel-k", },
