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 2020/03/31 18:03:37 UTC

[camel-k] branch master updated: fix #1382: add permissions on olm and helm

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 237ab29  fix #1382: add permissions on olm and helm
237ab29 is described below

commit 237ab293213ac2477f039e70afd28af412e4bcd1
Author: Nicola Ferraro <ni...@gmail.com>
AuthorDate: Tue Mar 31 18:32:21 2020 +0200

    fix #1382: add permissions on olm and helm
---
 ...mel-k.v1.0.0-snapshot.clusterserviceversion.yaml | 13 +++++++++++++
 deploy/operator-role-olm.yaml                       | 13 +++++++++++++
 helm/camel-k/templates/operator-role.yaml           | 21 +++++++++++++++++++++
 3 files changed, 47 insertions(+)

diff --git a/deploy/olm-catalog/camel-k/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml
index 55cbed7..e3390d8 100644
--- a/deploy/olm-catalog/camel-k/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml
+++ b/deploy/olm-catalog/camel-k/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml
@@ -409,6 +409,19 @@ spec:
           - clusterroles
           verbs:
           - bind
+        - apiGroups:
+          - monitoring.coreos.com
+          resources:
+          - servicemonitors
+          verbs:
+          - create
+          - delete
+          - deletecollection
+          - get
+          - list
+          - patch
+          - update
+          - watch
         serviceAccountName: camel-k-operator
     strategy: deployment
   installModes:
diff --git a/deploy/operator-role-olm.yaml b/deploy/operator-role-olm.yaml
index abc68c4..d5ac5f4 100644
--- a/deploy/operator-role-olm.yaml
+++ b/deploy/operator-role-olm.yaml
@@ -221,3 +221,16 @@ rules:
   - bind
   resourceNames:
   - system:image-builder
+- apiGroups:
+  - monitoring.coreos.com
+  resources:
+  - servicemonitors
+  verbs:
+  - create
+  - delete
+  - deletecollection
+  - get
+  - list
+  - patch
+  - update
+  - watch
diff --git a/helm/camel-k/templates/operator-role.yaml b/helm/camel-k/templates/operator-role.yaml
index 8f3989c..46948b2 100644
--- a/helm/camel-k/templates/operator-role.yaml
+++ b/helm/camel-k/templates/operator-role.yaml
@@ -214,3 +214,24 @@ rules:
   - patch
   - update
   - watch
+- apiGroups:
+  - rbac.authorization.k8s.io
+  resources:
+  - clusterroles
+  verbs:
+  - bind
+  resourceNames:
+  - system:image-builder
+- apiGroups:
+  - monitoring.coreos.com
+  resources:
+  - servicemonitors
+  verbs:
+  - create
+  - delete
+  - deletecollection
+  - get
+  - list
+  - patch
+  - update
+  - watch