Skip to content

Commit 9d16ba6

Browse files
committed
more comment updates
VolumeSnapshot comments rename to VolumeSnapshotClassName adding license fix comments add CSI
1 parent ba6ec14 commit 9d16ba6

6 files changed

+99
-108
lines changed

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

+29-25
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,25 @@ spec:
6060
same as the name returned by the CSI GetPluginName() call for that
6161
driver. Required.
6262
type: string
63-
snapshotClassName:
64-
description: name of the SnapshotClass to which this snapshot belongs.
65-
type: string
6663
source:
6764
description: source specifies from where a snapshot will be created.
6865
This field is immutable after creation. Required.
6966
properties:
7067
snapshotHandle:
71-
description: snapshotHandle specifies the CSI name of a pre-existing
72-
snapshot on the underlying storage system. This field is immutable.
68+
description: snapshotHandle specifies the CSI "snapshot_id" of a
69+
pre-existing snapshot on the underlying storage system. This field
70+
is immutable.
7371
type: string
7472
volumeHandle:
75-
description: volumeHandle specifies the CSI name of the volume from
76-
which a snapshot should be dynamically taken from. This field
73+
description: volumeHandle specifies the "volume_id" of the volume
74+
from which a snapshot should be dynamically taken from. This field
7775
is immutable.
7876
type: string
7977
type: object
78+
volumeSnapshotClassName:
79+
description: name of the VolumeSnapshotClass to which this snapshot
80+
belongs.
81+
type: string
8082
volumeSnapshotRef:
8183
description: volumeSnapshotRef specifies the VolumeSnapshot object to
8284
which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName
@@ -131,12 +133,13 @@ spec:
131133
description: creationTime is the timestamp when the point-in-time snapshot
132134
is taken by the underlying storage system. In dynamic snapshot creation
133135
case, this field will be filled in with the "creation_time" value
134-
returned from CSI "CreateSnapshotRequest" gRPC call. For pre-existing
136+
returned from CSI "CreateSnapshotRequest" gRPC call. For a pre-existing
135137
snapshot, this field will be filled with the "creation_time" value
136-
returned from CSI "ListSnapshots" gRPC call if the CSI driver supports.
137-
The format of this field is a Unix nanoseconds time encoded as an
138-
int64. On Unix, the command `date +%s%N` returns the current time
139-
in nanoseconds since 1970-01-01 00:00:00 UTC.
138+
returned from the CSI "ListSnapshots" gRPC call if the driver supports
139+
it. If not specified, it indicates the creation time is unknown. The
140+
format of this field is a Unix nanoseconds time encoded as an int64.
141+
On Unix, the command `date +%s%N` returns the current time in nanoseconds
142+
since 1970-01-01 00:00:00 UTC.
140143
format: int64
141144
type: integer
142145
error:
@@ -157,28 +160,29 @@ spec:
157160
description: readyToUse indicates if a snapshot is ready to be used
158161
to restore a volume. In dynamic snapshot creation case, this field
159162
will be filled in with the "ready_to_use" value returned from CSI
160-
"CreateSnapshotRequest" gRPC call. For pre-existing snapshot, this
161-
field will be filled with the "read_to_use" value returned from CSI
162-
"ListSnapshots" gRPC call if the CSI driver supports. If not specified,
163-
it means the readiness of a snapshot is unknown.
163+
"CreateSnapshotRequest" gRPC call. For a pre-existing snapshot, this
164+
field will be filled with the "ready_to_use" value returned from the
165+
CSI "ListSnapshots" gRPC call if the driver supports it, otherwise,
166+
this field will be set to "True". If not specified, it means the readiness
167+
of a snapshot is unknown.
164168
type: boolean
165169
restoreSize:
166170
description: restoreSize represents the complete size of the snapshot
167171
in bytes. In dynamic snapshot creation case, this field will be filled
168172
in with the "size_bytes" value returned from CSI "CreateSnapshotRequest"
169-
gRPC call. For pre-existing snapshot, this field will be filled with
170-
the "size_bytes" value returned from CSI "ListSnapshots" gRPC call
171-
if the CSI driver supports. When restoring a volume from this snapshot,
172-
the size of the volume MUST NOT be smaller than the restoreSize if
173-
it is specified. Otherwise the restoration will fail. If not specified,
174-
it indicates that the size is unknown.
173+
gRPC call. For a pre-existing snapshot, this field will be filled
174+
with the "size_bytes" value returned from the CSI "ListSnapshots"
175+
gRPC call if the driver supports it. When restoring a volume from
176+
this snapshot, the size of the volume MUST NOT be smaller than the
177+
restoreSize if it is specified, otherwise the restoration will fail.
178+
If not specified, it indicates that the size is unknown.
175179
format: int64
176180
minimum: 0
177181
type: integer
178182
snapshotHandle:
179-
description: snapshotHandle is the "snapshot_id" of a snapshot on the
180-
underlying storage system. If not specified, it indicates that dynamic
181-
snapshot creation has either failed or it is still in progress.
183+
description: snapshotHandle is the CSI "snapshot_id" of a snapshot on
184+
the underlying storage system. If not specified, it indicates that
185+
dynamic snapshot creation has either failed or it is still in progress.
182186
type: string
183187
type: object
184188
required:

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

