Merge pull request #129488 from Madhu-1/vs-v1

Update  snapshot CRDs to v1 in cluster addons
This commit is contained in:
Kubernetes Prow Robot 2025-01-13 08:34:33 -08:00 committed by GitHub
commit 8a5cf7b66f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 883 additions and 775 deletions

View File

@ -5,9 +5,8 @@ metadata:
labels: labels:
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.8.0 api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/814"
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665" controller-gen.kubebuilder.io/version: v0.15.0
creationTimestamp: null
name: volumesnapshotclasses.snapshot.storage.k8s.io name: volumesnapshotclasses.snapshot.storage.k8s.io
spec: spec:
group: snapshot.storage.k8s.io group: snapshot.storage.k8s.io
@ -16,118 +15,128 @@ spec:
listKind: VolumeSnapshotClassList listKind: VolumeSnapshotClassList
plural: volumesnapshotclasses plural: volumesnapshotclasses
shortNames: shortNames:
- vsclass - vsclass
- vsclasses - vsclasses
singular: volumesnapshotclass singular: volumesnapshotclass
scope: Cluster scope: Cluster
versions: versions:
- additionalPrinterColumns: - additionalPrinterColumns:
- jsonPath: .driver - jsonPath: .driver
name: Driver name: Driver
type: string type: string
- description: Determines whether a VolumeSnapshotContent created through the - description: Determines whether a VolumeSnapshotContent created through the
VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted. VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
jsonPath: .deletionPolicy jsonPath: .deletionPolicy
name: DeletionPolicy name: DeletionPolicy
type: string type: string
- jsonPath: .metadata.creationTimestamp - jsonPath: .metadata.creationTimestamp
name: Age name: Age
type: date type: date
name: v1 name: v1
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: VolumeSnapshotClass specifies parameters that a underlying storage description: |-
system uses when creating a volume snapshot. A specific VolumeSnapshotClass VolumeSnapshotClass specifies parameters that a underlying storage system uses when
is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its
are non-namespaced name in a VolumeSnapshot object.
properties: VolumeSnapshotClasses are non-namespaced
apiVersion: properties:
description: 'APIVersion defines the versioned schema of this representation apiVersion:
of an object. Servers should convert recognized schemas to the latest description: |-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
deletionPolicy:
description: |-
deletionPolicy determines whether a VolumeSnapshotContent created through
the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
Supported values are "Retain" and "Delete".
"Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept.
"Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted.
Required.
enum:
- Delete
- Retain
type: string
driver:
description: |-
driver is the name of the storage driver that handles this VolumeSnapshotClass.
Required.
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
parameters:
additionalProperties:
type: string type: string
deletionPolicy: description: |-
description: deletionPolicy determines whether a VolumeSnapshotContent parameters is a key-value map with storage driver specific parameters for creating snapshots.
created through the VolumeSnapshotClass should be deleted when its bound These values are opaque to Kubernetes.
VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". type: object
"Retain" means that the VolumeSnapshotContent and its physical snapshot required:
on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent - deletionPolicy
and its physical snapshot on underlying storage system are deleted. - driver
Required. type: object
enum: served: true
- Delete storage: true
- Retain subresources: {}
- additionalPrinterColumns:
- jsonPath: .driver
name: Driver
type: string
- description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
jsonPath: .deletionPolicy
name: DeletionPolicy
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1beta1
# This indicates the v1beta1 version of the custom resource is deprecated.
# API requests to this version receive a warning in the server response.
deprecated: true
# This overrides the default warning returned to clients making v1beta1 API requests.
deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshotClass is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshotClass"
schema:
openAPIV3Schema:
description: VolumeSnapshotClass specifies parameters that a underlying storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses are non-namespaced
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
deletionPolicy:
description: deletionPolicy determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. Required.
enum:
- Delete
- Retain
type: string
driver:
description: driver is the name of the storage driver that handles this VolumeSnapshotClass. Required.
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
parameters:
additionalProperties:
type: string type: string
driver: description: parameters is a key-value map with storage driver specific parameters for creating snapshots. These values are opaque to Kubernetes.
description: driver is the name of the storage driver that handles this type: object
VolumeSnapshotClass. Required. required:
type: string - deletionPolicy
kind: - driver
description: 'Kind is a string value representing the REST resource this type: object
object represents. Servers may infer this from the endpoint the client served: false
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' storage: false
type: string subresources: {}
parameters:
additionalProperties:
type: string
description: parameters is a key-value map with storage driver specific
parameters for creating snapshots. These values are opaque to Kubernetes.
type: object
required:
- deletionPolicy
- driver
type: object
served: true
storage: true
subresources: {}
- additionalPrinterColumns:
- jsonPath: .driver
name: Driver
type: string
- description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
jsonPath: .deletionPolicy
name: DeletionPolicy
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1beta1
# This indicates the v1beta1 version of the custom resource is deprecated.
# API requests to this version receive a warning in the server response.
deprecated: true
# This overrides the default warning returned to clients making v1beta1 API requests.
deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshotClass is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshotClass"
schema:
openAPIV3Schema:
description: VolumeSnapshotClass specifies parameters that a underlying storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses are non-namespaced
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
deletionPolicy:
description: deletionPolicy determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. Required.
enum:
- Delete
- Retain
type: string
driver:
description: driver is the name of the storage driver that handles this VolumeSnapshotClass. Required.
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
parameters:
additionalProperties:
type: string
description: parameters is a key-value map with storage driver specific parameters for creating snapshots. These values are opaque to Kubernetes.
type: object
required:
- deletionPolicy
- driver
type: object
served: false
storage: false
subresources: {}
status: status:
acceptedNames: acceptedNames:
kind: "" kind: ""

View File

