From 8577084fe3af0e2f0cf49715874b59193fcda094 Mon Sep 17 00:00:00 2001 From: Markus Wennrich Date: Thu, 2 Sep 2021 11:11:21 +0200 Subject: [PATCH 1/3] allow csi-lvm storage-class to be edited --- .../internal/shoot-storageclasses/templates/storageclasses.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/internal/shoot-storageclasses/templates/storageclasses.yaml b/charts/internal/shoot-storageclasses/templates/storageclasses.yaml index 3d28b5961..5e78f04d9 100644 --- a/charts/internal/shoot-storageclasses/templates/storageclasses.yaml +++ b/charts/internal/shoot-storageclasses/templates/storageclasses.yaml @@ -10,6 +10,7 @@ metadata: name: csi-lvm annotations: storageclass.kubernetes.io/is-default-class: "true" + resources.gardener.cloud/ignore: "true" provisioner: metal-stack.io/csi-lvm volumeBindingMode: WaitForFirstConsumer reclaimPolicy: Delete From 1165a694d4fe2b708a330e6a938c4d832073ccd0 Mon Sep 17 00:00:00 2001 From: Markus Wennrich Date: Thu, 2 Sep 2021 11:11:36 +0200 Subject: [PATCH 2/3] list csi-lvm clusterroles verbs explicitly Fixes #200 --- .../shoot-storageclasses/templates/storageclasses.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/internal/shoot-storageclasses/templates/storageclasses.yaml b/charts/internal/shoot-storageclasses/templates/storageclasses.yaml index 5e78f04d9..770701cfc 100644 --- a/charts/internal/shoot-storageclasses/templates/storageclasses.yaml +++ b/charts/internal/shoot-storageclasses/templates/storageclasses.yaml @@ -42,7 +42,13 @@ rules: - persistentvolumes - pods verbs: - - "*" + - create + - delete + - get + - list + - patch + - update + - watch - apiGroups: - "" resources: From 993166cee35feac39dc751ed53d4cfcf7471aef9 Mon Sep 17 00:00:00 2001 From: Markus Wennrich Date: Wed, 16 Feb 2022 15:29:51 +0100 Subject: [PATCH 3/3] Revert "allow csi-lvm storage-class to be edited" This reverts commit 8577084fe3af0e2f0cf49715874b59193fcda094. --- .../internal/shoot-storageclasses/templates/storageclasses.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/charts/internal/shoot-storageclasses/templates/storageclasses.yaml b/charts/internal/shoot-storageclasses/templates/storageclasses.yaml index 770701cfc..89dd58556 100644 --- a/charts/internal/shoot-storageclasses/templates/storageclasses.yaml +++ b/charts/internal/shoot-storageclasses/templates/storageclasses.yaml @@ -10,7 +10,6 @@ metadata: name: csi-lvm annotations: storageclass.kubernetes.io/is-default-class: "true" - resources.gardener.cloud/ignore: "true" provisioner: metal-stack.io/csi-lvm volumeBindingMode: WaitForFirstConsumer reclaimPolicy: Delete