add cmdline args to enable group snapshot webhooks

VolumeGroupSnapshots are still in alpha.
This commit adds cmdline args to enable group snapshot
webhooks while keeping it disbaled by default.

Signed-off-by: Rakshith R <rakshith.r.0001@gmail.com>
This commit is contained in:
Rakshith R
2023-10-13 07:04:06 +00:00
committed by Rakshith R
parent 1880a33af3
commit aafc456527
2 changed files with 25 additions and 11 deletions

View File

@@ -21,7 +21,11 @@ spec:
- name: snapshot-validation
image: registry.k8s.io/sig-storage/snapshot-validation-webhook:v6.2.1 # change the image if you wish to use your own custom validation server image
imagePullPolicy: IfNotPresent
args: ['--tls-cert-file=/etc/snapshot-validation-webhook/certs/tls.crt', '--tls-private-key-file=/etc/snapshot-validation-webhook/certs/tls.key']
args:
- '--tls-cert-file=/etc/snapshot-validation-webhook/certs/tls.crt'
- '--tls-private-key-file=/etc/snapshot-validation-webhook/certs/tls.key'
# uncomment the following line to enable webhook for VolumeGroupSnapshot, VolumeGroupSnapshotContent and VolumeGroupSnapshotClass.
# - '--enable-volume-group-snapshot-webhook'
ports:
- containerPort: 443 # change the port as needed
volumeMounts: