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