Skip to content

Commit

Permalink
fix apache#1382: add permissions on olm and helm
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Mar 31, 2020
1 parent 6204cb0 commit eedc8f6
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 13 additions & 0 deletions deploy/operator-role-olm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
21 changes: 21 additions & 0 deletions helm/camel-k/templates/operator-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eedc8f6

Please sign in to comment.