Skip to content

Commit

Permalink
Allow MCM to delete VolumeAttachments
Browse files Browse the repository at this point in the history
After gardener/machine-controller-manager#839 MCM provider extensions need to delete VolumeAttachments. See the PR description for more details.

Co-authored-by: elankath <tarun.ramakrishna.elankath@sap.com>
Co-authored-by: kon-angelo <konstantinos.angelopoulos@sap.com>
  • Loading branch information
3 people authored and gardener-ci-robot committed Nov 8, 2023
1 parent e012bbb commit 6597e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func (m *machineControllerManager) computeShootResourcesData(serviceAccountName
{
APIGroups: []string{"storage.k8s.io"},
Resources: []string{"volumeattachments"},
Verbs: []string{"get", "list", "watch"},
Verbs: []string{"delete", "get", "list", "watch"},
},
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ rules:
resources:
- volumeattachments
verbs:
- delete
- get
- list
- watch
Expand Down

0 comments on commit 6597e92

Please sign in to comment.