@ -5,9 +5,8 @@ metadata:
labels: labels:
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.8.0 controller-gen.kubebuilder.io/version: v0.15.0
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665" api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/955"
creationTimestamp: null
name: volumesnapshotcontents.snapshot.storage.k8s.io name: volumesnapshotcontents.snapshot.storage.k8s.io
spec: spec:
group: snapshot.storage.k8s.io group: snapshot.storage.k8s.io
@ -16,380 +15,442 @@ spec:
listKind: VolumeSnapshotContentList listKind: VolumeSnapshotContentList
plural: volumesnapshotcontents plural: volumesnapshotcontents
shortNames: shortNames:
- vsc - vsc
- vscs - vscs
singular: volumesnapshotcontent singular: volumesnapshotcontent
scope: Cluster scope: Cluster
versions: versions:
- additionalPrinterColumns: - additionalPrinterColumns:
- description: Indicates if the snapshot is ready to be used to restore a volume. - description: Indicates if the snapshot is ready to be used to restore a volume.
jsonPath: .status.readyToUse jsonPath: .status.readyToUse
name: ReadyToUse name: ReadyToUse
type: boolean type: boolean
- description: Represents the complete size of the snapshot in bytes - description: Represents the complete size of the snapshot in bytes
jsonPath: .status.restoreSize jsonPath: .status.restoreSize
name: RestoreSize name: RestoreSize
type: integer type: integer
- description: Determines whether this VolumeSnapshotContent and its physical - description: Determines whether this VolumeSnapshotContent and its physical
snapshot on the underlying storage system should be deleted when its bound snapshot on the underlying storage system should be deleted when its bound
VolumeSnapshot is deleted. VolumeSnapshot is deleted.
jsonPath: .spec.deletionPolicy jsonPath: .spec.deletionPolicy
name: DeletionPolicy name: DeletionPolicy
type: string type: string
- description: Name of the CSI driver used to create the physical snapshot on - description: Name of the CSI driver used to create the physical snapshot on
the underlying storage system. the underlying storage system.
jsonPath: .spec.driver jsonPath: .spec.driver
name: Driver name: Driver
type: string type: string
- description: Name of the VolumeSnapshotClass to which this snapshot belongs. - description: Name of the VolumeSnapshotClass to which this snapshot belongs.
jsonPath: .spec.volumeSnapshotClassName jsonPath: .spec.volumeSnapshotClassName
name: VolumeSnapshotClass name: VolumeSnapshotClass
type: string type: string
- description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent - description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent
object is bound. object is bound.
jsonPath: .spec.volumeSnapshotRef.name jsonPath: .spec.volumeSnapshotRef.name
name: VolumeSnapshot name: VolumeSnapshot
type: string type: string
- description: Namespace of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. - description: Namespace of the VolumeSnapshot object to which this VolumeSnapshotContent
jsonPath: .spec.volumeSnapshotRef.namespace object is bound.
name: VolumeSnapshotNamespace jsonPath: .spec.volumeSnapshotRef.namespace
type: string name: VolumeSnapshotNamespace
- jsonPath: .metadata.creationTimestamp type: string
name: Age - jsonPath: .metadata.creationTimestamp
type: date name: Age
name: v1 type: date
schema: name: v1
openAPIV3Schema: schema:
description: VolumeSnapshotContent represents the actual "on-disk" snapshot openAPIV3Schema:
object in the underlying storage system description: |-
properties: VolumeSnapshotContent represents the actual "on-disk" snapshot object in the
apiVersion: underlying storage system
description: 'APIVersion defines the versioned schema of this representation properties:
of an object. Servers should convert recognized schemas to the latest apiVersion:
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' description: |-
type: string APIVersion defines the versioned schema of this representation of an object.
kind: Servers should convert recognized schemas to the latest internal value, and
description: 'Kind is a string value representing the REST resource this may reject unrecognized values.
object represents. Servers may infer this from the endpoint the client More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string
type: string kind:
spec: description: |-
description: spec defines properties of a VolumeSnapshotContent created Kind is a string value representing the REST resource this object represents.
by the underlying storage system. Required. Servers may infer this from the endpoint the client submits requests to.
properties: Cannot be updated.
deletionPolicy: In CamelCase.
description: deletionPolicy determines whether this VolumeSnapshotContent More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
and its physical snapshot on the underlying storage system should type: string
be deleted when its bound VolumeSnapshot is deleted. Supported values metadata:
are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent type: object
and its physical snapshot on underlying storage system are kept. spec:
"Delete" means that the VolumeSnapshotContent and its physical snapshot description: |-
on underlying storage system are deleted. For dynamically provisioned spec defines properties of a VolumeSnapshotContent created by the underlying storage system.
snapshots, this field will automatically be filled in by the CSI Required.
snapshotter sidecar with the "DeletionPolicy" field defined in the properties:
corresponding VolumeSnapshotClass. For pre-existing snapshots, users deletionPolicy:
MUST specify this field when creating the VolumeSnapshotContent description: |-
object. Required. deletionPolicy determines whether this VolumeSnapshotContent and its physical snapshot on
enum: the underlying storage system should be deleted when its bound VolumeSnapshot is deleted.
- Delete Supported values are "Retain" and "Delete".
- Retain "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept.
type: string "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted.
driver: For dynamically provisioned snapshots, this field will automatically be filled in by the
description: driver is the name of the CSI driver used to create the CSI snapshotter sidecar with the "DeletionPolicy" field defined in the corresponding
physical snapshot on the underlying storage system. This MUST be VolumeSnapshotClass.
the same as the name returned by the CSI GetPluginName() call for For pre-existing snapshots, users MUST specify this field when creating the
that driver. Required. VolumeSnapshotContent object.
type: string Required.
source: enum:
description: source specifies whether the snapshot is (or should be) - Delete
dynamically provisioned or already exists, and just requires a Kubernetes - Retain
object representation. This field is immutable after creation. Required. type: string
properties: driver:
snapshotHandle: description: |-
description: snapshotHandle specifies the CSI "snapshot_id" of driver is the name of the CSI driver used to create the physical snapshot on
a pre-existing snapshot on the underlying storage system for the underlying storage system.
which a Kubernetes object representation was (or should be) This MUST be the same as the name returned by the CSI GetPluginName() call for
created. This field is immutable. that driver.
type: string Required.
volumeHandle: type: string
description: volumeHandle specifies the CSI "volume_id" of the source:
volume from which a snapshot should be dynamically taken from. description: |-
This field is immutable. source specifies whether the snapshot is (or should be) dynamically provisioned
type: string or already exists, and just requires a Kubernetes object representation.
type: object This field is immutable after creation.
oneOf: Required.
- required: ["snapshotHandle"] properties:
- required: ["volumeHandle"] snapshotHandle:
sourceVolumeMode: description: |-
description: SourceVolumeMode is the mode of the volume whose snapshot snapshotHandle specifies the CSI "snapshot_id" of a pre-existing snapshot on
is taken. Can be either “Filesystem” or “Block”. If not specified, the underlying storage system for which a Kubernetes object representation
it indicates the source volume's mode is unknown. This field is was (or should be) created.
immutable. This field is an alpha field. This field is immutable.
type: string type: string
volumeSnapshotClassName: x-kubernetes-validations:
description: name of the VolumeSnapshotClass from which this snapshot - message: snapshotHandle is immutable
was (or will be) created. Note that after provisioning, the VolumeSnapshotClass rule: self == oldSelf
may be deleted or recreated with different set of values, and as volumeHandle:
such, should not be referenced post-snapshot creation. description: |-
type: string volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot
volumeSnapshotRef: should be dynamically taken from.
description: volumeSnapshotRef specifies the VolumeSnapshot object This field is immutable.
to which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName type: string
field must reference to this VolumeSnapshotContent's name for the x-kubernetes-validations:
bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent - message: volumeHandle is immutable
object, name and namespace of the VolumeSnapshot object MUST be rule: self == oldSelf
provided for binding to happen. This field is immutable after creation. type: object
Required. x-kubernetes-validations:
properties: - message: volumeHandle is required once set
apiVersion: rule: '!has(oldSelf.volumeHandle) || has(self.volumeHandle)'
description: API version of the referent. - message: snapshotHandle is required once set
type: string rule: '!has(oldSelf.snapshotHandle) || has(self.snapshotHandle)'
fieldPath: - message: exactly one of volumeHandle and snapshotHandle must be
description: 'If referring to a piece of an object instead of set
an entire object, this string should contain a valid JSON/Go rule: (has(self.volumeHandle) && !has(self.snapshotHandle)) || (!has(self.volumeHandle)
field access statement, such as desiredState.manifest.containers[2]. && has(self.snapshotHandle))
For example, if the object reference is to a container within sourceVolumeMode:
a pod, this would take on a value like: "spec.containers{name}" description: |-
(where "name" refers to the name of the container that triggered SourceVolumeMode is the mode of the volume whose snapshot is taken.
the event) or if no container name is specified "spec.containers[2]" Can be either “Filesystem” or “Block”.
(container with index 2 in this pod). This syntax is chosen If not specified, it indicates the source volume's mode is unknown.
only to have some well-defined way of referencing a part of This field is immutable.
an object. TODO: this design is not final and this field is This field is an alpha field.
subject to change in the future.' type: string
type: string x-kubernetes-validations:
kind: - message: sourceVolumeMode is immutable
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' rule: self == oldSelf
type: string volumeSnapshotClassName:
name: description: |-
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' name of the VolumeSnapshotClass from which this snapshot was (or will be)
type: string created.
namespace: Note that after provisioning, the VolumeSnapshotClass may be deleted or
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' recreated with different set of values, and as such, should not be referenced
type: string post-snapshot creation.
resourceVersion: type: string
description: 'Specific resourceVersion to which this reference volumeSnapshotRef:
is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' description: |-
type: string volumeSnapshotRef specifies the VolumeSnapshot object to which this
uid: VolumeSnapshotContent object is bound.
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to
type: string this VolumeSnapshotContent's name for the bidirectional binding to be valid.
type: object For a pre-existing VolumeSnapshotContent object, name and namespace of the
required: VolumeSnapshot object MUST be provided for binding to happen.
- deletionPolicy This field is immutable after creation.
- driver Required.
- source properties:
- volumeSnapshotRef apiVersion:
type: object description: API version of the referent.
status: type: string
description: status represents the current information of a snapshot. fieldPath:
properties: description: |-
creationTime: If referring to a piece of an object instead of an entire object, this string
description: creationTime is the timestamp when the point-in-time should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
snapshot is taken by the underlying storage system. In dynamic snapshot For example, if the object reference is to a container within a pod, this would take on a value like:
creation case, this field will be filled in by the CSI snapshotter "spec.containers{name}" (where "name" refers to the name of the container that triggered
sidecar with the "creation_time" value returned from CSI "CreateSnapshot" the event) or if no container name is specified "spec.containers[2]" (container with
gRPC call. For a pre-existing snapshot, this field will be filled index 2 in this pod). This syntax is chosen only to have some well-defined way of
with the "creation_time" value returned from the CSI "ListSnapshots" referencing a part of an object.
gRPC call if the driver supports it. If not specified, it indicates TODO: this design is not final and this field is subject to change in the future.
the creation time is unknown. The format of this field is a Unix type: string
nanoseconds time encoded as an int64. On Unix, the command `date kind:
+%s%N` returns the current time in nanoseconds since 1970-01-01 description: |-
00:00:00 UTC. Kind of the referent.
format: int64 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: integer type: string
error: name:
description: error is the last observed error during snapshot creation, description: |-
if any. Upon success after retry, this error field will be cleared. Name of the referent.
properties: More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
message: type: string
description: 'message is a string detailing the encountered error namespace:
during snapshot creation if specified. NOTE: message may be description: |-
logged, and it should not contain sensitive information.' Namespace of the referent.
type: string More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
time: type: string
description: time is the timestamp when the error was encountered. resourceVersion:
format: date-time description: |-
type: string Specific resourceVersion to which this reference is made, if any.
type: object More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
readyToUse: type: string
description: readyToUse indicates if a snapshot is ready to be used uid:
to restore a volume. In dynamic snapshot creation case, this field description: |-
will be filled in by the CSI snapshotter sidecar with the "ready_to_use" UID of the referent.
value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
snapshot, this field will be filled with the "ready_to_use" value type: string
returned from the CSI "ListSnapshots" gRPC call if the driver supports type: object
it, otherwise, this field will be set to "True". If not specified, x-kubernetes-map-type: atomic
it means the readiness of a snapshot is unknown. x-kubernetes-validations:
type: boolean - message: both spec.volumeSnapshotRef.name and spec.volumeSnapshotRef.namespace
restoreSize: must be set
description: restoreSize represents the complete size of the snapshot rule: has(self.name) && has(self.__namespace__)
in bytes. In dynamic snapshot creation case, this field will be required:
filled in by the CSI snapshotter sidecar with the "size_bytes" value - deletionPolicy
returned from CSI "CreateSnapshot" gRPC call. For a pre-existing - driver
snapshot, this field will be filled with the "size_bytes" value - source
returned from the CSI "ListSnapshots" gRPC call if the driver supports - volumeSnapshotRef
it. When restoring a volume from this snapshot, the size of the type: object
volume MUST NOT be smaller than the restoreSize if it is specified, x-kubernetes-validations:
otherwise the restoration will fail. If not specified, it indicates - message: sourceVolumeMode is required once set
that the size is unknown. rule: '!has(oldSelf.sourceVolumeMode) || has(self.sourceVolumeMode)'
format: int64 status:
minimum: 0 description: status represents the current information of a snapshot.
type: integer properties:
snapshotHandle: creationTime:
description: snapshotHandle is the CSI "snapshot_id" of a snapshot description: |-
on the underlying storage system. If not specified, it indicates creationTime is the timestamp when the point-in-time snapshot is taken
that dynamic snapshot creation has either failed or it is still by the underlying storage system.
in progress. In dynamic snapshot creation case, this field will be filled in by the
type: string CSI snapshotter sidecar with the "creation_time" value returned from CSI
type: object "CreateSnapshot" gRPC call.
required: For a pre-existing snapshot, this field will be filled with the "creation_time"
- spec value returned from the CSI "ListSnapshots" gRPC call if the driver supports it.
type: object If not specified, it indicates the creation time is unknown.
served: true The format of this field is a Unix nanoseconds time encoded as an int64.
storage: true On Unix, the command `date +%s%N` returns the current time in nanoseconds
subresources: since 1970-01-01 00:00:00 UTC.
status: {} format: int64
- additionalPrinterColumns: type: integer
- description: Indicates if the snapshot is ready to be used to restore a volume. error:
jsonPath: .status.readyToUse description: |-
name: ReadyToUse error is the last observed error during snapshot creation, if any.
type: boolean Upon success after retry, this error field will be cleared.
- description: Represents the complete size of the snapshot in bytes properties:
jsonPath: .status.restoreSize message:
name: RestoreSize description: |-
type: integer message is a string detailing the encountered error during snapshot
- description: Determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted. creation if specified.
jsonPath: .spec.deletionPolicy NOTE: message may be logged, and it should not contain sensitive
name: DeletionPolicy information.
type: string type: string
- description: Name of the CSI driver used to create the physical snapshot on the underlying storage system. time:
jsonPath: .spec.driver description: time is the timestamp when the error was encountered.
name: Driver format: date-time
type: string type: string
- description: Name of the VolumeSnapshotClass to which this snapshot belongs. type: object
jsonPath: .spec.volumeSnapshotClassName readyToUse:
name: VolumeSnapshotClass description: |-
type: string readyToUse indicates if a snapshot is ready to be used to restore a volume.
- description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. In dynamic snapshot creation case, this field will be filled in by the
jsonPath: .spec.volumeSnapshotRef.name CSI snapshotter sidecar with the "ready_to_use" value returned from CSI
name: VolumeSnapshot "CreateSnapshot" gRPC call.
type: string For a pre-existing snapshot, this field will be filled with the "ready_to_use"
- description: Namespace of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. value returned from the CSI "ListSnapshots" gRPC call if the driver supports it,
jsonPath: .spec.volumeSnapshotRef.namespace otherwise, this field will be set to "True".
name: VolumeSnapshotNamespace If not specified, it means the readiness of a snapshot is unknown.
type: string type: boolean
- jsonPath: .metadata.creationTimestamp restoreSize:
name: Age description: |-
type: date restoreSize represents the complete size of the snapshot in bytes.
name: v1beta1 In dynamic snapshot creation case, this field will be filled in by the
# This indicates the v1beta1 version of the custom resource is deprecated. CSI snapshotter sidecar with the "size_bytes" value returned from CSI
# API requests to this version receive a warning in the server response. "CreateSnapshot" gRPC call.
deprecated: true For a pre-existing snapshot, this field will be filled with the "size_bytes"
# This overrides the default warning returned to clients making v1beta1 API requests. value returned from the CSI "ListSnapshots" gRPC call if the driver supports it.
deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshotContent is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshotContent" When restoring a volume from this snapshot, the size of the volume MUST NOT
schema: be smaller than the restoreSize if it is specified, otherwise the restoration will fail.
openAPIV3Schema: If not specified, it indicates that the size is unknown.
description: VolumeSnapshotContent represents the actual "on-disk" snapshot object in the underlying storage system format: int64
properties: minimum: 0
apiVersion: type: integer
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' snapshotHandle:
type: string description: |-
kind: snapshotHandle is the CSI "snapshot_id" of a snapshot on the underlying storage system.
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' If not specified, it indicates that dynamic snapshot creation has either failed
type: string or it is still in progress.
spec: type: string
description: spec defines properties of a VolumeSnapshotContent created by the underlying storage system. Required. volumeGroupSnapshotHandle:
properties: description: |-
deletionPolicy: VolumeGroupSnapshotHandle is the CSI "group_snapshot_id" of a group snapshot
description: deletionPolicy determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. For dynamically provisioned snapshots, this field will automatically be filled in by the CSI snapshotter sidecar with the "DeletionPolicy" field defined in the corresponding VolumeSnapshotClass. For pre-existing snapshots, users MUST specify this field when creating the VolumeSnapshotContent object. Required. on the underlying storage system.
enum: type: string
- Delete type: object
- Retain required:
type: string - spec
driver: type: object
description: driver is the name of the CSI driver used to create the physical snapshot on the underlying storage system. This MUST be the same as the name returned by the CSI GetPluginName() call for that driver. Required. served: true
type: string storage: true
source: subresources:
description: source specifies whether the snapshot is (or should be) dynamically provisioned or already exists, and just requires a Kubernetes object representation. This field is immutable after creation. Required. status: {}
properties: - additionalPrinterColumns:
snapshotHandle: - description: Indicates if the snapshot is ready to be used to restore a volume.
description: snapshotHandle specifies the CSI "snapshot_id" of a pre-existing snapshot on the underlying storage system for which a Kubernetes object representation was (or should be) created. This field is immutable. jsonPath: .status.readyToUse
type: string name: ReadyToUse
volumeHandle: type: boolean
description: volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot should be dynamically taken from. This field is immutable. - description: Represents the complete size of the snapshot in bytes
type: string jsonPath: .status.restoreSize
type: object name: RestoreSize
volumeSnapshotClassName: type: integer
description: name of the VolumeSnapshotClass from which this snapshot was (or will be) created. Note that after provisioning, the VolumeSnapshotClass may be deleted or recreated with different set of values, and as such, should not be referenced post-snapshot creation. - description: Determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted.
type: string jsonPath: .spec.deletionPolicy
volumeSnapshotRef: name: DeletionPolicy
description: volumeSnapshotRef specifies the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to this VolumeSnapshotContent's name for the bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent object, name and namespace of the VolumeSnapshot object MUST be provided for binding to happen. This field is immutable after creation. Required. type: string
properties: - description: Name of the CSI driver used to create the physical snapshot on the underlying storage system.
apiVersion: jsonPath: .spec.driver
description: API version of the referent. name: Driver
type: string type: string
fieldPath: - description: Name of the VolumeSnapshotClass to which this snapshot belongs.
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.' jsonPath: .spec.volumeSnapshotClassName
type: string name: VolumeSnapshotClass
kind: type: string
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
type: string jsonPath: .spec.volumeSnapshotRef.name
name: name: VolumeSnapshot
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string
type: string - description: Namespace of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
namespace: jsonPath: .spec.volumeSnapshotRef.namespace
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/' name: VolumeSnapshotNamespace
type: string type: string
resourceVersion: - jsonPath: .metadata.creationTimestamp
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency' name: Age
type: string type: date
uid: name: v1beta1
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids' # This indicates the v1beta1 version of the custom resource is deprecated.
type: string # API requests to this version receive a warning in the server response.
type: object deprecated: true
required: # This overrides the default warning returned to clients making v1beta1 API requests.
- deletionPolicy deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshotContent is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshotContent"
- driver schema:
- source openAPIV3Schema:
- volumeSnapshotRef description: VolumeSnapshotContent represents the actual "on-disk" snapshot object in the underlying storage system
type: object properties:
status: apiVersion:
description: status represents the current information of a snapshot. description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
properties: type: string
creationTime: kind:
description: creationTime is the timestamp when the point-in-time snapshot is taken by the underlying storage system. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "creation_time" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "creation_time" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. If not specified, it indicates the creation time is unknown. The format of this field is a Unix nanoseconds time encoded as an int64. On Unix, the command `date +%s%N` returns the current time in nanoseconds since 1970-01-01 00:00:00 UTC. description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
format: int64 type: string
type: integer spec:
error: description: spec defines properties of a VolumeSnapshotContent created by the underlying storage system. Required.
description: error is the last observed error during snapshot creation, if any. Upon success after retry, this error field will be cleared. properties:
properties: deletionPolicy:
message: description: deletionPolicy determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. For dynamically provisioned snapshots, this field will automatically be filled in by the CSI snapshotter sidecar with the "DeletionPolicy" field defined in the corresponding VolumeSnapshotClass. For pre-existing snapshots, users MUST specify this field when creating the VolumeSnapshotContent object. Required.
description: 'message is a string detailing the encountered error during snapshot creation if specified. NOTE: message may be logged, and it should not contain sensitive information.' enum:
type: string - Delete
time: - Retain
description: time is the timestamp when the error was encountered. type: string
format: date-time driver:
type: string description: driver is the name of the CSI driver used to create the physical snapshot on the underlying storage system. This MUST be the same as the name returned by the CSI GetPluginName() call for that driver. Required.
type: object type: string
readyToUse: source:
description: readyToUse indicates if a snapshot is ready to be used to restore a volume. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "ready_to_use" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "ready_to_use" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, otherwise, this field will be set to "True". If not specified, it means the readiness of a snapshot is unknown. description: source specifies whether the snapshot is (or should be) dynamically provisioned or already exists, and just requires a Kubernetes object representation. This field is immutable after creation. Required.
type: boolean properties:
restoreSize: snapshotHandle:
description: restoreSize represents the complete size of the snapshot in bytes. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "size_bytes" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. When restoring a volume from this snapshot, the size of the volume MUST NOT be smaller than the restoreSize if it is specified, otherwise the restoration will fail. If not specified, it indicates that the size is unknown. description: snapshotHandle specifies the CSI "snapshot_id" of a pre-existing snapshot on the underlying storage system for which a Kubernetes object representation was (or should be) created. This field is immutable.
format: int64 type: string
minimum: 0 volumeHandle:
type: integer description: volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot should be dynamically taken from. This field is immutable.
snapshotHandle: type: string
description: snapshotHandle is the CSI "snapshot_id" of a snapshot on the underlying storage system. If not specified, it indicates that dynamic snapshot creation has either failed or it is still in progress. type: object
type: string volumeSnapshotClassName:
type: object description: name of the VolumeSnapshotClass from which this snapshot was (or will be) created. Note that after provisioning, the VolumeSnapshotClass may be deleted or recreated with different set of values, and as such, should not be referenced post-snapshot creation.
required: type: string
- spec volumeSnapshotRef:
type: object description: volumeSnapshotRef specifies the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to this VolumeSnapshotContent's name for the bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent object, name and namespace of the VolumeSnapshot object MUST be provided for binding to happen. This field is immutable after creation. Required.
served: false properties:
storage: false apiVersion:
subresources: description: API version of the referent.
status: {} type: string
fieldPath:
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
type: string
kind:
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type: string
namespace:
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type: string
resourceVersion:
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
uid:
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type: string
type: object
required:
- deletionPolicy
- driver
- source
- volumeSnapshotRef
type: object
status:
description: status represents the current information of a snapshot.
properties:
creationTime:
description: creationTime is the timestamp when the point-in-time snapshot is taken by the underlying storage system. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "creation_time" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "creation_time" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. If not specified, it indicates the creation time is unknown. The format of this field is a Unix nanoseconds time encoded as an int64. On Unix, the command `date +%s%N` returns the current time in nanoseconds since 1970-01-01 00:00:00 UTC.
format: int64
type: integer
error:
description: error is the last observed error during snapshot creation, if any. Upon success after retry, this error field will be cleared.
properties:
message:
description: 'message is a string detailing the encountered error during snapshot creation if specified. NOTE: message may be logged, and it should not contain sensitive information.'
type: string
time:
description: time is the timestamp when the error was encountered.
format: date-time
type: string
type: object
readyToUse:
description: readyToUse indicates if a snapshot is ready to be used to restore a volume. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "ready_to_use" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "ready_to_use" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, otherwise, this field will be set to "True". If not specified, it means the readiness of a snapshot is unknown.
type: boolean
restoreSize:
description: restoreSize represents the complete size of the snapshot in bytes. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "size_bytes" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. When restoring a volume from this snapshot, the size of the volume MUST NOT be smaller than the restoreSize if it is specified, otherwise the restoration will fail. If not specified, it indicates that the size is unknown.
format: int64
minimum: 0
type: integer
snapshotHandle:
description: snapshotHandle is the CSI "snapshot_id" of a snapshot on the underlying storage system. If not specified, it indicates that dynamic snapshot creation has either failed or it is still in progress.
type: string
type: object
required:
- spec
type: object
served: false
storage: false
subresources:
status: {}
status: status:
acceptedNames: acceptedNames:
kind: "" kind: ""

