Skip to content

Commit

Permalink
Add back oneOf in volumesnapshotcontets.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
RaunakShah committed May 14, 2022
1 parent 2c22623 commit f7a7fb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7a7fb3

Please sign in to comment.