forked from kubernetes-csi/external-snapshotter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update VolumeSnapshot CRD version to v1beta
- Loading branch information
Showing
46 changed files
with
1,175 additions
and
976 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
creationTimestamp: null | ||
name: volumesnapshotclasses.snapshot.storage.k8s.io | ||
spec: | ||
group: snapshot.storage.k8s.io | ||
names: | ||
kind: VolumeSnapshotClass | ||
plural: volumesnapshotclasses | ||
scope: Cluster | ||
validation: | ||
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/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. If | ||
not specified, the default value is "Delete" | ||
enum: | ||
- Delete | ||
- Retain | ||
type: string | ||
driver: | ||
description: driver is the name of the storage driver that handles this | ||
VolumeSnapshotClass. | ||
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/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata' | ||
type: object | ||
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: | ||
- driver | ||
type: object | ||
version: v1beta1 | ||
versions: | ||
- name: v1beta1 | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
139 changes: 139 additions & 0 deletions
139
config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
creationTimestamp: null | ||
name: volumesnapshotcontents.snapshot.storage.k8s.io | ||
spec: | ||
group: snapshot.storage.k8s.io | ||
names: | ||
kind: VolumeSnapshotContent | ||
plural: volumesnapshotcontents | ||
scope: Cluster | ||
validation: | ||
openAPIV3Schema: | ||
description: VolumeSnapshotContent represents the actual "on-disk" snapshot | ||
object in the underlying storage system | ||
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/api-conventions.md#resources' | ||
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/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata' | ||
type: object | ||
spec: | ||
description: spec defines properties of a VolumeSnapshotContent created | ||
by the underlying storage system. | ||
properties: | ||
creationTime: | ||
description: creationTime is the timestamp when the point-in-time snapshot | ||
is taken by the underlying storage system. This timestamp is returned | ||
by the CSI driver after the snapshot is cut. 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 (aka, epoch time) | ||
since 1970-01-01 00:00:00 UTC. | ||
format: int64 | ||
type: integer | ||
deletionPolicy: | ||
description: deletionPolicy determines whether this VolumeSnapshotContent | ||
and its physical snapshot on the underlying storage system should | ||
be deleted when its 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. If not specified, the default | ||
value is "Retain" | ||
enum: | ||
- Delete | ||
- Retain | ||
type: string | ||
driver: | ||
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 | ||
restoreSize: | ||
description: restoreSize specifies the number of bytes that the snapshot's | ||
data would consume when restored to a volume. When restoring a volume | ||
from a snapshot, the volume size needs to be equal to or larger than | ||
the restoreSize if it is specified. Otherwise the restoration will | ||
fail. | ||
format: int64 | ||
type: integer | ||
snapshotHandle: | ||
description: snapshotHandle is the snapshot id returned by the CSI driver | ||
in the CreateSnapshotResponse and is used as the snapshot identifier | ||
for all subsequent CSI calls. Required. | ||
type: string | ||
volumeSnapshotRef: | ||
description: volumeSnapshotRef specifies the VolumeSnapshot object that | ||
this VolumeSnapshotContent is bound with. The VolumeSnapshot.Spec.VolumeSnapshotContentName | ||
field must reference this VolumeSnapshotContent name for the bidirectional | ||
binding to be considered valid. If the referenced VolumeSnapshot object | ||
does not exist(i.e., deleted by user) AND the UID of the referent | ||
is not empty(i.e., volumeSnapshotRef.UID != ""), then the VolumeSnapshotContent.Spec.DeletionPolicy | ||
is triggered. To manually bind a pre-existing VolumeSnapshotContent | ||
object to a VolumeSnapshot object, the volumeSnapshotRef.UID should | ||
be left empty to avoid triggering deletion policy. The UID field will | ||
be populated once binding is considered valid. | ||
properties: | ||
apiVersion: | ||
description: API version of the referent. | ||
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/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/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: | ||
- driver | ||
- snapshotHandle | ||
type: object | ||
required: | ||
- spec | ||
type: object | ||
version: v1beta1 | ||
versions: | ||
- name: v1beta1 | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.