Skip to content

Commit

Permalink
OADP 486 - Update velero service account permissions (#673)
Browse files Browse the repository at this point in the history
* OADP 486 - Update velero service account permissions

* Add back velero-privileged
  • Loading branch information
dymurray authored May 9, 2022
1 parent a14908e commit 3612b14
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
33 changes: 33 additions & 0 deletions bundle/manifests/oadp-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,41 @@ spec:
serviceAccountName: openshift-adp-controller-manager
- rules:
- apiGroups:
- build.openshift.io
- migration.openshift.io
- rbac.authorization.k8s.io
- velero.io
resources:
- '*'
verbs:
- '*'
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- '*'
- apiGroups:
- packages.operators.coreos.com
resources:
- packagemanifests
verbs:
- '*'
- apiGroups:
- '*'
resources:
- '*'
verbs:
- get
- watch
- list
- update
- patch
- create
- delete
- assign
- deletecollection
- nonResourceURLs:
- '*'
verbs:
- '*'
Expand Down
34 changes: 33 additions & 1 deletion config/velero/velero-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,48 @@ metadata:
name: velero-role
rules:
- apiGroups:
- build.openshift.io
- migration.openshift.io
- rbac.authorization.k8s.io
- velero.io
resources:
- '*'
verbs:
- '*'
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- '*'
- apiGroups:
- packages.operators.coreos.com
resources:
- packagemanifests
verbs:
- '*'
- apiGroups:
- '*'
resources:
- '*'
verbs:
- get
- watch
- list
- update
- patch
- create
- delete
- assign
- deletecollection
- nonResourceURLs:
- '*'
verbs:
- '*'
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
- velero-privileged
resources:
- securitycontextconstraints
verbs:
Expand Down

0 comments on commit 3612b14

Please sign in to comment.