Skip to content

Commit

Permalink
ceph: add missing rights rook-ceph-purge-osd account
Browse files Browse the repository at this point in the history
The purge osd job need to read and update persistentvolumeclaims
While the job doesn't failed with osd and deployments well deleted
The associated pvc is not deleted by the job as it failed to read it

Signed-off-by: n.fraison <n.fraison@criteo.com>
(cherry picked from commit 5150018)
  • Loading branch information
n.fraison authored and mergify-bot committed Sep 28, 2021
1 parent a1c6249 commit 16d37a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cluster/charts/rook-ceph-cluster/templates/role.yaml
Expand Up @@ -82,7 +82,7 @@ rules:
verbs: ["get", "list", "delete" ]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["delete"]
verbs: ["get", "update", "delete"]

{{- if .Values.monitoring.enabled }}
---
Expand Down
2 changes: 1 addition & 1 deletion cluster/charts/rook-ceph/templates/role.yaml
Expand Up @@ -188,5 +188,5 @@ rules:
verbs: ["get", "list", "delete" ]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["delete"]
verbs: ["get", "update", "delete"]
{{- end }}
Expand Up @@ -145,7 +145,7 @@ rules:
verbs: ["get", "list", "delete"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["delete"]
verbs: ["get", "update", "delete"]
---
# Allow the osd purge job to run in this namespace
kind: RoleBinding
Expand Down
2 changes: 1 addition & 1 deletion cluster/examples/kubernetes/ceph/common.yaml
Expand Up @@ -1232,7 +1232,7 @@ rules:
verbs: ["get", "list", "delete"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["delete"]
verbs: ["get", "update", "delete"]
---
# Allow the osd purge job to run in this namespace
kind: RoleBinding
Expand Down

0 comments on commit 16d37a1

Please sign in to comment.