+26-32
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ spec:
2121
preserveUnknownFields: false
2222
validation:
2323
openAPIV3Schema:
24-
description: VolumeSnapshot is a user's request for taking a point-in-time snapshot
25-
of a PersistentVolumeClaim. Upon successful creation of a snapshot by the
26-
underlying storage system, it is bound to a corresponding VolumeSnapshotContent.
24+
description: VolumeSnapshot is a user's request for either creating a point-in-time
25+
snapshot of a persistent volume, or binding to a pre-existing snapshot.
2726
properties:
2827
apiVersion:
2928
description: 'APIVersion defines the versioned schema of this representation
@@ -84,15 +83,14 @@ spec:
8483
avoid possible security issues.'
8584
type: string
8685
creationTime:
87-
description: creationTime, if specified, represents the timestamp when
88-
the point-in-time snapshot was successfully cut on the underlying
89-
storage system. In dynamic snapshot creation case, it will be filled
90-
in upon snapshot creation with the "creation_time" field returned
91-
from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot,
92-
it will be set to the "size_byte" value returned from CSI "ListSnapshots"
93-
gRPC call if there exists a matching CSI driver that supports it after
94-
binding. If not specified, it indicates that the creation time of
95-
the snapshot is unknown.
86+
description: creationTime is the timestamp when the point-in-time snapshot
87+
is taken by the underlying storage system. In dynamic snapshot creation
88+
case, this field will be filled in with the "creation_time" value
89+
returned from CSI "CreateSnapshotRequest" gRPC call. For a pre-existing
90+
snapshot, this field will be filled with the "creation_time" value
91+
returned from the CSI "ListSnapshots" gRPC call if the driver supports
92+
it. If not specified, it indicates that the creation time of the snapshot
93+
is unknown.
9694
format: date-time
9795
type: string
9896
error:
@@ -114,28 +112,24 @@ spec:
114112
type: object
115113
readyToUse:
116114
description: readyToUse indicates if a snapshot is ready to be used
117-
to restore a volume. In dynamic snapshot creation case, readyToUse
118-
will be set to true after underlying storage system has successfully
119-
finished all out-of-bound procedures to make a snapshot ready to be
120-
used to restore a volume. For a pre-existing snapshot, readyToUse
121-
will be set to the "read_to_use" field returned from CSI "ListSnapshots"
122-
gRPC call if there exists a matching CSI driver that supports it after
123-
binding. Otherwise, this field will be set to "True". If not specified,
124-
it indicates that the readiness of a snapshot is unknown.
115+
to restore a volume. In dynamic snapshot creation case, this field
116+
will be filled in with the "ready_to_use" value returned from CSI
117+
"CreateSnapshotRequest" gRPC call. For a pre-existing snapshot, this
118+
field will be filled with the "ready_to_use" value returned from the
119+
CSI "ListSnapshots" gRPC call if the driver supports it, otherwise,
120+
this field will be set to "True". If not specified, it means the readiness
121+
of a snapshot is unknown.
125122
type: boolean
126123
restoreSize:
127-
description: restoreSize, if specified, represents the complete size
128-
of the snapshot in bytes. In dynamic snapshot creation case, restoreSize
129-
will be filled with the "size_bytes" value returned from "CreateSnapshot"
130-
gRPC call. For a pre-existing snapshot, restoreSize will be filled
131-
with the "size_bytes" value returned from CSI "ListSnapshots" gRPC
132-
call if there exists a matching CSI driver that supports it after
133-
binding. The purpose of this field is to give user guidance on how
134-
much space is needed to restore a volume from this snapshot. When
135-
restoring a volume from a snapshot, the size of the volume MUST NOT
136-
be less than the restoreSize. Otherwise the restoration will fail.
137-
If not specified, it indicates that underlying storage system does
138-
not have the information available.
124+
description: restoreSize represents the complete size of the snapshot
125+
in bytes. In dynamic snapshot creation case, this field will be filled
126+
in with the "size_bytes" value returned from CSI "CreateSnapshotRequest"
127+
gRPC call. For a pre-existing snapshot, this field will be filled
128+
with the "size_bytes" value returned from the CSI "ListSnapshots"
129+
gRPC call if the driver supports it. When restoring a volume from
130+
this snapshot, the size of the volume MUST NOT be smaller than the
131+
restoreSize if it is specified, otherwise the restoration will fail.
132+
If not specified, it indicates that the size is unknown.
139133
type: string
140134
type: object
141135
required:

0 commit comments

Comments
 (0)