mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #110021 from RaunakShah/updatecrd
Update snapshot CRDs to v6 in add on folder
This commit is contained in:
commit
8dc9bd3efb
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
@ -6,8 +5,8 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
addonmanager.kubernetes.io/mode: Reconcile
|
addonmanager.kubernetes.io/mode: Reconcile
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.4.0
|
controller-gen.kubebuilder.io/version: v0.8.0
|
||||||
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/419"
|
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665"
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: volumesnapshotclasses.snapshot.storage.k8s.io
|
name: volumesnapshotclasses.snapshot.storage.k8s.io
|
||||||
spec:
|
spec:
|
||||||
@ -16,95 +15,71 @@ spec:
|
|||||||
kind: VolumeSnapshotClass
|
kind: VolumeSnapshotClass
|
||||||
listKind: VolumeSnapshotClassList
|
listKind: VolumeSnapshotClassList
|
||||||
plural: volumesnapshotclasses
|
plural: volumesnapshotclasses
|
||||||
|
shortNames:
|
||||||
|
- vsclass
|
||||||
|
- 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 VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
|
- description: Determines whether a VolumeSnapshotContent created through the
|
||||||
jsonPath: .deletionPolicy
|
VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
|
||||||
name: DeletionPolicy
|
jsonPath: .deletionPolicy
|
||||||
type: string
|
name: DeletionPolicy
|
||||||
- jsonPath: .metadata.creationTimestamp
|
type: string
|
||||||
name: Age
|
- jsonPath: .metadata.creationTimestamp
|
||||||
type: date
|
name: Age
|
||||||
name: v1
|
type: date
|
||||||
schema:
|
name: v1
|
||||||
openAPIV3Schema:
|
schema:
|
||||||
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
|
openAPIV3Schema:
|
||||||
properties:
|
description: VolumeSnapshotClass specifies parameters that a underlying storage
|
||||||
apiVersion:
|
system uses when creating a volume snapshot. A specific VolumeSnapshotClass
|
||||||
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'
|
is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses
|
||||||
type: string
|
are non-namespaced
|
||||||
deletionPolicy:
|
properties:
|
||||||
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.
|
apiVersion:
|
||||||
enum:
|
description: 'APIVersion defines the versioned schema of this representation
|
||||||
- Delete
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
- Retain
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||||
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
|
||||||
description: parameters is a key-value map with storage driver specific parameters for creating snapshots. These values are opaque to Kubernetes.
|
deletionPolicy:
|
||||||
type: object
|
description: deletionPolicy determines whether a VolumeSnapshotContent
|
||||||
required:
|
created through the VolumeSnapshotClass should be deleted when its bound
|
||||||
- deletionPolicy
|
VolumeSnapshot is deleted. Supported values are "Retain" and "Delete".
|
||||||
- driver
|
"Retain" means that the VolumeSnapshotContent and its physical snapshot
|
||||||
type: object
|
on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent
|
||||||
served: true
|
and its physical snapshot on underlying storage system are deleted.
|
||||||
storage: false
|
Required.
|
||||||
subresources: {}
|
enum:
|
||||||
- additionalPrinterColumns:
|
- Delete
|
||||||
- jsonPath: .driver
|
- Retain
|
||||||
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
|
|
||||||
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
|
||||||
description: parameters is a key-value map with storage driver specific parameters for creating snapshots. These values are opaque to Kubernetes.
|
driver:
|
||||||
type: object
|
description: driver is the name of the storage driver that handles this
|
||||||
required:
|
VolumeSnapshotClass. Required.
|
||||||
- deletionPolicy
|
type: string
|
||||||
- driver
|
kind:
|
||||||
type: object
|
description: 'Kind is a string value representing the REST resource this
|
||||||
served: true
|
object represents. Servers may infer this from the endpoint the client
|
||||||
storage: true
|
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||||
subresources: {}
|
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: true
|
||||||
|
storage: true
|
||||||
|
subresources: {}
|
||||||
status:
|
status:
|
||||||
acceptedNames:
|
acceptedNames:
|
||||||
kind: ""
|
kind: ""
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
@ -6,8 +5,8 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
addonmanager.kubernetes.io/mode: Reconcile
|
addonmanager.kubernetes.io/mode: Reconcile
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.4.0
|
controller-gen.kubebuilder.io/version: v0.8.0
|
||||||
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/419"
|
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665"
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: volumesnapshotcontents.snapshot.storage.k8s.io
|
name: volumesnapshotcontents.snapshot.storage.k8s.io
|
||||||
spec:
|
spec:
|
||||||
@ -16,276 +15,240 @@ spec:
|
|||||||
kind: VolumeSnapshotContent
|
kind: VolumeSnapshotContent
|
||||||
listKind: VolumeSnapshotContentList
|
listKind: VolumeSnapshotContentList
|
||||||
plural: volumesnapshotcontents
|
plural: volumesnapshotcontents
|
||||||
|
shortNames:
|
||||||
|
- vsc
|
||||||
|
- 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 snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted.
|
- description: Determines whether this VolumeSnapshotContent and its physical
|
||||||
jsonPath: .spec.deletionPolicy
|
snapshot on the underlying storage system should be deleted when its bound
|
||||||
name: DeletionPolicy
|
VolumeSnapshot is deleted.
|
||||||
type: string
|
jsonPath: .spec.deletionPolicy
|
||||||
- description: Name of the CSI driver used to create the physical snapshot on the underlying storage system.
|
name: DeletionPolicy
|
||||||
jsonPath: .spec.driver
|
type: string
|
||||||
name: Driver
|
- description: Name of the CSI driver used to create the physical snapshot on
|
||||||
type: string
|
the underlying storage system.
|
||||||
- description: Name of the VolumeSnapshotClass to which this snapshot belongs.
|
jsonPath: .spec.driver
|
||||||
jsonPath: .spec.volumeSnapshotClassName
|
name: Driver
|
||||||
name: VolumeSnapshotClass
|
type: string
|
||||||
type: string
|
- description: Name of the VolumeSnapshotClass to which this snapshot belongs.
|
||||||
- description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
|
jsonPath: .spec.volumeSnapshotClassName
|
||||||
jsonPath: .spec.volumeSnapshotRef.name
|
name: VolumeSnapshotClass
|
||||||
name: VolumeSnapshot
|
type: string
|
||||||
type: string
|
- description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent
|
||||||
- jsonPath: .metadata.creationTimestamp
|
object is bound.
|
||||||
name: Age
|
jsonPath: .spec.volumeSnapshotRef.name
|
||||||
type: date
|
name: VolumeSnapshot
|
||||||
name: v1
|
type: string
|
||||||
schema:
|
- description: Namespace of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
|
||||||
openAPIV3Schema:
|
jsonPath: .spec.volumeSnapshotRef.namespace
|
||||||
description: VolumeSnapshotContent represents the actual "on-disk" snapshot object in the underlying storage system
|
name: VolumeSnapshotNamespace
|
||||||
properties:
|
type: string
|
||||||
apiVersion:
|
- jsonPath: .metadata.creationTimestamp
|
||||||
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'
|
name: Age
|
||||||
type: string
|
type: date
|
||||||
kind:
|
name: v1
|
||||||
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'
|
schema:
|
||||||
type: string
|
openAPIV3Schema:
|
||||||
spec:
|
description: VolumeSnapshotContent represents the actual "on-disk" snapshot
|
||||||
description: spec defines properties of a VolumeSnapshotContent created by the underlying storage system. Required.
|
object in the underlying storage system
|
||||||
properties:
|
properties:
|
||||||
deletionPolicy:
|
apiVersion:
|
||||||
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: 'APIVersion defines the versioned schema of this representation
|
||||||
enum:
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
- Delete
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||||
- Retain
|
type: string
|
||||||
type: string
|
kind:
|
||||||
driver:
|
description: 'Kind is a string value representing the REST resource this
|
||||||
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.
|
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'
|
||||||
source:
|
type: string
|
||||||
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.
|
spec:
|
||||||
properties:
|
description: spec defines properties of a VolumeSnapshotContent created
|
||||||
snapshotHandle:
|
by the underlying storage system. Required.
|
||||||
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.
|
properties:
|
||||||
type: string
|
deletionPolicy:
|
||||||
volumeHandle:
|
description: deletionPolicy determines whether this VolumeSnapshotContent
|
||||||
description: volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot should be dynamically taken from. This field is immutable.
|
and its physical snapshot on the underlying storage system should
|
||||||
type: string
|
be deleted when its bound VolumeSnapshot is deleted. Supported values
|
||||||
type: object
|
are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent
|
||||||
oneOf:
|
and its physical snapshot on underlying storage system are kept.
|
||||||
- required: ["snapshotHandle"]
|
"Delete" means that the VolumeSnapshotContent and its physical snapshot
|
||||||
- required: ["volumeHandle"]
|
on underlying storage system are deleted. For dynamically provisioned
|
||||||
volumeSnapshotClassName:
|
snapshots, this field will automatically be filled in by the CSI
|
||||||
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.
|
snapshotter sidecar with the "DeletionPolicy" field defined in the
|
||||||
type: string
|
corresponding VolumeSnapshotClass. For pre-existing snapshots, users
|
||||||
volumeSnapshotRef:
|
MUST specify this field when creating the VolumeSnapshotContent
|
||||||
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.
|
object. Required.
|
||||||
properties:
|
enum:
|
||||||
apiVersion:
|
- Delete
|
||||||
description: API version of the referent.
|
- Retain
|
||||||
type: string
|
type: string
|
||||||
fieldPath:
|
driver:
|
||||||
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.'
|
description: driver is the name of the CSI driver used to create the
|
||||||
type: string
|
physical snapshot on the underlying storage system. This MUST be
|
||||||
kind:
|
the same as the name returned by the CSI GetPluginName() call for
|
||||||
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
that driver. Required.
|
||||||
type: string
|
type: string
|
||||||
name:
|
source:
|
||||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
|
description: source specifies whether the snapshot is (or should be)
|
||||||
type: string
|
dynamically provisioned or already exists, and just requires a Kubernetes
|
||||||
namespace:
|
object representation. This field is immutable after creation. Required.
|
||||||
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
|
properties:
|
||||||
type: string
|
snapshotHandle:
|
||||||
resourceVersion:
|
description: snapshotHandle specifies the CSI "snapshot_id" of
|
||||||
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'
|
a pre-existing snapshot on the underlying storage system for
|
||||||
type: string
|
which a Kubernetes object representation was (or should be)
|
||||||
uid:
|
created. This field is immutable.
|
||||||
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
|
type: string
|
||||||
type: string
|
volumeHandle:
|
||||||
type: object
|
description: volumeHandle specifies the CSI "volume_id" of the
|
||||||
required:
|
volume from which a snapshot should be dynamically taken from.
|
||||||
- deletionPolicy
|
This field is immutable.
|
||||||
- driver
|
type: string
|
||||||
- source
|
type: object
|
||||||
- volumeSnapshotRef
|
oneOf:
|
||||||
type: object
|
- required: ["snapshotHandle"]
|
||||||
status:
|
- required: ["volumeHandle"]
|
||||||
description: status represents the current information of a snapshot.
|
sourceVolumeMode:
|
||||||
properties:
|
description: SourceVolumeMode is the mode of the volume whose snapshot
|
||||||
creationTime:
|
is taken. Can be either “Filesystem” or “Block”. If not specified,
|
||||||
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.
|
it indicates the source volume's mode is unknown. This field is
|
||||||
format: int64
|
immutable. This field is an alpha field.
|
||||||
type: integer
|
type: string
|
||||||
error:
|
volumeSnapshotClassName:
|
||||||
description: error is the last observed error during snapshot creation, if any. Upon success after retry, this error field will be cleared.
|
description: name of the VolumeSnapshotClass from which this snapshot
|
||||||
properties:
|
was (or will be) created. Note that after provisioning, the VolumeSnapshotClass
|
||||||
message:
|
may be deleted or recreated with different set of values, and as
|
||||||
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.'
|
such, should not be referenced post-snapshot creation.
|
||||||
type: string
|
type: string
|
||||||
time:
|
volumeSnapshotRef:
|
||||||
description: time is the timestamp when the error was encountered.
|
description: volumeSnapshotRef specifies the VolumeSnapshot object
|
||||||
format: date-time
|
to which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName
|
||||||
type: string
|
field must reference to this VolumeSnapshotContent's name for the
|
||||||
type: object
|
bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent
|
||||||
readyToUse:
|
object, name and namespace of the VolumeSnapshot object MUST be
|
||||||
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.
|
provided for binding to happen. This field is immutable after creation.
|
||||||
type: boolean
|
Required.
|
||||||
restoreSize:
|
properties:
|
||||||
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.
|
apiVersion:
|
||||||
format: int64
|
description: API version of the referent.
|
||||||
minimum: 0
|
type: string
|
||||||
type: integer
|
fieldPath:
|
||||||
snapshotHandle:
|
description: 'If referring to a piece of an object instead of
|
||||||
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.
|
an entire object, this string should contain a valid JSON/Go
|
||||||
type: string
|
field access statement, such as desiredState.manifest.containers[2].
|
||||||
type: object
|
For example, if the object reference is to a container within
|
||||||
required:
|
a pod, this would take on a value like: "spec.containers{name}"
|
||||||
- spec
|
(where "name" refers to the name of the container that triggered
|
||||||
type: object
|
the event) or if no container name is specified "spec.containers[2]"
|
||||||
served: true
|
(container with index 2 in this pod). This syntax is chosen
|
||||||
storage: false
|
only to have some well-defined way of referencing a part of
|
||||||
subresources:
|
an object. TODO: this design is not final and this field is
|
||||||
status: {}
|
subject to change in the future.'
|
||||||
- additionalPrinterColumns:
|
type: string
|
||||||
- description: Indicates if the snapshot is ready to be used to restore a volume.
|
kind:
|
||||||
jsonPath: .status.readyToUse
|
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||||
name: ReadyToUse
|
type: string
|
||||||
type: boolean
|
name:
|
||||||
- description: Represents the complete size of the snapshot in bytes
|
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
|
||||||
jsonPath: .status.restoreSize
|
type: string
|
||||||
name: RestoreSize
|
namespace:
|
||||||
type: integer
|
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
|
||||||
- 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
|
resourceVersion:
|
||||||
name: DeletionPolicy
|
description: 'Specific resourceVersion to which this reference
|
||||||
type: string
|
is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
|
||||||
- description: Name of the CSI driver used to create the physical snapshot on the underlying storage system.
|
type: string
|
||||||
jsonPath: .spec.driver
|
uid:
|
||||||
name: Driver
|
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
|
||||||
type: string
|
type: string
|
||||||
- description: Name of the VolumeSnapshotClass to which this snapshot belongs.
|
type: object
|
||||||
jsonPath: .spec.volumeSnapshotClassName
|
required:
|
||||||
name: VolumeSnapshotClass
|
- deletionPolicy
|
||||||
type: string
|
- driver
|
||||||
- description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
|
- source
|
||||||
jsonPath: .spec.volumeSnapshotRef.name
|
- volumeSnapshotRef
|
||||||
name: VolumeSnapshot
|
type: object
|
||||||
type: string
|
status:
|
||||||
- jsonPath: .metadata.creationTimestamp
|
description: status represents the current information of a snapshot.
|
||||||
name: Age
|
properties:
|
||||||
type: date
|
creationTime:
|
||||||
name: v1beta1
|
description: creationTime is the timestamp when the point-in-time
|
||||||
schema:
|
snapshot is taken by the underlying storage system. In dynamic snapshot
|
||||||
openAPIV3Schema:
|
creation case, this field will be filled in by the CSI snapshotter
|
||||||
description: VolumeSnapshotContent represents the actual "on-disk" snapshot object in the underlying storage system
|
sidecar with the "creation_time" value returned from CSI "CreateSnapshot"
|
||||||
properties:
|
gRPC call. For a pre-existing snapshot, this field will be filled
|
||||||
apiVersion:
|
with the "creation_time" value returned from the CSI "ListSnapshots"
|
||||||
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'
|
gRPC call if the driver supports it. If not specified, it indicates
|
||||||
type: string
|
the creation time is unknown. The format of this field is a Unix
|
||||||
kind:
|
nanoseconds time encoded as an int64. On Unix, the command `date
|
||||||
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'
|
+%s%N` returns the current time in nanoseconds since 1970-01-01
|
||||||
type: string
|
00:00:00 UTC.
|
||||||
spec:
|
format: int64
|
||||||
description: spec defines properties of a VolumeSnapshotContent created by the underlying storage system. Required.
|
type: integer
|
||||||
properties:
|
error:
|
||||||
deletionPolicy:
|
description: error is the last observed error during snapshot creation,
|
||||||
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.
|
if any. Upon success after retry, this error field will be cleared.
|
||||||
enum:
|
properties:
|
||||||
- Delete
|
message:
|
||||||
- Retain
|
description: 'message is a string detailing the encountered error
|
||||||
type: string
|
during snapshot creation if specified. NOTE: message may be
|
||||||
driver:
|
logged, and it should not contain sensitive information.'
|
||||||
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: string
|
||||||
type: string
|
time:
|
||||||
source:
|
description: time is the timestamp when the error was encountered.
|
||||||
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.
|
format: date-time
|
||||||
properties:
|
type: string
|
||||||
snapshotHandle:
|
type: object
|
||||||
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.
|
readyToUse:
|
||||||
type: string
|
description: readyToUse indicates if a snapshot is ready to be used
|
||||||
volumeHandle:
|
to restore a volume. In dynamic snapshot creation case, this field
|
||||||
description: volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot should be dynamically taken from. This field is immutable.
|
will be filled in by the CSI snapshotter sidecar with the "ready_to_use"
|
||||||
type: string
|
value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing
|
||||||
type: object
|
snapshot, this field will be filled with the "ready_to_use" value
|
||||||
volumeSnapshotClassName:
|
returned from the CSI "ListSnapshots" gRPC call if the driver supports
|
||||||
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.
|
it, otherwise, this field will be set to "True". If not specified,
|
||||||
type: string
|
it means the readiness of a snapshot is unknown.
|
||||||
volumeSnapshotRef:
|
type: boolean
|
||||||
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.
|
restoreSize:
|
||||||
properties:
|
description: restoreSize represents the complete size of the snapshot
|
||||||
apiVersion:
|
in bytes. In dynamic snapshot creation case, this field will be
|
||||||
description: API version of the referent.
|
filled in by the CSI snapshotter sidecar with the "size_bytes" value
|
||||||
type: string
|
returned from CSI "CreateSnapshot" gRPC call. For a pre-existing
|
||||||
fieldPath:
|
snapshot, this field will be filled with the "size_bytes" value
|
||||||
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.'
|
returned from the CSI "ListSnapshots" gRPC call if the driver supports
|
||||||
type: string
|
it. When restoring a volume from this snapshot, the size of the
|
||||||
kind:
|
volume MUST NOT be smaller than the restoreSize if it is specified,
|
||||||
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
otherwise the restoration will fail. If not specified, it indicates
|
||||||
type: string
|
that the size is unknown.
|
||||||
name:
|
format: int64
|
||||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
|
minimum: 0
|
||||||
type: string
|
type: integer
|
||||||
namespace:
|
snapshotHandle:
|
||||||
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
|
description: snapshotHandle is the CSI "snapshot_id" of a snapshot
|
||||||
type: string
|
on the underlying storage system. If not specified, it indicates
|
||||||
resourceVersion:
|
that dynamic snapshot creation has either failed or it is still
|
||||||
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'
|
in progress.
|
||||||
type: string
|
type: string
|
||||||
uid:
|
type: object
|
||||||
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
|
required:
|
||||||
type: string
|
- spec
|
||||||
type: object
|
type: object
|
||||||
required:
|
served: true
|
||||||
- deletionPolicy
|
storage: true
|
||||||
- driver
|
subresources:
|
||||||
- source
|
status: {}
|
||||||
- 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: true
|
|
||||||
storage: true
|
|
||||||
subresources:
|
|
||||||
status: {}
|
|
||||||
status:
|
status:
|
||||||
acceptedNames:
|
acceptedNames:
|
||||||
kind: ""
|
kind: ""
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
@ -6,8 +5,8 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
addonmanager.kubernetes.io/mode: Reconcile
|
addonmanager.kubernetes.io/mode: Reconcile
|
||||||
annotations:
|
annotations:
|
||||||
controller-gen.kubebuilder.io/version: v0.4.0
|
controller-gen.kubebuilder.io/version: v0.8.0
|
||||||
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/419"
|
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/665"
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: volumesnapshots.snapshot.storage.k8s.io
|
name: volumesnapshots.snapshot.storage.k8s.io
|
||||||
spec:
|
spec:
|
||||||
@ -16,210 +15,189 @@ spec:
|
|||||||
kind: VolumeSnapshot
|
kind: VolumeSnapshot
|
||||||
listKind: VolumeSnapshotList
|
listKind: VolumeSnapshotList
|
||||||
plural: volumesnapshots
|
plural: volumesnapshots
|
||||||
|
shortNames:
|
||||||
|
- 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 the source PVC from which this snapshot was (or will be) created.
|
- description: If a new snapshot needs to be created, this contains the name of
|
||||||
jsonPath: .spec.source.persistentVolumeClaimName
|
the source PVC from which this snapshot was (or will be) created.
|
||||||
name: SourcePVC
|
jsonPath: .spec.source.persistentVolumeClaimName
|
||||||
type: string
|
name: SourcePVC
|
||||||
- description: If a snapshot already exists, this contains the name of the existing VolumeSnapshotContent object representing the existing snapshot.
|
type: string
|
||||||
jsonPath: .spec.source.volumeSnapshotContentName
|
- description: If a snapshot already exists, this contains the name of the existing
|
||||||
name: SourceSnapshotContent
|
VolumeSnapshotContent object representing the existing snapshot.
|
||||||
type: string
|
jsonPath: .spec.source.volumeSnapshotContentName
|
||||||
- description: Represents the minimum size of volume required to rehydrate from this snapshot.
|
name: SourceSnapshotContent
|
||||||
jsonPath: .status.restoreSize
|
type: string
|
||||||
name: RestoreSize
|
- description: Represents the minimum size of volume required to rehydrate from
|
||||||
type: string
|
this snapshot.
|
||||||
- description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
|
jsonPath: .status.restoreSize
|
||||||
jsonPath: .spec.volumeSnapshotClassName
|
name: RestoreSize
|
||||||
name: SnapshotClass
|
type: string
|
||||||
type: string
|
- description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
|
||||||
- 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.
|
jsonPath: .spec.volumeSnapshotClassName
|
||||||
jsonPath: .status.boundVolumeSnapshotContentName
|
name: SnapshotClass
|
||||||
name: SnapshotContent
|
type: string
|
||||||
type: string
|
- description: Name of the VolumeSnapshotContent object to which the VolumeSnapshot
|
||||||
- description: Timestamp when the point-in-time snapshot was taken by the underlying storage system.
|
object intends to bind to. Please note that verification of binding actually
|
||||||
jsonPath: .status.creationTime
|
requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure
|
||||||
name: CreationTime
|
both are pointing at each other. Binding MUST be verified prior to usage of
|
||||||
type: date
|
this object.
|
||||||
- jsonPath: .metadata.creationTimestamp
|
jsonPath: .status.boundVolumeSnapshotContentName
|
||||||
name: Age
|
name: SnapshotContent
|
||||||
type: date
|
type: string
|
||||||
name: v1
|
- description: Timestamp when the point-in-time snapshot was taken by the underlying
|
||||||
schema:
|
storage system.
|
||||||
openAPIV3Schema:
|
jsonPath: .status.creationTime
|
||||||
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.
|
name: CreationTime
|
||||||
properties:
|
type: date
|
||||||
apiVersion:
|
- jsonPath: .metadata.creationTimestamp
|
||||||
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'
|
name: Age
|
||||||
type: string
|
type: date
|
||||||
kind:
|
name: v1
|
||||||
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'
|
schema:
|
||||||
type: string
|
openAPIV3Schema:
|
||||||
spec:
|
description: VolumeSnapshot is a user's request for either creating a point-in-time
|
||||||
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.'
|
snapshot of a persistent volume, or binding to a pre-existing snapshot.
|
||||||
properties:
|
properties:
|
||||||
source:
|
apiVersion:
|
||||||
description: source specifies where a snapshot will be created from. This field is immutable after creation. Required.
|
description: 'APIVersion defines the versioned schema of this representation
|
||||||
properties:
|
of an object. Servers should convert recognized schemas to the latest
|
||||||
persistentVolumeClaimName:
|
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||||
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.
|
type: string
|
||||||
type: string
|
kind:
|
||||||
volumeSnapshotContentName:
|
description: 'Kind is a string value representing the REST resource this
|
||||||
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.
|
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'
|
||||||
type: object
|
type: string
|
||||||
oneOf:
|
spec:
|
||||||
- required: ["persistentVolumeClaimName"]
|
description: 'spec defines the desired characteristics of a snapshot requested
|
||||||
- required: ["volumeSnapshotContentName"]
|
by a user. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots
|
||||||
volumeSnapshotClassName:
|
Required.'
|
||||||
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.'
|
properties:
|
||||||
type: string
|
source:
|
||||||
required:
|
description: source specifies where a snapshot will be created from.
|
||||||
- source
|
This field is immutable after creation. Required.
|
||||||
type: object
|
properties:
|
||||||
status:
|
persistentVolumeClaimName:
|
||||||
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.
|
description: persistentVolumeClaimName specifies the name of the
|
||||||
properties:
|
PersistentVolumeClaim object representing the volume from which
|
||||||
boundVolumeSnapshotContentName:
|
a snapshot should be created. This PVC is assumed to be in the
|
||||||
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.'
|
same namespace as the VolumeSnapshot object. This field should
|
||||||
type: string
|
be set if the snapshot does not exists, and needs to be created.
|
||||||
creationTime:
|
This field is immutable.
|
||||||
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.
|
type: string
|
||||||
format: date-time
|
volumeSnapshotContentName:
|
||||||
type: string
|
description: volumeSnapshotContentName specifies the name of a
|
||||||
error:
|
pre-existing VolumeSnapshotContent object representing an existing
|
||||||
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 occurrs during the snapshot creation. Upon success, this error field will be cleared.
|
volume snapshot. This field should be set if the snapshot already
|
||||||
properties:
|
exists and only needs a representation in Kubernetes. This field
|
||||||
message:
|
is immutable.
|
||||||
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
|
||||||
type: string
|
type: object
|
||||||
time:
|
oneOf:
|
||||||
description: time is the timestamp when the error was encountered.
|
- required: ["persistentVolumeClaimName"]
|
||||||
format: date-time
|
- required: ["volumeSnapshotContentName"]
|
||||||
type: string
|
volumeSnapshotClassName:
|
||||||
type: object
|
description: 'VolumeSnapshotClassName is the name of the VolumeSnapshotClass
|
||||||
readyToUse:
|
requested by the VolumeSnapshot. VolumeSnapshotClassName may be
|
||||||
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.
|
left nil to indicate that the default SnapshotClass should be used.
|
||||||
type: boolean
|
A given cluster may have multiple default Volume SnapshotClasses:
|
||||||
restoreSize:
|
one default per CSI Driver. If a VolumeSnapshot does not specify
|
||||||
type: string
|
a SnapshotClass, VolumeSnapshotSource will be checked to figure
|
||||||
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.
|
out what the associated CSI Driver is, and the default VolumeSnapshotClass
|
||||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
associated with that CSI Driver will be used. If more than one VolumeSnapshotClass
|
||||||
x-kubernetes-int-or-string: true
|
exist for a given CSI Driver and more than one have been marked
|
||||||
type: object
|
as default, CreateSnapshot will fail and generate an event. Empty
|
||||||
required:
|
string is not allowed for this field.'
|
||||||
- spec
|
type: string
|
||||||
type: object
|
required:
|
||||||
served: true
|
- source
|
||||||
storage: false
|
type: object
|
||||||
subresources:
|
status:
|
||||||
status: {}
|
description: status represents the current information of a snapshot.
|
||||||
- additionalPrinterColumns:
|
Consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent
|
||||||
- description: Indicates if the snapshot is ready to be used to restore a volume.
|
objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent
|
||||||
jsonPath: .status.readyToUse
|
point at each other) before using this object.
|
||||||
name: ReadyToUse
|
properties:
|
||||||
type: boolean
|
boundVolumeSnapshotContentName:
|
||||||
- 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.
|
description: 'boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent
|
||||||
jsonPath: .spec.source.persistentVolumeClaimName
|
object to which this VolumeSnapshot object intends to bind to. If
|
||||||
name: SourcePVC
|
not specified, it indicates that the VolumeSnapshot object has not
|
||||||
type: string
|
been successfully bound to a VolumeSnapshotContent object yet. NOTE:
|
||||||
- description: If a snapshot already exists, this contains the name of the existing VolumeSnapshotContent object representing the existing snapshot.
|
To avoid possible security issues, consumers must verify binding
|
||||||
jsonPath: .spec.source.volumeSnapshotContentName
|
between VolumeSnapshot and VolumeSnapshotContent objects is successful
|
||||||
name: SourceSnapshotContent
|
(by validating that both VolumeSnapshot and VolumeSnapshotContent
|
||||||
type: string
|
point at each other) before using this object.'
|
||||||
- description: Represents the minimum size of volume required to rehydrate from this snapshot.
|
type: string
|
||||||
jsonPath: .status.restoreSize
|
creationTime:
|
||||||
name: RestoreSize
|
description: creationTime is the timestamp when the point-in-time
|
||||||
type: string
|
snapshot is taken by the underlying storage system. In dynamic snapshot
|
||||||
- description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
|
creation case, this field will be filled in by the snapshot controller
|
||||||
jsonPath: .spec.volumeSnapshotClassName
|
with the "creation_time" value returned from CSI "CreateSnapshot"
|
||||||
name: SnapshotClass
|
gRPC call. For a pre-existing snapshot, this field will be filled
|
||||||
type: string
|
with the "creation_time" value returned from the CSI "ListSnapshots"
|
||||||
- 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.
|
gRPC call if the driver supports it. If not specified, it may indicate
|
||||||
jsonPath: .status.boundVolumeSnapshotContentName
|
that the creation time of the snapshot is unknown.
|
||||||
name: SnapshotContent
|
format: date-time
|
||||||
type: string
|
type: string
|
||||||
- description: Timestamp when the point-in-time snapshot was taken by the underlying storage system.
|
error:
|
||||||
jsonPath: .status.creationTime
|
description: error is the last observed error during snapshot creation,
|
||||||
name: CreationTime
|
if any. This field could be helpful to upper level controllers(i.e.,
|
||||||
type: date
|
application controller) to decide whether they should continue on
|
||||||
- jsonPath: .metadata.creationTimestamp
|
waiting for the snapshot to be created based on the type of error
|
||||||
name: Age
|
reported. The snapshot controller will keep retrying when an error
|
||||||
type: date
|
occurs during the snapshot creation. Upon success, this error field
|
||||||
name: v1beta1
|
will be cleared.
|
||||||
schema:
|
properties:
|
||||||
openAPIV3Schema:
|
message:
|
||||||
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.
|
description: 'message is a string detailing the encountered error
|
||||||
properties:
|
during snapshot creation if specified. NOTE: message may be
|
||||||
apiVersion:
|
logged, and it should not contain sensitive information.'
|
||||||
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
|
||||||
type: string
|
time:
|
||||||
kind:
|
description: time is the timestamp when the error was encountered.
|
||||||
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: date-time
|
||||||
type: string
|
type: string
|
||||||
spec:
|
type: object
|
||||||
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.'
|
readyToUse:
|
||||||
properties:
|
description: readyToUse indicates if the snapshot is ready to be used
|
||||||
source:
|
to restore a volume. In dynamic snapshot creation case, this field
|
||||||
description: source specifies where a snapshot will be created from. This field is immutable after creation. Required.
|
will be filled in by the snapshot controller with the "ready_to_use"
|
||||||
properties:
|
value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing
|
||||||
persistentVolumeClaimName:
|
snapshot, this field will be filled with the "ready_to_use" value
|
||||||
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.
|
returned from the CSI "ListSnapshots" gRPC call if the driver supports
|
||||||
type: string
|
it, otherwise, this field will be set to "True". If not specified,
|
||||||
volumeSnapshotContentName:
|
it means the readiness of a snapshot is unknown.
|
||||||
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.
|
type: boolean
|
||||||
type: string
|
restoreSize:
|
||||||
type: object
|
type: string
|
||||||
volumeSnapshotClassName:
|
description: restoreSize represents the minimum size of volume required
|
||||||
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.'
|
to create a volume from this snapshot. In dynamic snapshot creation
|
||||||
type: string
|
case, this field will be filled in by the snapshot controller with
|
||||||
required:
|
the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call.
|
||||||
- source
|
For a pre-existing snapshot, this field will be filled with the
|
||||||
type: object
|
"size_bytes" value returned from the CSI "ListSnapshots" gRPC call
|
||||||
status:
|
if the driver supports it. When restoring a volume from this snapshot,
|
||||||
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.
|
the size of the volume MUST NOT be smaller than the restoreSize
|
||||||
properties:
|
if it is specified, otherwise the restoration will fail. If not
|
||||||
boundVolumeSnapshotContentName:
|
specified, it indicates that the size is unknown.
|
||||||
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.'
|
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||||
type: string
|
x-kubernetes-int-or-string: true
|
||||||
creationTime:
|
type: object
|
||||||
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.
|
required:
|
||||||
format: date-time
|
- spec
|
||||||
type: string
|
type: object
|
||||||
error:
|
served: true
|
||||||
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 occurrs during the snapshot creation. Upon success, this error field will be cleared.
|
storage: true
|
||||||
properties:
|
subresources:
|
||||||
message:
|
status: {}
|
||||||
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: true
|
|
||||||
storage: true
|
|
||||||
subresources:
|
|
||||||
status: {}
|
|
||||||
status:
|
status:
|
||||||
acceptedNames:
|
acceptedNames:
|
||||||
kind: ""
|
kind: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user