You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/hack/README.md
+2-87Lines changed: 2 additions & 87 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Follow these steps to update the CRD:
64
64
65
65
* Run ./hack/update-crd.sh from client directory, new yaml files should have been created under ./config/crd/
66
66
67
-
* Add api-approved.kubernetes.io annotation value in all yaml files in the metadata section with the PR where the API is approved by the API reviewers. The current approved PR for snapshot v1 API is https://github.com/kubernetes-csi/external-snapshotter/pull/419. Refer to https://github.com/kubernetes/enhancements/pull/1111 for details about this annotation.
67
+
* Add api-approved.kubernetes.io annotation value in all yaml files in the metadata section with the PR where the API is approved by the API reviewers. Refer to https://github.com/kubernetes/enhancements/pull/1111 for details about this annotation.
68
68
69
69
* Update the restoreSize property to string in snapshot.storage.k8s.io_volumesnapshots.yaml
70
70
@@ -104,89 +104,4 @@ Update the restoreSize property to use type string only:
104
104
105
105
```
106
106
107
-
* In `client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml`, we need to add the `oneOf` constraint to make sure only one of `persistentVolumeClaimName` and `volumeSnapshotContentName` is specified in the `source` field of the `spec` of `VolumeSnapshot`.
108
-
109
-
```bash
110
-
source:
111
-
description: source specifies where a snapshot will be created from. This field is immutable after creation. Required.
112
-
properties:
113
-
persistentVolumeClaimName:
114
-
description: persistentVolumeClaimName specifies the name of the PersistentVolumeClaim object representing the volume from which a snapshot should be created. This PVC is assumed to be in the same namespace as the VolumeSnapshot object. This field should be setif the snapshot does not exists, and should be created. This field is immutable.
115
-
type: string
116
-
volumeSnapshotContentName:
117
-
description: volumeSnapshotContentName specifies the name of a pre-existing VolumeSnapshotContent object representing an existing volume snapshot. This field should be setif the snapshot already exists. This field is immutable.
118
-
type: string
119
-
type: object
120
-
oneOf:
121
-
- required: ["persistentVolumeClaimName"]
122
-
- required: ["volumeSnapshotContentName"]
123
-
volumeSnapshotClassName:
124
-
```
125
-
126
-
* In `client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml `, we need to add the `oneOf` constraint to make sure only one of `snapshotHandle` and `volumeHandle` is specified in the `source` field of the `spec` of `VolumeSnapshotContent`.
127
-
128
-
```bash
129
-
source:
130
-
description: source specifies from where a snapshot will be created. This field is immutable after creation. Required.
131
-
properties:
132
-
snapshotHandle:
133
-
description: snapshotHandle specifies the CSI "snapshot_id" of a pre-existing snapshot on the underlying storage system. This field is immutable.
134
-
type: string
135
-
volumeHandle:
136
-
description: volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot should be dynamically taken from. This field is immutable.
137
-
type: string
138
-
type: object
139
-
oneOf:
140
-
- required: ["snapshotHandle"]
141
-
- required: ["volumeHandle"]
142
-
sourceVolumeMode:
143
-
```
144
-
145
-
* Add the VolumeSnapshot namespace to the `additionalPrinterColumns` section. Refer https://github.com/kubernetes-csi/external-snapshotter/pull/535 for more details.
146
-
147
-
* In `client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml `, we need to add the `oneOf` constraint to make sure only one of `volumeHandles` and `groupSnapshotHandles` is specified in the `source` field of the `spec` of `VolumeGroupSnapshotContent`.
148
-
149
-
```bash
150
-
source:
151
-
description: Source specifies whether the snapshot is (or should be)
152
-
dynamically provisioned or already exists, and just requires a Kubernetes
153
-
object representation. This field is immutable after creation. Required.
154
-
properties:
155
-
groupSnapshotHandles:
156
-
description: GroupSnapshotHandles specifies the CSI "group_snapshot_id"
157
-
of a pre-existing group snapshot and a list of CSI "snapshot_id"
158
-
of pre-existing snapshots on the underlying storage system for
159
-
which a Kubernetes object representation was (or should be)
160
-
created. This field is immutable.
161
-
properties:
162
-
volumeGroupSnapshotHandle:
163
-
description: VolumeGroupSnapshotHandle specifies the CSI "group_snapshot_id"
164
-
of a pre-existing group snapshot on the underlying storage
165
-
system for which a Kubernetes object representation was
166
-
(or should be) created. This field is immutable. Required.
167
-
type: string
168
-
volumeSnapshotHandles:
169
-
description: VolumeSnapshotHandles is a list of CSI "snapshot_id"
170
-
of pre-existing snapshots on the underlying storage system
171
-
for which Kubernetes objects representation were (or should
172
-
be) created. This field is immutable. Required.
173
-
items:
174
-
type: string
175
-
type: array
176
-
required:
177
-
- volumeGroupSnapshotHandle
178
-
- volumeSnapshotHandles
179
-
type: object
180
-
volumeHandles:
181
-
description: VolumeHandles is a list of volume handles on the
182
-
backend to be snapshotted together. It is specified for dynamic
183
-
provisioning of the VolumeGroupSnapshot. This field is immutable.
184
-
items:
185
-
type: string
186
-
type: array
187
-
type: object
188
-
oneOf:
189
-
- required: ["volumeHandles"]
190
-
- required: ["groupSnapshotHandles"]
191
-
volumeGroupSnapshotClassName:
192
-
```
107
+
* Add the VolumeSnapshot namespace to the `additionalPrinterColumns` section in`client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml`. Refer https://github.com/kubernetes-csi/external-snapshotter/pull/535 for more details.
0 commit comments