View File

@ -5,9 +5,8 @@ metadata:
labels: labels:
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
annotations: annotations:
controller-gen.kubebuilder.io/version: v0.8.0 controller-gen.kubebuilder.io/version: v0.15.0
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665" api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/814"
creationTimestamp: null
name: volumesnapshots.snapshot.storage.k8s.io name: volumesnapshots.snapshot.storage.k8s.io
spec: spec:
group: snapshot.storage.k8s.io group: snapshot.storage.k8s.io
@ -16,292 +15,336 @@ spec:
listKind: VolumeSnapshotList listKind: VolumeSnapshotList
plural: volumesnapshots plural: volumesnapshots
shortNames: shortNames:
- vs - vs
singular: volumesnapshot singular: volumesnapshot
scope: Namespaced scope: Namespaced
versions: versions:
- additionalPrinterColumns: - additionalPrinterColumns:
- description: Indicates if the snapshot is ready to be used to restore a volume. - description: Indicates if the snapshot is ready to be used to restore a volume.
jsonPath: .status.readyToUse jsonPath: .status.readyToUse
name: ReadyToUse name: ReadyToUse
type: boolean type: boolean
- description: If a new snapshot needs to be created, this contains the name of - description: If a new snapshot needs to be created, this contains the name of
the source PVC from which this snapshot was (or will be) created. the source PVC from which this snapshot was (or will be) created.
jsonPath: .spec.source.persistentVolumeClaimName jsonPath: .spec.source.persistentVolumeClaimName
name: SourcePVC name: SourcePVC
type: string type: string
- description: If a snapshot already exists, this contains the name of the existing - description: If a snapshot already exists, this contains the name of the existing
VolumeSnapshotContent object representing the existing snapshot. VolumeSnapshotContent object representing the existing snapshot.
jsonPath: .spec.source.volumeSnapshotContentName jsonPath: .spec.source.volumeSnapshotContentName
name: SourceSnapshotContent name: SourceSnapshotContent
type: string type: string
- description: Represents the minimum size of volume required to rehydrate from - description: Represents the minimum size of volume required to rehydrate from
this snapshot. this snapshot.
jsonPath: .status.restoreSize jsonPath: .status.restoreSize
name: RestoreSize name: RestoreSize
type: string type: string
- description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot. - description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
jsonPath: .spec.volumeSnapshotClassName jsonPath: .spec.volumeSnapshotClassName
name: SnapshotClass name: SnapshotClass
type: string type: string
- description: Name of the VolumeSnapshotContent object to which the VolumeSnapshot - description: Name of the VolumeSnapshotContent object to which the VolumeSnapshot
object intends to bind to. Please note that verification of binding actually object intends to bind to. Please note that verification of binding actually
requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure
both are pointing at each other. Binding MUST be verified prior to usage of both are pointing at each other. Binding MUST be verified prior to usage of
this object. this object.
jsonPath: .status.boundVolumeSnapshotContentName jsonPath: .status.boundVolumeSnapshotContentName
name: SnapshotContent name: SnapshotContent
type: string type: string
- description: Timestamp when the point-in-time snapshot was taken by the underlying - description: Timestamp when the point-in-time snapshot was taken by the underlying
storage system. storage system.
jsonPath: .status.creationTime jsonPath: .status.creationTime
name: CreationTime name: CreationTime
type: date type: date
- jsonPath: .metadata.creationTimestamp - jsonPath: .metadata.creationTimestamp
name: Age name: Age
type: date type: date
name: v1 name: v1
schema: schema:
openAPIV3Schema: openAPIV3Schema:
description: VolumeSnapshot is a user's request for either creating a point-in-time description: |-
snapshot of a persistent volume, or binding to a pre-existing snapshot. VolumeSnapshot is a user's request for either creating a point-in-time
properties: snapshot of a persistent volume, or binding to a pre-existing snapshot.
apiVersion: properties:
description: 'APIVersion defines the versioned schema of this representation apiVersion:
of an object. Servers should convert recognized schemas to the latest description: |-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' APIVersion defines the versioned schema of this representation of an object.
type: string Servers should convert recognized schemas to the latest internal value, and
kind: may reject unrecognized values.
description: 'Kind is a string value representing the REST resource this More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
object represents. Servers may infer this from the endpoint the client type: string
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' kind:
type: string description: |-
spec: Kind is a string value representing the REST resource this object represents.
description: 'spec defines the desired characteristics of a snapshot requested Servers may infer this from the endpoint the client submits requests to.
by a user. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots Cannot be updated.
Required.' In CamelCase.
properties: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
source: type: string
description: source specifies where a snapshot will be created from. metadata:
This field is immutable after creation. Required. type: object
properties: spec:
persistentVolumeClaimName: description: |-
description: persistentVolumeClaimName specifies the name of the spec defines the desired characteristics of a snapshot requested by a user.
PersistentVolumeClaim object representing the volume from which More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots
a snapshot should be created. This PVC is assumed to be in the Required.
same namespace as the VolumeSnapshot object. This field should properties:
be set if the snapshot does not exists, and needs to be created. source:
This field is immutable. description: |-
type: string source specifies where a snapshot will be created from.
volumeSnapshotContentName: This field is immutable after creation.
description: volumeSnapshotContentName specifies the name of a Required.
pre-existing VolumeSnapshotContent object representing an existing properties:
volume snapshot. This field should be set if the snapshot already persistentVolumeClaimName:
exists and only needs a representation in Kubernetes. This field description: |-
is immutable. persistentVolumeClaimName specifies the name of the PersistentVolumeClaim
type: string object representing the volume from which a snapshot should be created.
type: object This PVC is assumed to be in the same namespace as the VolumeSnapshot
oneOf: object.
- required: ["persistentVolumeClaimName"] This field should be set if the snapshot does not exists, and needs to be
- required: ["volumeSnapshotContentName"] created.
volumeSnapshotClassName: This field is immutable.
description: 'VolumeSnapshotClassName is the name of the VolumeSnapshotClass type: string
requested by the VolumeSnapshot. VolumeSnapshotClassName may be x-kubernetes-validations:
left nil to indicate that the default SnapshotClass should be used. - message: persistentVolumeClaimName is immutable
A given cluster may have multiple default Volume SnapshotClasses: rule: self == oldSelf
one default per CSI Driver. If a VolumeSnapshot does not specify volumeSnapshotContentName:
a SnapshotClass, VolumeSnapshotSource will be checked to figure description: |-
out what the associated CSI Driver is, and the default VolumeSnapshotClass volumeSnapshotContentName specifies the name of a pre-existing VolumeSnapshotContent
associated with that CSI Driver will be used. If more than one VolumeSnapshotClass object representing an existing volume snapshot.
exist for a given CSI Driver and more than one have been marked This field should be set if the snapshot already exists and only needs a representation in Kubernetes.
as default, CreateSnapshot will fail and generate an event. Empty This field is immutable.
string is not allowed for this field.' type: string
type: string x-kubernetes-validations:
required: - message: volumeSnapshotContentName is immutable
- source rule: self == oldSelf
type: object type: object
status: x-kubernetes-validations:
description: status represents the current information of a snapshot. - message: persistentVolumeClaimName is required once set
Consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent rule: '!has(oldSelf.persistentVolumeClaimName) || has(self.persistentVolumeClaimName)'
objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent - message: volumeSnapshotContentName is required once set
point at each other) before using this object. rule: '!has(oldSelf.volumeSnapshotContentName) || has(self.volumeSnapshotContentName)'
properties: - message: exactly one of volumeSnapshotContentName and persistentVolumeClaimName
boundVolumeSnapshotContentName: must be set
description: 'boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent rule: (has(self.volumeSnapshotContentName) && !has(self.persistentVolumeClaimName))
object to which this VolumeSnapshot object intends to bind to. If || (!has(self.volumeSnapshotContentName) && has(self.persistentVolumeClaimName))
not specified, it indicates that the VolumeSnapshot object has not volumeSnapshotClassName:
been successfully bound to a VolumeSnapshotContent object yet. NOTE: description: |-
To avoid possible security issues, consumers must verify binding VolumeSnapshotClassName is the name of the VolumeSnapshotClass
between VolumeSnapshot and VolumeSnapshotContent objects is successful requested by the VolumeSnapshot.
(by validating that both VolumeSnapshot and VolumeSnapshotContent VolumeSnapshotClassName may be left nil to indicate that the default
point at each other) before using this object.' SnapshotClass should be used.
type: string A given cluster may have multiple default Volume SnapshotClasses: one
creationTime: default per CSI Driver. If a VolumeSnapshot does not specify a SnapshotClass,
description: creationTime is the timestamp when the point-in-time VolumeSnapshotSource will be checked to figure out what the associated
snapshot is taken by the underlying storage system. In dynamic snapshot CSI Driver is, and the default VolumeSnapshotClass associated with that
creation case, this field will be filled in by the snapshot controller CSI Driver will be used. If more than one VolumeSnapshotClass exist for
with the "creation_time" value returned from CSI "CreateSnapshot" a given CSI Driver and more than one have been marked as default,
gRPC call. For a pre-existing snapshot, this field will be filled CreateSnapshot will fail and generate an event.
with the "creation_time" value returned from the CSI "ListSnapshots" Empty string is not allowed for this field.
gRPC call if the driver supports it. If not specified, it may indicate type: string
that the creation time of the snapshot is unknown. x-kubernetes-validations:
format: date-time - message: volumeSnapshotClassName must not be the empty string when
type: string set
error: rule: size(self) > 0
description: error is the last observed error during snapshot creation, required:
if any. This field could be helpful to upper level controllers(i.e., - source
application controller) to decide whether they should continue on type: object
waiting for the snapshot to be created based on the type of error status:
reported. The snapshot controller will keep retrying when an error description: |-
occurs during the snapshot creation. Upon success, this error field status represents the current information of a snapshot.
will be cleared. Consumers must verify binding between VolumeSnapshot and
properties: VolumeSnapshotContent objects is successful (by validating that both
message: VolumeSnapshot and VolumeSnapshotContent point at each other) before
description: 'message is a string detailing the encountered error using this object.
during snapshot creation if specified. NOTE: message may be properties:
logged, and it should not contain sensitive information.' boundVolumeSnapshotContentName:
type: string description: |-
time: boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent
description: time is the timestamp when the error was encountered. object to which this VolumeSnapshot object intends to bind to.
format: date-time If not specified, it indicates that the VolumeSnapshot object has not been
type: string successfully bound to a VolumeSnapshotContent object yet.
type: object NOTE: To avoid possible security issues, consumers must verify binding between
readyToUse: VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that
description: readyToUse indicates if the snapshot is ready to be used both VolumeSnapshot and VolumeSnapshotContent point at each other) before using
to restore a volume. In dynamic snapshot creation case, this field this object.
will be filled in by the snapshot controller with the "ready_to_use" type: string
value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing creationTime:
snapshot, this field will be filled with the "ready_to_use" value description: |-
returned from the CSI "ListSnapshots" gRPC call if the driver supports creationTime is the timestamp when the point-in-time snapshot is taken
it, otherwise, this field will be set to "True". If not specified, by the underlying storage system.
it means the readiness of a snapshot is unknown. In dynamic snapshot creation case, this field will be filled in by the
type: boolean snapshot controller with the "creation_time" value returned from CSI
restoreSize: "CreateSnapshot" gRPC call.
type: string For a pre-existing snapshot, this field will be filled with the "creation_time"
description: restoreSize represents the minimum size of volume required value returned from the CSI "ListSnapshots" gRPC call if the driver supports it.
to create a volume from this snapshot. In dynamic snapshot creation If not specified, it may indicate that the creation time of the snapshot is unknown.
case, this field will be filled in by the snapshot controller with format: date-time
the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. type: string
For a pre-existing snapshot, this field will be filled with the error:
"size_bytes" value returned from the CSI "ListSnapshots" gRPC call description: |-
if the driver supports it. When restoring a volume from this snapshot, error is the last observed error during snapshot creation, if any.
the size of the volume MUST NOT be smaller than the restoreSize This field could be helpful to upper level controllers(i.e., application controller)
if it is specified, otherwise the restoration will fail. If not to decide whether they should continue on waiting for the snapshot to be created
specified, it indicates that the size is unknown. based on the type of error reported.
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ The snapshot controller will keep retrying when an error occurs during the
x-kubernetes-int-or-string: true snapshot creation. Upon success, this error field will be cleared.
type: object properties:
required: message:
- spec description: |-
type: object message is a string detailing the encountered error during snapshot
served: true creation if specified.
storage: true NOTE: message may be logged, and it should not contain sensitive
subresources: information.
status: {} type: string
- additionalPrinterColumns: time:
- description: Indicates if the snapshot is ready to be used to restore a volume. description: time is the timestamp when the error was encountered.
jsonPath: .status.readyToUse format: date-time
name: ReadyToUse type: string
type: boolean type: object
- description: If a new snapshot needs to be created, this contains the name of the source PVC from which this snapshot was (or will be) created. readyToUse:
jsonPath: .spec.source.persistentVolumeClaimName description: |-
name: SourcePVC readyToUse indicates if the snapshot is ready to be used to restore a volume.
type: string In dynamic snapshot creation case, this field will be filled in by the
- description: If a snapshot already exists, this contains the name of the existing VolumeSnapshotContent object representing the existing snapshot. snapshot controller with the "ready_to_use" value returned from CSI
jsonPath: .spec.source.volumeSnapshotContentName "CreateSnapshot" gRPC call.
name: SourceSnapshotContent For a pre-existing snapshot, this field will be filled with the "ready_to_use"
type: string value returned from the CSI "ListSnapshots" gRPC call if the driver supports it,
- description: Represents the minimum size of volume required to rehydrate from this snapshot. otherwise, this field will be set to "True".
jsonPath: .status.restoreSize If not specified, it means the readiness of a snapshot is unknown.
name: RestoreSize type: boolean
type: string restoreSize:
- description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot. type: string
jsonPath: .spec.volumeSnapshotClassName description: |-
name: SnapshotClass restoreSize represents the minimum size of volume required to create a volume
type: string from this snapshot.
- description: Name of the VolumeSnapshotContent object to which the VolumeSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object. In dynamic snapshot creation case, this field will be filled in by the
jsonPath: .status.boundVolumeSnapshotContentName snapshot controller with the "size_bytes" value returned from CSI
name: SnapshotContent "CreateSnapshot" gRPC call.
type: string For a pre-existing snapshot, this field will be filled with the "size_bytes"
- description: Timestamp when the point-in-time snapshot was taken by the underlying storage system. value returned from the CSI "ListSnapshots" gRPC call if the driver supports it.
jsonPath: .status.creationTime When restoring a volume from this snapshot, the size of the volume MUST NOT
name: CreationTime be smaller than the restoreSize if it is specified, otherwise the restoration will fail.
type: date If not specified, it indicates that the size is unknown.
- jsonPath: .metadata.creationTimestamp pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
name: Age x-kubernetes-int-or-string: true
type: date volumeGroupSnapshotName:
name: v1beta1 description: |-
# This indicates the v1beta1 version of the custom resource is deprecated. VolumeGroupSnapshotName is the name of the VolumeGroupSnapshot of which this
# API requests to this version receive a warning in the server response. VolumeSnapshot is a part of.
deprecated: true type: string
# This overrides the default warning returned to clients making v1beta1 API requests. type: object
deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshot is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshot" required:
schema: - spec
openAPIV3Schema: type: object
description: VolumeSnapshot is a user's request for either creating a point-in-time snapshot of a persistent volume, or binding to a pre-existing snapshot. served: true
properties: storage: true
apiVersion: subresources:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' status: {}
type: string - additionalPrinterColumns:
kind: - description: Indicates if the snapshot is ready to be used to restore a volume.
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' jsonPath: .status.readyToUse
type: string name: ReadyToUse
spec: type: boolean
description: 'spec defines the desired characteristics of a snapshot requested by a user. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots Required.' - description: If a new snapshot needs to be created, this contains the name of the source PVC from which this snapshot was (or will be) created.
properties: jsonPath: .spec.source.persistentVolumeClaimName
source: name: SourcePVC
description: source specifies where a snapshot will be created from. This field is immutable after creation. Required. type: string
properties: - description: If a snapshot already exists, this contains the name of the existing VolumeSnapshotContent object representing the existing snapshot.
persistentVolumeClaimName: jsonPath: .spec.source.volumeSnapshotContentName
description: persistentVolumeClaimName specifies the name of the PersistentVolumeClaim object representing the volume from which a snapshot should be created. This PVC is assumed to be in the same namespace as the VolumeSnapshot object. This field should be set if the snapshot does not exists, and needs to be created. This field is immutable. name: SourceSnapshotContent
type: string type: string
volumeSnapshotContentName: - description: Represents the minimum size of volume required to rehydrate from this snapshot.
description: volumeSnapshotContentName specifies the name of a pre-existing VolumeSnapshotContent object representing an existing volume snapshot. This field should be set if the snapshot already exists and only needs a representation in Kubernetes. This field is immutable. jsonPath: .status.restoreSize
type: string name: RestoreSize
type: object type: string
volumeSnapshotClassName: - description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
description: 'VolumeSnapshotClassName is the name of the VolumeSnapshotClass requested by the VolumeSnapshot. VolumeSnapshotClassName may be left nil to indicate that the default SnapshotClass should be used. A given cluster may have multiple default Volume SnapshotClasses: one default per CSI Driver. If a VolumeSnapshot does not specify a SnapshotClass, VolumeSnapshotSource will be checked to figure out what the associated CSI Driver is, and the default VolumeSnapshotClass associated with that CSI Driver will be used. If more than one VolumeSnapshotClass exist for a given CSI Driver and more than one have been marked as default, CreateSnapshot will fail and generate an event. Empty string is not allowed for this field.' jsonPath: .spec.volumeSnapshotClassName
type: string name: SnapshotClass
required: type: string
- source - description: Name of the VolumeSnapshotContent object to which the VolumeSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object.
type: object jsonPath: .status.boundVolumeSnapshotContentName
status: name: SnapshotContent
description: status represents the current information of a snapshot. Consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent point at each other) before using this object. type: string
properties: - description: Timestamp when the point-in-time snapshot was taken by the underlying storage system.
boundVolumeSnapshotContentName: jsonPath: .status.creationTime
description: 'boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent object to which this VolumeSnapshot object intends to bind to. If not specified, it indicates that the VolumeSnapshot object has not been successfully bound to a VolumeSnapshotContent object yet. NOTE: To avoid possible security issues, consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent point at each other) before using this object.' name: CreationTime
type: string type: date
creationTime: - jsonPath: .metadata.creationTimestamp
description: creationTime is the timestamp when the point-in-time snapshot is taken by the underlying storage system. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "creation_time" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "creation_time" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. If not specified, it may indicate that the creation time of the snapshot is unknown. name: Age
format: date-time type: date
type: string name: v1beta1
error: # This indicates the v1beta1 version of the custom resource is deprecated.
description: error is the last observed error during snapshot creation, if any. This field could be helpful to upper level controllers(i.e., application controller) to decide whether they should continue on waiting for the snapshot to be created based on the type of error reported. The snapshot controller will keep retrying when an error occurs during the snapshot creation. Upon success, this error field will be cleared. # API requests to this version receive a warning in the server response.
properties: deprecated: true
message: # This overrides the default warning returned to clients making v1beta1 API requests.
description: 'message is a string detailing the encountered error during snapshot creation if specified. NOTE: message may be logged, and it should not contain sensitive information.' deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshot is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshot"
type: string schema:
time: openAPIV3Schema:
description: time is the timestamp when the error was encountered. description: VolumeSnapshot is a user's request for either creating a point-in-time snapshot of a persistent volume, or binding to a pre-existing snapshot.
format: date-time properties:
type: string apiVersion:
type: object description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
readyToUse: type: string
description: readyToUse indicates if the snapshot is ready to be used to restore a volume. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "ready_to_use" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "ready_to_use" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, otherwise, this field will be set to "True". If not specified, it means the readiness of a snapshot is unknown. kind:
type: boolean description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
restoreSize: type: string
type: string spec:
description: restoreSize represents the minimum size of volume required to create a volume from this snapshot. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "size_bytes" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. When restoring a volume from this snapshot, the size of the volume MUST NOT be smaller than the restoreSize if it is specified, otherwise the restoration will fail. If not specified, it indicates that the size is unknown. description: 'spec defines the desired characteristics of a snapshot requested by a user. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots Required.'
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ properties:
x-kubernetes-int-or-string: true source:
type: object description: source specifies where a snapshot will be created from. This field is immutable after creation. Required.
required: properties:
- spec persistentVolumeClaimName:
type: object description: persistentVolumeClaimName specifies the name of the PersistentVolumeClaim object representing the volume from which a snapshot should be created. This PVC is assumed to be in the same namespace as the VolumeSnapshot object. This field should be set if the snapshot does not exists, and needs to be created. This field is immutable.
served: false type: string
storage: false volumeSnapshotContentName:
subresources: description: volumeSnapshotContentName specifies the name of a pre-existing VolumeSnapshotContent object representing an existing volume snapshot. This field should be set if the snapshot already exists and only needs a representation in Kubernetes. This field is immutable.
status: {} type: string
type: object
volumeSnapshotClassName:
description: 'VolumeSnapshotClassName is the name of the VolumeSnapshotClass requested by the VolumeSnapshot. VolumeSnapshotClassName may be left nil to indicate that the default SnapshotClass should be used. A given cluster may have multiple default Volume SnapshotClasses: one default per CSI Driver. If a VolumeSnapshot does not specify a SnapshotClass, VolumeSnapshotSource will be checked to figure out what the associated CSI Driver is, and the default VolumeSnapshotClass associated with that CSI Driver will be used. If more than one VolumeSnapshotClass exist for a given CSI Driver and more than one have been marked as default, CreateSnapshot will fail and generate an event. Empty string is not allowed for this field.'
type: string
required:
- source
type: object
status:
description: status represents the current information of a snapshot. Consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent point at each other) before using this object.
properties:
boundVolumeSnapshotContentName:
description: 'boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent object to which this VolumeSnapshot object intends to bind to. If not specified, it indicates that the VolumeSnapshot object has not been successfully bound to a VolumeSnapshotContent object yet. NOTE: To avoid possible security issues, consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent point at each other) before using this object.'
type: string
creationTime:
description: creationTime is the timestamp when the point-in-time snapshot is taken by the underlying storage system. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "creation_time" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "creation_time" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. If not specified, it may indicate that the creation time of the snapshot is unknown.
format: date-time
type: string
error:
description: error is the last observed error during snapshot creation, if any. This field could be helpful to upper level controllers(i.e., application controller) to decide whether they should continue on waiting for the snapshot to be created based on the type of error reported. The snapshot controller will keep retrying when an error occurs during the snapshot creation. Upon success, this error field will be cleared.
properties:
message:
description: 'message is a string detailing the encountered error during snapshot creation if specified. NOTE: message may be logged, and it should not contain sensitive information.'
type: string
time:
description: time is the timestamp when the error was encountered.
format: date-time
type: string
type: object
readyToUse:
description: readyToUse indicates if the snapshot is ready to be used to restore a volume. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "ready_to_use" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "ready_to_use" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, otherwise, this field will be set to "True". If not specified, it means the readiness of a snapshot is unknown.
type: boolean
restoreSize:
type: string
description: restoreSize represents the minimum size of volume required to create a volume from this snapshot. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "size_bytes" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. When restoring a volume from this snapshot, the size of the volume MUST NOT be smaller than the restoreSize if it is specified, otherwise the restoration will fail. If not specified, it indicates that the size is unknown.
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
required:
- spec
type: object
served: false
storage: false
subresources:
status: {}
status: status:
acceptedNames: acceptedNames:
kind: "" kind: ""

