Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1facf3f

Browse files
committedDec 5, 2024·
Copy CRDs
1 parent 5863aa4 commit 1facf3f

File tree

3 files changed

+31
-76
lines changed

3 files changed

+31
-76
lines changed
 

Diff for: ‎assets/volumegroupsnapshotclasses.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
- jsonPath: .metadata.creationTimestamp
3232
name: Age
3333
type: date
34-
name: v1alpha1
34+
name: v1beta1
3535
schema:
3636
openAPIV3Schema:
3737
description: |-

Diff for: ‎assets/volumegroupsnapshotcontents.yaml

+28-39
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ spec:
5353
- jsonPath: .metadata.creationTimestamp
5454
name: Age
5555
type: date
56-
name: v1alpha1
56+
name: v1beta1
5757
schema:
5858
openAPIV3Schema:
5959
description: |-
@@ -237,8 +237,6 @@ spec:
237237
- message: both volumeGroupSnapshotRef.name and volumeGroupSnapshotRef.namespace
238238
must be set
239239
rule: has(self.name) && has(self.__namespace__)
240-
- message: volumeGroupSnapshotRef is immutable
241-
rule: self == oldSelf
242240
required:
243241
- deletionPolicy
244242
- driver
@@ -257,6 +255,7 @@ spec:
257255
The format of this field is a Unix nanoseconds time encoded as an int64.
258256
On Unix, the command date +%s%N returns the current time in nanoseconds
259257
since 1970-01-01 00:00:00 UTC.
258+
This field is the source for the CreationTime field in VolumeGroupSnapshotStatus
260259
format: int64
261260
type: integer
262261
error:
@@ -276,42 +275,6 @@ spec:
276275
format: date-time
277276
type: string
278277
type: object
279-
pvVolumeSnapshotContentList:
280-
description: |-
281-
PVVolumeSnapshotContentList is the list of pairs of PV and
282-
VolumeSnapshotContent for this group snapshot
283-
The maximum number of allowed snapshots in the group is 100.
284-
items:
285-
description: |-
286-
PVVolumeSnapshotContentPair represent a pair of PV names and
287-
VolumeSnapshotContent names
288-
properties:
289-
persistentVolumeRef:
290-
description: PersistentVolumeRef is a reference to the persistent
291-
volume resource
292-
properties:
293-
name:
294-
description: |-
295-
Name of the referent.
296-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
297-
TODO: Add other useful fields. apiVersion, kind, uid?
298-
type: string
299-
type: object
300-
x-kubernetes-map-type: atomic
301-
volumeSnapshotContentRef:
302-
description: VolumeSnapshotContentRef is a reference to the
303-
volume snapshot content resource
304-
properties:
305-
name:
306-
description: |-
307-
Name of the referent.
308-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
309-
TODO: Add other useful fields. apiVersion, kind, uid?
310-
type: string
311-
type: object
312-
x-kubernetes-map-type: atomic
313-
type: object
314-
type: array
315278
readyToUse:
316279
description: |-
317280
ReadyToUse indicates if all the individual snapshots in the group are ready to be
@@ -325,6 +288,32 @@ spec:
325288
If a storage system does not provide such an id, the
326289
CSI driver can choose to return the VolumeGroupSnapshot name.
327290
type: string
291+
volumeSnapshotHandlePairList:
292+
description: |-
293+
VolumeSnapshotHandlePairList is a list of CSI "volume_id" and "snapshot_id"
294+
pair returned by the CSI driver to identify snapshots and their source volumes
295+
on the storage system.
296+
items:
297+
description: VolumeSnapshotHandlePair defines a pair of a source
298+
volume handle and a snapshot handle
299+
properties:
300+
snapshotHandle:
301+
description: |-
302+
SnapshotHandle is a unique id returned by the CSI driver to identify a volume
303+
snapshot on the storage system
304+
Required.
305+
type: string
306+
volumeHandle:
307+
description: |-
308+
VolumeHandle is a unique id returned by the CSI driver to identify a volume
309+
on the storage system
310+
Required.
311+
type: string
312+
required:
313+
- snapshotHandle
314+
- volumeHandle
315+
type: object
316+
type: array
328317
type: object
329318
required:
330319
- spec

Diff for: ‎assets/volumegroupsnapshots.yaml

+2-36
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ spec:
4343
- jsonPath: .metadata.creationTimestamp
4444
name: Age
4545
type: date
46-
name: v1alpha1
46+
name: v1beta1
4747
schema:
4848
openAPIV3Schema:
4949
description: |-
@@ -198,6 +198,7 @@ spec:
198198
The format of this field is a Unix nanoseconds time encoded as an int64.
199199
On Unix, the command date +%s%N returns the current time in nanoseconds
200200
since 1970-01-01 00:00:00 UTC.
201+
This field is updated based on the CreationTime field in VolumeGroupSnapshotContentStatus
201202
format: date-time
202203
type: string
203204
error:
@@ -221,41 +222,6 @@ spec:
221222
format: date-time
222223
type: string
223224
type: object
224-
pvcVolumeSnapshotRefList:
225-
description: |-
226-
VolumeSnapshotRefList is the list of PVC and VolumeSnapshot pairs that
227-
is part of this group snapshot.
228-
The maximum number of allowed snapshots in the group is 100.
229-
items:
230-
description: PVCVolumeSnapshotPair defines a pair of a PVC reference
231-
and a Volume Snapshot Reference
232-
properties:
233-
persistentVolumeClaimRef:
234-
description: PersistentVolumeClaimRef is a reference to the
235-
PVC this pair is referring to
236-
properties:
237-
name:
238-
description: |-
239-
Name of the referent.
240-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
241-
TODO: Add other useful fields. apiVersion, kind, uid?
242-
type: string
243-
type: object
244-
x-kubernetes-map-type: atomic
245-
volumeSnapshotRef:
246-
description: VolumeSnapshotRef is a reference to the VolumeSnapshot
247-
this pair is referring to
248-
properties:
249-
name:
250-
description: |-
251-
Name of the referent.
252-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
253-
TODO: Add other useful fields. apiVersion, kind, uid?
254-
type: string
255-
type: object
256-
x-kubernetes-map-type: atomic
257-
type: object
258-
type: array
259225
readyToUse:
260226
description: |-
261227
ReadyToUse indicates if all the individual snapshots in the group are ready

0 commit comments

Comments
 (0)
Please sign in to comment.