You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/02/12 16:38:22 UTC
[camel-k] 04/08: chore(rbac): Aggregated roles are installed by OLM
or the CLI
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit e4941e11087f603bc6bae6dbda8fc70514ce2adc
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Thu Feb 11 18:17:37 2021 +0100
chore(rbac): Aggregated roles are installed by OLM or the CLI
---
pkg/install/optional.go | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/pkg/install/optional.go b/pkg/install/optional.go
index aec9d04..473a66f 100644
--- a/pkg/install/optional.go
+++ b/pkg/install/optional.go
@@ -35,17 +35,6 @@ func OperatorStartupOptionalTools(ctx context.Context, c client.Client, namespac
log.V(8).Info("Error while installing OpenShift CLI download link", "error", err)
}
- // Try to register the cluster role for standard admin and edit users
- if clusterRoleInstalled, err := isClusterRoleInstalled(ctx, c, "camel-k:edit"); err != nil {
- log.Info("Cannot detect user cluster role: skipping.")
- log.V(8).Info("Error while getting user cluster role", "error", err)
- } else if !clusterRoleInstalled {
- if err := installClusterRole(ctx, c, nil, "/rbac/user-cluster-role.yaml"); err != nil {
- log.Info("Cannot install user cluster role: skipping.")
- log.V(8).Info("Error while installing user cluster role", "error", err)
- }
- }
-
// Try to install Kamelet Catalog automatically
var kameletNamespace string
globalOperator := false