View File

@ -278,11 +278,6 @@ run_tests() {
kubectl apply -f test/e2e/testing-manifests/storage-csi/external-snapshotter/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml || exit 1 kubectl apply -f test/e2e/testing-manifests/storage-csi/external-snapshotter/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml || exit 1
kubectl apply -f test/e2e/testing-manifests/storage-csi/external-snapshotter/groupsnapshot.storage.k8s.io_volumegroupsnapshots.yaml || exit 1 kubectl apply -f test/e2e/testing-manifests/storage-csi/external-snapshotter/groupsnapshot.storage.k8s.io_volumegroupsnapshots.yaml || exit 1
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/refs/tags/v8.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml || exit 1
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/refs/tags/v8.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml || exit 1
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/refs/tags/v8.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml || exit 1
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/refs/tags/v8.2.0/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml || exit 1 kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/refs/tags/v8.2.0/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml || exit 1
curl -s https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/refs/tags/v8.2.0/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml | \ curl -s https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/refs/tags/v8.2.0/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml | \
awk '/--leader-election=true/ {print; print " - \"--feature-gates=CSIVolumeGroupSnapshot=true\""; next}1' | \ awk '/--leader-election=true/ {print; print " - \"--feature-gates=CSIVolumeGroupSnapshot=true\""; next}1' | \