Skip to content

Commit 9b86d7c

Browse files
committed
generate crds, modify api
1 parent 038d92c commit 9b86d7c

4 files changed

+389
-346
lines changed

config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml

+41-35
Original file line numberDiff line numberDiff line change
@@ -11,44 +11,50 @@ spec:
1111
kind: VolumeSnapshotClass
1212
plural: volumesnapshotclasses
1313
scope: ""
14+
validation:
15+
openAPIV3Schema:
16+
description: VolumeSnapshotClass describes the parameters for a class of storage
17+
snapshotter for which VolumeSnapshot can be dynamically taken for a given
18+
PersistentVolumeClaim VolumeSnapshotClasses are non-namespaced. The name of
19+
a VolumeSnapshotClass object is significant, it serves as the unique identifier
20+
for a user to request a snapshot to be created using the specific VolumeSnapshotClass
21+
properties:
22+
apiVersion:
23+
description: 'APIVersion defines the versioned schema of this representation
24+
of an object. Servers should convert recognized schemas to the latest
25+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
26+
type: string
27+
deletionPolicy:
28+
description: DeletionPolicy defines whether a VolumeSnapshotContent and
29+
its associated physical snapshot on underlying storage system should be
30+
deleted or not when released from its corresponding VolumeSnapshot. If
31+
not specified, the default will be VolumeSnapshotContentRetain for static
32+
binding, and VolumeSnapshotContentDelete for dynamic snapshot creation.
33+
type: string
34+
kind:
35+
description: 'Kind is a string value representing the REST resource this
36+
object represents. Servers may infer this from the endpoint the client
37+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
38+
type: string
39+
metadata:
40+
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
41+
type: object
42+
parameters:
43+
additionalProperties:
44+
type: string
45+
description: Parameters holds parameters for underlying storage system.
46+
These values are opaque to Kubernetes.
47+
type: object
48+
snapshotter:
49+
description: Snapshotter is the name of the driver expected to handle VolumeSnapshot
50+
requests of this VolumeSnapshotClass.
51+
type: string
52+
required:
53+
- snapshotter
54+
type: object
1455
version: v1beta1
1556
versions:
1657
- name: v1beta1
17-
schema:
18-
openAPIV3Schema:
19-
description: VolumeSnapshotClass describes the parameters used by storage
20-
system when provisioning VolumeSnapshots from PVCs. The name of a VolumeSnapshotClass
21-
object is significant, and is how users can request a particular class.
22-
properties:
23-
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
27-
type: string
28-
deletionPolicy:
29-
description: 'Optional: what happens to a snapshot content when released
30-
from its snapshot. The default policy is Delete if not specified.'
31-
type: string
32-
kind:
33-
description: 'Kind is a string value representing the REST resource this
34-
object represents. Servers may infer this from the endpoint the client
35-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
36-
type: string
37-
metadata:
38-
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
39-
type: object
40-
parameters:
41-
additionalProperties:
42-
type: string
43-
description: Parameters holds parameters for the snapshotter. These values
44-
are opaque to the system and are passed directly to the snapshotter.
45-
type: object
46-
snapshotter:
47-
description: Snapshotter is the driver expected to handle this VolumeSnapshotClass.
48-
type: string
49-
required:
50-
- snapshotter
51-
type: object
5258
served: true
5359
storage: true
5460
status:

0 commit comments

Comments
 (0)