From 7c11021027f786fd08a9633b74f32d62f24f9c1f Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Thu, 17 Oct 2024 11:41:46 +0800 Subject: [PATCH] charts: update NDM rbac for new validation of webhook Signed-off-by: Vicente Cheng --- charts/harvester-node-disk-manager/templates/rbac.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/harvester-node-disk-manager/templates/rbac.yaml b/charts/harvester-node-disk-manager/templates/rbac.yaml index d5f1aea7..dbf38b6a 100644 --- a/charts/harvester-node-disk-manager/templates/rbac.yaml +++ b/charts/harvester-node-disk-manager/templates/rbac.yaml @@ -50,6 +50,12 @@ rules: - apiGroups: [ "" ] resources: [ "secrets", "configmaps" ] verbs: [ "*" ] + - apiGroups: [ "" ] + resources: [ "persistentvolumes" ] + verbs: [ "get", "watch", "list" ] + - apiGroups: [ "storage.k8s.io" ] + resources: [ "storageclasses" ] + verbs: [ "get", "watch", "list" ] - apiGroups: [ "harvesterhci.io" ] resources: [ "blockdevices" ] verbs: [ "*" ]