Address comments and re generate code
This commit is contained in:
@@ -14,16 +14,18 @@ spec:
|
||||
listKind: VolumeGroupSnapshotClassList
|
||||
plural: volumegroupsnapshotclasses
|
||||
shortNames:
|
||||
- vsgclass
|
||||
- vsgclasses
|
||||
- vgsclass
|
||||
- vgsclasses
|
||||
singular: volumegroupsnapshotclass
|
||||
scope: Cluster
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeGroupSnapshotClass is the Schema for the volumegroupsnapshotclass
|
||||
API
|
||||
description: VolumeGroupSnapshotClass specifies parameters that a underlying
|
||||
storage system uses when creating a volume group snapshot. A specific VolumeGroupSnapshotClass
|
||||
is used by specifying its name in a VolumeGroupSnapshot object. VolumeGroupSnapshotClasses
|
||||
are non-namespaced.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
@@ -34,7 +36,10 @@ spec:
|
||||
description: DeletionPolicy determines whether a VolumeGroupSnapshotContent
|
||||
created through the VolumeGroupSnapshotClass should be deleted when
|
||||
its bound VolumeGroupSnapshot is deleted. Supported values are "Retain"
|
||||
and "Delete". Required.
|
||||
and "Delete". "Retain" means that the VolumeGroupSnapshotContent and
|
||||
its physical group snapshot on underlying storage system are kept. "Delete"
|
||||
means that the VolumeGroupSnapshotContent and its physical group snapshot
|
||||
on underlying storage system are deleted. Required.
|
||||
enum:
|
||||
- Delete
|
||||
- Retain
|
||||
@@ -53,7 +58,7 @@ spec:
|
||||
type: string
|
||||
description: Parameters is a key-value map with storage driver specific
|
||||
parameters for creating group snapshots. These values are opaque to
|
||||
the system and are passed directly to the driver.
|
||||
Kubernetes and are passed directly to the driver.
|
||||
type: object
|
||||
required:
|
||||
- deletionPolicy
|
||||
@@ -61,5 +66,3 @@ spec:
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
|
@@ -14,7 +14,7 @@ spec:
|
||||
listKind: VolumeGroupSnapshotContentList
|
||||
plural: volumegroupsnapshotcontents
|
||||
shortNames:
|
||||
- vsc
|
||||
- vgsc
|
||||
- vgscs
|
||||
singular: volumegroupsnapshotcontent
|
||||
scope: Cluster
|
||||
@@ -36,19 +36,22 @@ spec:
|
||||
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
|
||||
spec:
|
||||
description: VolumeGroupSnapshotContentSpec describes the common attributes
|
||||
of a group snapshot content
|
||||
description: Spec defines properties of a VolumeGroupSnapshotContent created
|
||||
by the underlying storage system. Required.
|
||||
properties:
|
||||
deletionPolicy:
|
||||
description: DeletionPolicy determines whether this VolumeGroupSnapshotContent
|
||||
and the physical snapshots on the underlying storage system should
|
||||
be deleted when the bound VolumeGroupSnapshot is deleted. Supported
|
||||
values are "Retain" and "Delete". For dynamically provisioned group
|
||||
snapshots, this field will automatically be filled in by the CSI
|
||||
snapshotter sidecar with the "DeletionPolicy" field defined in the
|
||||
corresponding VolumeGroupSnapshotClass. For pre-existing snapshots,
|
||||
users MUST specify this field when creating the VolumeGroupSnapshotContent
|
||||
object. Required.
|
||||
and the physical group snapshot on the underlying storage system
|
||||
should be deleted when the bound VolumeGroupSnapshot is deleted.
|
||||
Supported values are "Retain" and "Delete". "Retain" means that
|
||||
the VolumeGroupSnapshotContent and its physical group snapshot on
|
||||
underlying storage system are kept. "Delete" means that the VolumeGroupSnapshotContent
|
||||
and its physical group snapshot on underlying storage system are
|
||||
deleted. For dynamically provisioned group snapshots, this field
|
||||
will automatically be filled in by the CSI snapshotter sidecar with
|
||||
the "DeletionPolicy" field defined in the corresponding VolumeGroupSnapshotClass.
|
||||
For pre-existing snapshots, users MUST specify this field when creating
|
||||
the VolumeGroupSnapshotContent object. Required.
|
||||
enum:
|
||||
- Delete
|
||||
- Retain
|
||||
@@ -66,14 +69,14 @@ spec:
|
||||
properties:
|
||||
persistentVolumeNames:
|
||||
description: PersistentVolumeNames is a list of names of PersistentVolumes
|
||||
to be snapshotted together. Signifies dynamic provisioning of
|
||||
the VolumeGroupSnapshot. This field is immutable.
|
||||
to be snapshotted together. It is specified for dynamic provisioning
|
||||
of the VolumeGroupSnapshot. This field is immutable.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
volumeGroupSnapshotHandle:
|
||||
description: VolumeGroupSnapshotHandle specifies the CSI "snapshot_id"
|
||||
of a pre-existing snapshot on the underlying storage system
|
||||
description: VolumeGroupSnapshotHandle specifies the CSI "group_snapshot_id"
|
||||
of a pre-existing group snapshot on the underlying storage system
|
||||
for which a Kubernetes object representation was (or should
|
||||
be) created. This field is immutable.
|
||||
type: string
|
||||
@@ -141,8 +144,7 @@ spec:
|
||||
- volumeGroupSnapshotRef
|
||||
type: object
|
||||
status:
|
||||
description: VolumeGroupSnapshotContentStatus defines the observed state
|
||||
of VolumeGroupSnapshotContent.
|
||||
description: status represents the current information of a group snapshot.
|
||||
properties:
|
||||
creationTime:
|
||||
description: CreationTime is the timestamp when the point-in-time
|
||||
@@ -156,19 +158,23 @@ spec:
|
||||
be cleared.
|
||||
properties:
|
||||
message:
|
||||
description: 'Message is a string detailing the encountered error
|
||||
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.
|
||||
description: time is the timestamp when the error was encountered.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
readyToUse:
|
||||
description: ReadyToUse indicates if all the individual snapshots
|
||||
in the group are ready to be used to restore a volume. If not specified,
|
||||
it means the readiness of a group snapshot is unknown.
|
||||
in the group are ready to be used to restore a volume. ReadyToUse
|
||||
becomes true when ReadyToUse of all individual snapshots become
|
||||
true. If not specified, it means the readiness of a group snapshot
|
||||
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.
|
||||
type: boolean
|
||||
volumeGroupSnapshotHandle:
|
||||
description: VolumeGroupSnapshotHandle is a unique id returned by
|
||||
|
@@ -35,7 +35,8 @@ spec:
|
||||
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
|
||||
spec:
|
||||
description: VolumeGroupSnapshotSpec defines the desired state of VolumeGroupSnapshot
|
||||
description: Spec defines the desired characteristics of a group snapshot
|
||||
requested by a user. Required.
|
||||
properties:
|
||||
selector:
|
||||
description: Selector is a label query over PersistentVolumeClaims
|
||||
@@ -44,7 +45,7 @@ spec:
|
||||
added or removed to a volume after a group snapshot is created,
|
||||
the existing group snapshots won't be modified. Once a VolumeGroupSnapshotContent
|
||||
is created and the sidecar starts to process it, the volume list
|
||||
will not change with retries.
|
||||
will not change with retries. Required.
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list of label selector requirements.
|
||||
@@ -98,7 +99,10 @@ spec:
|
||||
- selector
|
||||
type: object
|
||||
status:
|
||||
description: VolumeGroupSnapshotStatus defines the observed state of VolumeGroupSnapshot
|
||||
description: Status represents the current information of a group snapshot.
|
||||
Consumers must verify binding between VolumeGroupSnapshot and VolumeGroupSnapshotContent
|
||||
objects is successful (by validating that both VolumeGroupSnapshot and
|
||||
VolumeGroupSnapshotContent point to each other) before using this object.
|
||||
properties:
|
||||
boundVolumeGroupSnapshotContentName:
|
||||
description: 'BoundVolumeGroupSnapshotContentName is the name of the
|
||||
@@ -128,19 +132,23 @@ spec:
|
||||
this error field will be cleared.
|
||||
properties:
|
||||
message:
|
||||
description: 'Message is a string detailing the encountered error
|
||||
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.
|
||||
description: time is the timestamp when the error was encountered.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
readyToUse:
|
||||
description: ReadyToUse indicates if all the individual snapshots
|
||||
in the group are ready to be used to restore a volume. If not specified,
|
||||
it means the readiness of a group snapshot is unknown.
|
||||
in the group are ready to be used to restore a volume. ReadyToUse
|
||||
becomes true when ReadyToUse of all individual snapshots become
|
||||
true. If not specified, it means the readiness of a group snapshot
|
||||
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.
|
||||
type: boolean
|
||||
volumeSnapshotRefList:
|
||||
description: VolumeSnapshotRefList is the list of volume snapshot
|
||||
|
Reference in New Issue
Block a user