Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add OneOf
  • Loading branch information
RaunakShah committed May 14, 2022
1 parent 20e7720 commit 43bd5f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -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,
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit 43bd5f8

Please sign in to comment.