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
description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass
18
+
should be deleted when its bound VolumeSnapshot is deleted.
19
+
name: DeletionPolicy
20
+
type: string
21
+
- JSONPath: .metadata.creationTimestamp
22
+
name: Age
23
+
type: date
12
24
group: snapshot.storage.k8s.io
13
25
names:
14
26
kind: VolumeSnapshotClass
15
27
listKind: VolumeSnapshotClassList
16
28
plural: volumesnapshotclasses
17
29
singular: volumesnapshotclass
18
-
scope: Cluster
19
30
preserveUnknownFields: false
31
+
scope: Cluster
32
+
subresources: {}
20
33
validation:
21
34
openAPIV3Schema:
22
35
description: VolumeSnapshotClass specifies parameters that a underlying storage
@@ -27,7 +40,7 @@ spec:
27
40
apiVersion:
28
41
description: 'APIVersion defines the versioned schema of this representation
29
42
of an object. Servers should convert recognized schemas to the latest
30
-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
43
+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
31
44
type: string
32
45
deletionPolicy:
33
46
description: deletionPolicy determines whether a VolumeSnapshotContent created
@@ -47,7 +60,7 @@ spec:
47
60
kind:
48
61
description: 'Kind is a string value representing the REST resource this
49
62
object represents. Servers may infer this from the endpoint the client
50
-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
63
+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: Indicates if a snapshot is ready to be used to restore a volume.
15
+
name: ReadyToUse
16
+
type: boolean
17
+
- JSONPath: .status.restoreSize
18
+
description: Represents the complete size of the snapshot in bytes
19
+
name: RestoreSize
20
+
type: integer
21
+
- JSONPath: .spec.deletionPolicy
22
+
description: Determines whether this VolumeSnapshotContent and its physical snapshot
23
+
on the underlying storage system should be deleted when its bound VolumeSnapshot
24
+
is deleted.
25
+
name: DeletionPolicy
26
+
type: string
27
+
- JSONPath: .spec.driver
28
+
description: Name of the CSI driver used to create the physical snapshot on the
29
+
underlying storage system.
30
+
name: Driver
31
+
type: string
32
+
- JSONPath: .spec.volumeSnapshotClassName
33
+
description: Name of the VolumeSnapshotClass to which this snapshot belongs.
34
+
name: VolumeSnapshotClass
35
+
type: string
36
+
- JSONPath: .spec.volumeSnapshotRef.name
37
+
description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent
38
+
object is bound.
39
+
name: VolumeSnapshot
40
+
type: string
41
+
- JSONPath: .metadata.creationTimestamp
42
+
name: Age
43
+
type: date
12
44
group: snapshot.storage.k8s.io
13
45
names:
14
46
kind: VolumeSnapshotContent
15
47
listKind: VolumeSnapshotContentList
16
48
plural: volumesnapshotcontents
17
49
singular: volumesnapshotcontent
50
+
preserveUnknownFields: false
18
51
scope: Cluster
19
52
subresources:
20
53
status: {}
21
-
preserveUnknownFields: false
22
54
validation:
23
55
openAPIV3Schema:
24
56
description: VolumeSnapshotContent represents the actual "on-disk" snapshot
@@ -27,12 +59,12 @@ spec:
27
59
apiVersion:
28
60
description: 'APIVersion defines the versioned schema of this representation
29
61
of an object. Servers should convert recognized schemas to the latest
30
-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
62
+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
31
63
type: string
32
64
kind:
33
65
description: 'Kind is a string value representing the REST resource this
34
66
object represents. Servers may infer this from the endpoint the client
35
-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
67
+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
36
68
type: string
37
69
spec:
38
70
description: spec defines properties of a VolumeSnapshotContent created
@@ -104,7 +136,7 @@ spec:
104
136
in the future.'
105
137
type: string
106
138
kind:
107
-
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
139
+
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
108
140
type: string
109
141
name:
110
142
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
@@ -114,7 +146,7 @@ spec:
114
146
type: string
115
147
resourceVersion:
116
148
description: 'Specific resourceVersion to which this reference is
117
-
made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency'
149
+
made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
118
150
type: string
119
151
uid:
120
152
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
description: The name of the VolumeSnapshotContent to which this VolumeSnapshot
37
+
is bound.
38
+
name: SnapshotContent
39
+
type: string
40
+
- JSONPath: .status.creationTime
41
+
description: Timestamp when the point-in-time snapshot is taken by the underlying
42
+
storage system.
43
+
name: CreationTime
44
+
type: date
45
+
- JSONPath: .metadata.creationTimestamp
46
+
name: Age
47
+
type: date
12
48
group: snapshot.storage.k8s.io
13
49
names:
14
50
kind: VolumeSnapshot
15
51
listKind: VolumeSnapshotList
16
52
plural: volumesnapshots
17
53
singular: volumesnapshot
54
+
preserveUnknownFields: false
18
55
scope: Namespaced
19
56
subresources:
20
57
status: {}
21
-
preserveUnknownFields: false
22
58
validation:
23
59
openAPIV3Schema:
24
60
description: VolumeSnapshot is a user's request for either creating a point-in-time
@@ -27,12 +63,12 @@ spec:
27
63
apiVersion:
28
64
description: 'APIVersion defines the versioned schema of this representation
29
65
of an object. Servers should convert recognized schemas to the latest
30
-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
66
+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
31
67
type: string
32
68
kind:
33
69
description: 'Kind is a string value representing the REST resource this
34
70
object represents. Servers may infer this from the endpoint the client
35
-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
71
+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
36
72
type: string
37
73
spec:
38
74
description: 'spec defines the desired characteristics of a snapshot requested
@@ -121,6 +157,9 @@ spec:
121
157
of a snapshot is unknown.
122
158
type: boolean
123
159
restoreSize:
160
+
anyOf:
161
+
- type: integer
162
+
- type: string
124
163
description: restoreSize represents the complete size of the snapshot
125
164
in bytes. In dynamic snapshot creation case, this field will be filled
126
165
in with the "size_bytes" value returned from CSI "CreateSnapshotRequest"
@@ -130,7 +169,8 @@ spec:
130
169
this snapshot, the size of the volume MUST NOT be smaller than the
131
170
restoreSize if it is specified, otherwise the restoration will fail.
132
171
If not specified, it indicates that the size is unknown.
Copy file name to clipboardExpand all lines: pkg/apis/volumesnapshot/v1beta1/types.go
+18
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,14 @@ import (
31
31
// +kubebuilder:object:root=true
32
32
// +kubebuilder:resource:scope=Namespaced
33
33
// +kubebuilder:subresource:status
34
+
// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if a snapshot is ready to be used to restore a volume."
35
+
// +kubebuilder:printcolumn:name="SourcePVC",type=string,JSONPath=`.spec.source.persistentVolumeClaimName`,description="Name of the source PVC from where a dynamically taken snapshot will be created."
36
+
// +kubebuilder:printcolumn:name="SourceSnapshotContent",type=string,JSONPath=`.spec.source.volumeSnapshotContentName`,description="Name of the VolumeSnapshotContent which represents a pre-provisioned snapshot."
37
+
// +kubebuilder:printcolumn:name="RestoreSize",type=string,JSONPath=`.status.restoreSize`,description="Represents the complete size of the snapshot."
38
+
// +kubebuilder:printcolumn:name="SnapshotClass",type=string,JSONPath=`.spec.volumeSnapshotClassName`,description="The name of the VolumeSnapshotClass requested by the VolumeSnapshot."
39
+
// +kubebuilder:printcolumn:name="SnapshotContent",type=string,JSONPath=`.status.boundVolumeSnapshotContentName`,description="The name of the VolumeSnapshotContent to which this VolumeSnapshot is bound."
40
+
// +kubebuilder:printcolumn:name="CreationTime",type=date,JSONPath=`.status.creationTime`,description="Timestamp when the point-in-time snapshot is taken by the underlying storage system."
// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.deletionPolicy`,description="Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted."
@@ -212,6 +223,13 @@ type VolumeSnapshotClassList struct {
212
223
// +kubebuilder:object:root=true
213
224
// +kubebuilder:resource:scope=Cluster
214
225
// +kubebuilder:subresource:status
226
+
// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if a snapshot is ready to be used to restore a volume."
227
+
// +kubebuilder:printcolumn:name="RestoreSize",type=integer,JSONPath=`.status.restoreSize`,description="Represents the complete size of the snapshot in bytes"
228
+
// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.spec.deletionPolicy`,description="Determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted."
229
+
// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.spec.driver`,description="Name of the CSI driver used to create the physical snapshot on the underlying storage system."
230
+
// +kubebuilder:printcolumn:name="VolumeSnapshotClass",type=string,JSONPath=`.spec.volumeSnapshotClassName`,description="Name of the VolumeSnapshotClass to which this snapshot belongs."
231
+
// +kubebuilder:printcolumn:name="VolumeSnapshot",type=string,JSONPath=`.spec.volumeSnapshotRef.name`,description="Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound."
0 commit comments