@@ -30,11 +30,12 @@ spec:
30
30
description : ' Standard object'' s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
31
31
type : object
32
32
spec :
33
- description : Spec represents the desired state of the snapshot content
33
+ description : Spec defines a specification of a VolumeSnapshotContent created
34
+ by underlying storage system.
34
35
properties :
35
36
csiVolumeSnapshotSource :
36
- description : CSI (Container Storage Interface) represents storage that
37
- handled by an external CSI Volume Driver (Alpha feature) .
37
+ description : CSIVolumeSnapshotSource represents a volume snapshot created
38
+ by a CSI(Container Storage Interface) driver. .
38
39
properties :
39
40
creationTime :
40
41
description : Timestamp when the point-in-time snapshot is taken
@@ -43,87 +44,52 @@ spec:
43
44
The format of this field is a Unix nanoseconds time encoded as
44
45
an int64. On Unix, the command `date +%s%N` returns the current
45
46
time in nanoseconds (aka, epoch time) since 1970-01-01 00:00:00
46
- UTC. This field is required in the CSI spec however made optional
47
- here to support static binding.
47
+ UTC.
48
48
format : int64
49
49
type : integer
50
50
driver :
51
- description : Driver is the name of the driver used to create a physical
52
- snapshot on underlying storage system. This MUST be the same name
53
- returned by the CSI GetPluginName() call for that driver. Required.
51
+ description : Driver is the name of the CSI driver used to create
52
+ the physical snapshot on the underlying storage system. This MUST
53
+ be the same name returned by the CSI GetPluginName() call for
54
+ that driver. Required.
54
55
type : string
55
56
restoreSize :
56
- description : When restoring a volume from a snapshot, the volume
57
- size needs to be equal to or larger than the RestoreSize if it
58
- is specified. If RestoreSize is set to nil, in the dynamic snapshot
59
- creation case, it means that the underlying storage system does
60
- not have this information available; in the static binding case,
61
- this piece of information is not available.
57
+ description : RestoreSize specifies the number of bytes that the
58
+ snapshot's data would consumer when gets restored to a volume.
59
+ This field is optional. When restoring a volume from a snapshot,
60
+ the volume size needs to be equal to or larger than the RestoreSize
61
+ if it is specified.
62
62
format : int64
63
63
type : integer
64
64
snapshotHandle :
65
- description : SnapshotHandle is the unique id returned from the underlying
66
- storage system by the CSI driver's CreationSnapshot gRPC call.
67
- It serves as the only and sufficient handle when communicating
68
- with underlying storage systems via CSI driver for all subsequent
69
- calls on the specific VolumeSnapshot Required.
65
+ description : SnapshotHandle is the snapshot id returned by the CSI
66
+ driver in the CreateSnapshotResponse and is used as the snapshot
67
+ identifier for all subsequent CSI calls. Required.
70
68
type : string
71
69
required :
72
70
- driver
73
71
- snapshotHandle
74
72
type : object
75
73
deletionPolicy :
76
- description : DeletionPolicy defines whether a VolumeSnapshotContent
77
- and its associated physical snapshot on underlying storage system
78
- should be deleted or not when released from its corresponding VolumeSnapshot.
79
- If not specified, the default will be VolumeSnapshotContentRetain
80
- for static binding, and VolumeSnapshotContentDelete for dynamic snapshot
81
- creation.
74
+ description : DeletionPolicy determines whether this VolumeSnapshotContent
75
+ and it's associated physical snapshot on the underlying storage system
76
+ should be deleted when its VolumeSnapshot is deleted. Supported values
77
+ are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent
78
+ and its physical snapshot on underlying storage system are kept. "Delete"
79
+ means that the VolumeSnapshotContent and its physical snapshot on
80
+ underlying storage system are deleted. If not specified, the default
81
+ value is "Retain"
82
+ enum :
83
+ - Delete
84
+ - Retain
82
85
type : string
83
- persistentVolumeRef :
84
- description : PersistentVolumeRef represents the PersistentVolume that
85
- the snapshot has been taken from. In dynamic snapshot creation case,
86
- the field will be specified when VolumeSnapshot and VolumeSnapshotContent
87
- are bound.
88
- properties :
89
- apiVersion :
90
- description : API version of the referent.
91
- type : string
92
- fieldPath :
93
- description : ' If referring to a piece of an object instead of an
94
- entire object, this string should contain a valid JSON/Go field
95
- access statement, such as desiredState.manifest.containers[2].
96
- For example, if the object reference is to a container within
97
- a pod, this would take on a value like: "spec.containers{name}"
98
- (where "name" refers to the name of the container that triggered
99
- the event) or if no container name is specified "spec.containers[2]"
100
- (container with index 2 in this pod). This syntax is chosen only
101
- to have some well-defined way of referencing a part of an object.
102
- TODO: this design is not final and this field is subject to change
103
- in the future.'
104
- type : string
105
- kind :
106
- description : ' Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
107
- type : string
108
- name :
109
- description : ' Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
110
- type : string
111
- namespace :
112
- description : ' Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
113
- type : string
114
- resourceVersion :
115
- description : ' Specific resourceVersion to which this reference is
116
- made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency'
117
- type : string
118
- uid :
119
- description : ' UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
120
- type : string
121
- type : object
122
86
volumeSnapshotRef :
123
- description : VolumeSnapshotRef is part of bi-directional binding between
124
- VolumeSnapshot and VolumeSnapshotContent. Expect to be non-nil when
125
- bound. VolumeSnapshot.VolumeSnapshotContentName is the authoritative
126
- bind between VolumeSnapshot and VolumeSnapshotContent
87
+ description : VolumeSnapshotRef specifies the VolumeSnapshot object that
88
+ this VolumeSnapshotContent is associated with. The VolumeSnapshot.Spec.VolumeSnapshotContentName
89
+ field must reference this VolumeSnapshotContent name for the association
90
+ to be considered valid(a.k.a bi-directional binding). If the referenced
91
+ VolumeSnapshot object does not exist(i.e., deleted by user), then
92
+ the VolumeSnapshotContent.Spec.DeletionPolicy is triggered.
127
93
properties :
128
94
apiVersion :
129
95
description : API version of the referent.
0 commit comments