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 VolumeSnapshotContent is ready to be used.
15
+
name: ReadyToUse
16
+
type: boolean
17
+
- JSONPath: .status.restoreSize
18
+
description: Represents the complete size of the VolumeSnapshotContent in bytes
19
+
name: RestoreSize
20
+
type: integer
21
+
- JSONPath: .spec.deletionPolicy
22
+
description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass
23
+
should be deleted when its bound VolumeSnapshot is deleted.
24
+
name: DeletionPolicy
25
+
type: string
26
+
- JSONPath: .spec.driver
27
+
description: Name of the CSI driver used to create the physical snapshot on the
28
+
underlying storage system.
29
+
name: Driver
30
+
type: string
31
+
- JSONPath: .spec.volumeSnapshotClassName
32
+
description: Name of the VolumeSnapshotClass to which this snapshot belongs.
33
+
name: VolumeSnapshotClass
34
+
type: string
35
+
- JSONPath: .spec.volumeSnapshotRef.name
36
+
description: The VolumeSnapshot object to which this VolumeSnapshotContent object
37
+
is bound.
38
+
name: VolumeSnapshot
39
+
type: string
40
+
- JSONPath: .metadata.creationTimestamp
41
+
name: Age
42
+
type: date
12
43
group: snapshot.storage.k8s.io
13
44
names:
14
45
kind: VolumeSnapshotContent
15
46
listKind: VolumeSnapshotContentList
16
47
plural: volumesnapshotcontents
17
48
singular: volumesnapshotcontent
49
+
preserveUnknownFields: false
18
50
scope: Cluster
19
51
subresources:
20
52
status: {}
21
-
preserveUnknownFields: false
22
53
validation:
23
54
openAPIV3Schema:
24
55
description: VolumeSnapshotContent represents the actual "on-disk" snapshot
@@ -27,12 +58,12 @@ spec:
27
58
apiVersion:
28
59
description: 'APIVersion defines the versioned schema of this representation
29
60
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'
61
+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
31
62
type: string
32
63
kind:
33
64
description: 'Kind is a string value representing the REST resource this
34
65
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'
66
+
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
67
type: string
37
68
spec:
38
69
description: spec defines properties of a VolumeSnapshotContent created
@@ -104,7 +135,7 @@ spec:
104
135
in the future.'
105
136
type: string
106
137
kind:
107
-
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
138
+
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
108
139
type: string
109
140
name:
110
141
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
@@ -114,7 +145,7 @@ spec:
114
145
type: string
115
146
resourceVersion:
116
147
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'
148
+
made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
118
149
type: string
119
150
uid:
120
151
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
35
+
is bound.
36
+
name: SnapshotContent
37
+
type: string
38
+
- JSONPath: .status.creationTime
39
+
name: CreationTime
40
+
type: date
41
+
- JSONPath: .metadata.creationTimestamp
42
+
name: Age
43
+
type: date
12
44
group: snapshot.storage.k8s.io
13
45
names:
14
46
kind: VolumeSnapshot
15
47
listKind: VolumeSnapshotList
16
48
plural: volumesnapshots
17
49
singular: volumesnapshot
50
+
preserveUnknownFields: false
18
51
scope: Namespaced
19
52
subresources:
20
53
status: {}
21
-
preserveUnknownFields: false
22
54
validation:
23
55
openAPIV3Schema:
24
56
description: VolumeSnapshot is a user's request for either creating a point-in-time
@@ -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 the desired characteristics of a snapshot requested
@@ -121,6 +153,9 @@ spec:
121
153
of a snapshot is unknown.
122
154
type: boolean
123
155
restoreSize:
156
+
anyOf:
157
+
- type: integer
158
+
- type: string
124
159
description: restoreSize represents the complete size of the snapshot
125
160
in bytes. In dynamic snapshot creation case, this field will be filled
126
161
in with the "size_bytes" value returned from CSI "CreateSnapshotRequest"
@@ -130,7 +165,8 @@ spec:
130
165
this snapshot, the size of the volume MUST NOT be smaller than the
131
166
restoreSize if it is specified, otherwise the restoration will fail.
132
167
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="The PVC from where a dynamically taken snapshot will be created."
36
+
// +kubebuilder:printcolumn:name="SourceSnapshotContent",type=string,JSONPath=`.spec.source.volumeSnapshotContentName`,description="The VolumeSnapshotContent from where a snapshot will be created."
37
+
// +kubebuilder:printcolumn:name="RestoreSize",type=string,JSONPath=`.status.restoreSize`,description="Represents the complete size of the snapshot in bytes."
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."
// +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 VolumeSnapshotContent is ready to be used."
227
+
// +kubebuilder:printcolumn:name="RestoreSize",type=integer,JSONPath=`.status.restoreSize`,description="Represents the complete size of the VolumeSnapshotContent in bytes"
228
+
// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.spec.deletionPolicy`,description="Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass 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="The VolumeSnapshot object to which this VolumeSnapshotContent object is bound."
0 commit comments