Skip to content

Commit

Permalink
Fix webhook resource configuration for v8.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
brandond committed Oct 7, 2024
1 parent 85ef4e6 commit b591355
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 1 addition & 1 deletion packages/rke2-snapshot-validation-webhook/package.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b591355

Please sign in to comment.