Add OneOf

This commit is contained in:
Raunak Pradip Shah 2022-05-14 11:54:37 +05:30
parent 20e77209f1
commit 43bd5f8648
2 changed files with 5 additions and 2 deletions

View File

@ -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,

View File

@ -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