Fix webhook resource configuration for v8.1.0

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/537/head
Brad Davidson 2024-10-07 20:20:36 +00:00 committed by Brad Davidson
parent 85ef4e6956
commit d61d15e0f7
3 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,18 @@
--- charts-original/templates/serviceaccount.yaml
+++ charts/templates/serviceaccount.yaml
@@ -14,9 +14,12 @@
metadata:
name: {{ include "snapshot-validation-webhook.fullname" . }}
rules:
- - apiGroups: ["snapshot.storage.k8s.io", "groupsnapshot.storage.k8s.io"]
- resources: ["volumesnapshotclasses", "volumegroupsnapshotclasses"]
- verbs: ["list", "watch"]
+ - apiGroups: ["snapshot.storage.k8s.io"]
+ resources: ["volumesnapshotclasses"]
+ verbs: ["get", "list", "watch"]
+ - apiGroups: ["groupsnapshot.storage.k8s.io"]
+ resources: ["volumegroupsnapshotclasses"]
+ verbs: ["get", "list", "watch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1

View File

@ -0,0 +1,26 @@
--- charts-original/templates/webhook.yaml
+++ charts/templates/webhook.yaml
@@ -62,14 +62,11 @@
- snapshot.storage.k8s.io
apiVersions:
- v1
- - v1beta1
operations:
- CREATE
- UPDATE
resources:
- - volumesnapshots
- volumesnapshotclasses
- - volumesnapshotcontents
scope: "*"
clientConfig:
service:
@@ -95,8 +92,6 @@
- CREATE
- UPDATE
resources:
- - volumegroupsnapshots
- - volumegroupsnapshotcontents
- volumegroupsnapshotclasses
scope: "*"
clientConfig:

View File

@ -1,4 +1,4 @@
url: https://github.com/piraeusdatastore/helm-charts.git
subdirectory: charts/snapshot-validation-webhook
commit: 191804f1d509177b909b3ced07bf924d302debf2 # snapshot-validation-webhook-1.9.0
packageVersion: 00
packageVersion: 01