Skip to content

Commit

Permalink
generate crds, modify api
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiangqian committed Aug 23, 2019
1 parent 71225f9 commit 04497ae
Show file tree
Hide file tree
Showing 4 changed files with 389 additions and 346 deletions.
76 changes: 41 additions & 35 deletions config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,50 @@ spec:
kind: VolumeSnapshotClass
plural: volumesnapshotclasses
scope: ""
validation:
openAPIV3Schema:
description: VolumeSnapshotClass describes the parameters for a class of storage
snapshotter for which VolumeSnapshot can be dynamically taken for a given
PersistentVolumeClaim VolumeSnapshotClasses are non-namespaced. The name of
a VolumeSnapshotClass object is significant, it serves as the unique identifier
for a user to request a snapshot to be created using the specific VolumeSnapshotClass
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 defines whether a VolumeSnapshotContent and
its associated physical snapshot on underlying storage system should be
deleted or not when released from its corresponding VolumeSnapshot. If
not specified, the default will be VolumeSnapshotContentRetain for static
binding, and VolumeSnapshotContentDelete for dynamic snapshot creation.
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 holds parameters for underlying storage system.
These values are opaque to Kubernetes.
type: object
snapshotter:
description: Snapshotter is the name of the driver expected to handle VolumeSnapshot
requests of this VolumeSnapshotClass.
type: string
required:
- snapshotter
type: object
version: v1beta1
versions:
- name: v1beta1
schema:
openAPIV3Schema:
description: VolumeSnapshotClass describes the parameters used by storage
system when provisioning VolumeSnapshots from PVCs. The name of a VolumeSnapshotClass
object is significant, and is how users can request a particular class.
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: 'Optional: what happens to a snapshot content when released
from its snapshot. The default policy is Delete if not specified.'
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 holds parameters for the snapshotter. These values
are opaque to the system and are passed directly to the snapshotter.
type: object
snapshotter:
description: Snapshotter is the driver expected to handle this VolumeSnapshotClass.
type: string
required:
- snapshotter
type: object
served: true
storage: true
status:
Expand Down
Loading

0 comments on commit 04497ae

Please sign in to comment.