Skip to content

Commit

Permalink
fix: add deletion permission to cluster role
Browse files Browse the repository at this point in the history
Additional permissions are needed to delete deployments, services and
configmaps in order to perform the plane upgrade of #384

Signed-off-by: Philip Miglinci <[email protected]>
  • Loading branch information
pmig authored and kosmoz committed Oct 31, 2023
1 parent 48b8240 commit ecab006
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
17 changes: 15 additions & 2 deletions charts/glasskube-operator/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rules:
- update
- watch
- apiGroups:
- ""
- ''
resources:
- services
- secrets
Expand All @@ -54,7 +54,20 @@ rules:
- update
- watch
- apiGroups:
- ""
- 'apps'
resources:
- deployments
verbs:
- delete
- apiGroups:
- ''
resources:
- configmaps
- services
verbs:
- delete
- apiGroups:
- ''
resources:
- persistentvolumeclaims
verbs:
Expand Down
17 changes: 15 additions & 2 deletions deploy/cluster/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rules:
- update
- watch
- apiGroups:
- ""
- ''
resources:
- services
- secrets
Expand All @@ -54,7 +54,20 @@ rules:
- update
- watch
- apiGroups:
- ""
- 'apps'
resources:
- deployments
verbs:
- delete
- apiGroups:
- ''
resources:
- configmaps
- services
verbs:
- delete
- apiGroups:
- ''
resources:
- persistentvolumeclaims
verbs:
Expand Down

0 comments on commit ecab006

Please sign in to comment.