Skip to content

Commit 7f4ea70

Browse files
committed
Add back oneOf in volumesnapshotcontets.yaml
1 parent 69f7194 commit 7f4ea70

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ spec:
115115
This field is immutable.
116116
type: string
117117
type: object
118+
oneOf:
119+
- required: ["snapshotHandle"]
120+
- required: ["volumeHandle"]
118121
sourceVolumeMode:
119122
description: SourceVolumeMode is the mode of the volume whose snapshot
120123
is taken. Can be either “Filesystem” or “Block”. If not specified,

client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ spec:
100100
type: string
101101
type: object
102102
oneOf:
103-
- required: [ "persistentVolumeClaimName" ]
104-
- required: [ "volumeSnapshotContentName" ]
103+
- required: ["persistentVolumeClaimName"]
104+
- required: ["volumeSnapshotContentName"]
105105
volumeSnapshotClassName:
106106
description: 'VolumeSnapshotClassName is the name of the VolumeSnapshotClass
107107
requested by the VolumeSnapshot. VolumeSnapshotClassName may be

vendor/modules.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ github.com/kubernetes-csi/external-snapshotter/client/v6/informers/externalversi
9292
github.com/kubernetes-csi/external-snapshotter/client/v6/informers/externalversions/volumesnapshot
9393
github.com/kubernetes-csi/external-snapshotter/client/v6/informers/externalversions/volumesnapshot/v1
9494
github.com/kubernetes-csi/external-snapshotter/client/v6/listers/volumesnapshot/v1
95-
# github.com/mailru/easyjson v0.7.6
96-
## explicit; go 1.12
97-
github.com/mailru/easyjson/buffer
98-
github.com/mailru/easyjson/jlexer
99-
github.com/mailru/easyjson/jwriter
10095
# github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369
10196
## explicit; go 1.9
10297
github.com/matttproud/golang_protobuf_extensions/pbutil

0 commit comments

Comments
 (0)