From 43bd5f86483195978efaf3492567c644d19d61d3 Mon Sep 17 00:00:00 2001 From: Raunak Pradip Shah Date: Sat, 14 May 2022 11:54:37 +0530 Subject: [PATCH] Add OneOf --- .../crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml | 3 +++ .../crd/snapshot.storage.k8s.io_volumesnapshots.yaml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cluster/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml b/cluster/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml index d6f898d17b3..66c97581075 100644 --- a/cluster/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml +++ b/cluster/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml @@ -117,6 +117,9 @@ spec: This field is immutable. type: string type: object + oneOf: + - required: ["snapshotHandle"] + - required: ["volumeHandle"] sourceVolumeMode: description: SourceVolumeMode is the mode of the volume whose snapshot is taken. Can be either “Filesystem” or “Block”. If not specified, diff --git a/cluster/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshots.yaml b/cluster/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshots.yaml index 80f27b4c222..b0caf780bcd 100644 --- a/cluster/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshots.yaml +++ b/cluster/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshots.yaml @@ -102,8 +102,8 @@ spec: type: string type: object oneOf: - - required: [ "persistentVolumeClaimName" ] - - required: [ "volumeSnapshotContentName" ] + - required: ["persistentVolumeClaimName"] + - required: ["volumeSnapshotContentName"] volumeSnapshotClassName: description: 'VolumeSnapshotClassName is the name of the VolumeSnapshotClass requested by the VolumeSnapshot. VolumeSnapshotClassName may be