From f7a7fb3fce9199f843578e11be9c0037a87d3e97 Mon Sep 17 00:00:00 2001 From: Raunak Pradip Shah Date: Sat, 14 May 2022 11:13:55 +0530 Subject: [PATCH] Add back oneOf in volumesnapshotcontets.yaml --- .../crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml | 3 +++ .../config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml b/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml index f636a5f82..30ee778f0 100644 --- a/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml +++ b/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml @@ -115,6 +115,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/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml b/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml index fd9712c40..e98539c51 100644 --- a/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml +++ b/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml @@ -100,8 +100,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