Skip to content

Commit e562c2d

Browse files
authored
Merge pull request #367 from prateekpandey14/use-v1-crd
Update volume snapshot CRDs to v1 version
2 parents 60202d2 + c1e1a1b commit e562c2d

File tree

5 files changed

+427
-429
lines changed

5 files changed

+427
-429
lines changed

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

Lines changed: 58 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
---
3-
apiVersion: apiextensions.k8s.io/v1beta1
3+
apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
@@ -9,74 +9,73 @@ metadata:
99
creationTimestamp: null
1010
name: volumesnapshotclasses.snapshot.storage.k8s.io
1111
spec:
12-
additionalPrinterColumns:
13-
- JSONPath: .driver
14-
name: Driver
15-
type: string
16-
- JSONPath: .deletionPolicy
17-
description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass
18-
should be deleted when its bound VolumeSnapshot is deleted.
19-
name: DeletionPolicy
20-
type: string
21-
- JSONPath: .metadata.creationTimestamp
22-
name: Age
23-
type: date
2412
group: snapshot.storage.k8s.io
2513
names:
2614
kind: VolumeSnapshotClass
2715
listKind: VolumeSnapshotClassList
2816
plural: volumesnapshotclasses
2917
singular: volumesnapshotclass
30-
preserveUnknownFields: false
3118
scope: Cluster
32-
subresources: {}
33-
validation:
34-
openAPIV3Schema:
35-
description: VolumeSnapshotClass specifies parameters that a underlying storage
36-
system uses when creating a volume snapshot. A specific VolumeSnapshotClass
37-
is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses
38-
are non-namespaced
39-
properties:
40-
apiVersion:
41-
description: 'APIVersion defines the versioned schema of this representation
42-
of an object. Servers should convert recognized schemas to the latest
43-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
44-
type: string
45-
deletionPolicy:
46-
description: deletionPolicy determines whether a VolumeSnapshotContent created
47-
through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot
48-
is deleted. Supported values are "Retain" and "Delete". "Retain" means
49-
that the VolumeSnapshotContent and its physical snapshot on underlying
50-
storage system are kept. "Delete" means that the VolumeSnapshotContent
51-
and its physical snapshot on underlying storage system are deleted. Required.
52-
enum:
53-
- Delete
54-
- Retain
55-
type: string
56-
driver:
57-
description: driver is the name of the storage driver that handles this
58-
VolumeSnapshotClass. Required.
59-
type: string
60-
kind:
61-
description: 'Kind is a string value representing the REST resource this
62-
object represents. Servers may infer this from the endpoint the client
63-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
64-
type: string
65-
parameters:
66-
additionalProperties:
67-
type: string
68-
description: parameters is a key-value map with storage driver specific
69-
parameters for creating snapshots. These values are opaque to Kubernetes.
70-
type: object
71-
required:
72-
- deletionPolicy
73-
- driver
74-
type: object
75-
version: v1beta1
7619
versions:
77-
- name: v1beta1
20+
- additionalPrinterColumns:
21+
- jsonPath: .driver
22+
name: Driver
23+
type: string
24+
- description: Determines whether a VolumeSnapshotContent created through the
25+
VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
26+
jsonPath: .deletionPolicy
27+
name: DeletionPolicy
28+
type: string
29+
- jsonPath: .metadata.creationTimestamp
30+
name: Age
31+
type: date
32+
name: v1beta1
33+
schema:
34+
openAPIV3Schema:
35+
description: VolumeSnapshotClass specifies parameters that a underlying storage
36+
system uses when creating a volume snapshot. A specific VolumeSnapshotClass
37+
is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses
38+
are non-namespaced
39+
properties:
40+
apiVersion:
41+
description: 'APIVersion defines the versioned schema of this representation
42+
of an object. Servers should convert recognized schemas to the latest
43+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
44+
type: string
45+
deletionPolicy:
46+
description: deletionPolicy determines whether a VolumeSnapshotContent
47+
created through the VolumeSnapshotClass should be deleted when its bound
48+
VolumeSnapshot is deleted. Supported values are "Retain" and "Delete".
49+
"Retain" means that the VolumeSnapshotContent and its physical snapshot
50+
on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent
51+
and its physical snapshot on underlying storage system are deleted.
52+
Required.
53+
enum:
54+
- Delete
55+
- Retain
56+
type: string
57+
driver:
58+
description: driver is the name of the storage driver that handles this
59+
VolumeSnapshotClass. Required.
60+
type: string
61+
kind:
62+
description: 'Kind is a string value representing the REST resource this
63+
object represents. Servers may infer this from the endpoint the client
64+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
65+
type: string
66+
parameters:
67+
additionalProperties:
68+
type: string
69+
description: parameters is a key-value map with storage driver specific
70+
parameters for creating snapshots. These values are opaque to Kubernetes.
71+
type: object
72+
required:
73+
- deletionPolicy
74+
- driver
75+
type: object
7876
served: true
7977
storage: true
78+
subresources: {}
8079
status:
8180
acceptedNames:
8281
kind: ""

0 commit comments

Comments
 (0)