Skip to content

Commit 67d2939

Browse files
committed
Enable conversion webhook on CRDs
This patch configures the conversion strategy on the VolumeGroupSnapshot, VolumeGroupSnapshotContent and VolumeGroupSnapshotClass CRDs. Since v1beta2 is marked as the stored version, client using v1beta1 will now require the conversion webhook to operate propertly.
1 parent 2c24dc7 commit 67d2939

3 files changed

+27
-0
lines changed

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotclasses.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ spec:
1717
- vgsclasses
1818
singular: volumegroupsnapshotclass
1919
scope: Cluster
20+
conversion:
21+
strategy: Webhook
22+
webhook:
23+
conversionReviewVersions: ["v1","v1beta1"]
24+
clientConfig:
25+
service:
26+
namespace: default
27+
name: snapshot-webhook-service
28+
path: /convert
2029
versions:
2130
- additionalPrinterColumns:
2231
- jsonPath: .driver

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ spec:
1717
- vgscs
1818
singular: volumegroupsnapshotcontent
1919
scope: Cluster
20+
conversion:
21+
strategy: Webhook
22+
webhook:
23+
conversionReviewVersions: ["v1","v1beta1"]
24+
clientConfig:
25+
service:
26+
namespace: default
27+
name: snapshot-webhook-service
28+
path: /convert
2029
versions:
2130
- additionalPrinterColumns:
2231
- description: Indicates if all the individual snapshots in the group are ready

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshots.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ spec:
1616
- vgs
1717
singular: volumegroupsnapshot
1818
scope: Namespaced
19+
conversion:
20+
strategy: Webhook
21+
webhook:
22+
conversionReviewVersions: ["v1","v1beta1"]
23+
clientConfig:
24+
service:
25+
namespace: default
26+
name: snapshot-webhook-service
27+
path: /convert
1928
versions:
2029
- additionalPrinterColumns:
2130
- description: Indicates if all the individual snapshots in the group are ready

0 commit comments

Comments
 (0)