Skip to content

Commit f810e80

Browse files
authored
Bump: external snapshot CRD to v0.15.0 (#12308)
Currently, there is no reliable way to obtain individual CRD files, so the only solution is to update first. Signed-off-by: ChengHao Yang <[email protected]>
1 parent b04ceba commit f810e80

File tree

7 files changed

+1035
-76
lines changed

7 files changed

+1035
-76
lines changed

roles/kubernetes-apps/csi_driver/csi_crd/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
dest: "{{ kube_config_dir }}/{{ item.file }}"
66
mode: "0644"
77
with_items:
8+
- {name: volumegroupsnapshotclasses, file: volumegroupsnapshotclasses.yml}
9+
- {name: volumegroupsnapshotcontents, file: volumegroupsnapshotcontents.yml}
10+
- {name: volumegroupsnapshots, file: volumegroupsnapshots.yml}
811
- {name: volumesnapshotclasses, file: volumesnapshotclasses.yml}
912
- {name: volumesnapshotcontents, file: volumesnapshotcontents.yml}
1013
- {name: volumesnapshots, file: volumesnapshots.yml}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/1150"
7+
controller-gen.kubebuilder.io/version: v0.15.0
8+
name: volumegroupsnapshotclasses.groupsnapshot.storage.k8s.io
9+
spec:
10+
group: groupsnapshot.storage.k8s.io
11+
names:
12+
kind: VolumeGroupSnapshotClass
13+
listKind: VolumeGroupSnapshotClassList
14+
plural: volumegroupsnapshotclasses
15+
shortNames:
16+
- vgsclass
17+
- vgsclasses
18+
singular: volumegroupsnapshotclass
19+
scope: Cluster
20+
versions:
21+
- additionalPrinterColumns:
22+
- jsonPath: .driver
23+
name: Driver
24+
type: string
25+
- description: Determines whether a VolumeGroupSnapshotContent created through
26+
the VolumeGroupSnapshotClass should be deleted when its bound VolumeGroupSnapshot
27+
is deleted.
28+
jsonPath: .deletionPolicy
29+
name: DeletionPolicy
30+
type: string
31+
- jsonPath: .metadata.creationTimestamp
32+
name: Age
33+
type: date
34+
name: v1beta1
35+
schema:
36+
openAPIV3Schema:
37+
description: |-
38+
VolumeGroupSnapshotClass specifies parameters that a underlying storage system
39+
uses when creating a volume group snapshot. A specific VolumeGroupSnapshotClass
40+
is used by specifying its name in a VolumeGroupSnapshot object.
41+
VolumeGroupSnapshotClasses are non-namespaced.
42+
properties:
43+
apiVersion:
44+
description: |-
45+
APIVersion defines the versioned schema of this representation of an object.
46+
Servers should convert recognized schemas to the latest internal value, and
47+
may reject unrecognized values.
48+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
49+
type: string
50+
deletionPolicy:
51+
description: |-
52+
DeletionPolicy determines whether a VolumeGroupSnapshotContent created
53+
through the VolumeGroupSnapshotClass should be deleted when its bound
54+
VolumeGroupSnapshot is deleted.
55+
Supported values are "Retain" and "Delete".
56+
"Retain" means that the VolumeGroupSnapshotContent and its physical group
57+
snapshot on underlying storage system are kept.
58+
"Delete" means that the VolumeGroupSnapshotContent and its physical group
59+
snapshot on underlying storage system are deleted.
60+
Required.
61+
enum:
62+
- Delete
63+
- Retain
64+
type: string
65+
driver:
66+
description: |-
67+
Driver is the name of the storage driver expected to handle this VolumeGroupSnapshotClass.
68+
Required.
69+
type: string
70+
kind:
71+
description: |-
72+
Kind is a string value representing the REST resource this object represents.
73+
Servers may infer this from the endpoint the client submits requests to.
74+
Cannot be updated.
75+
In CamelCase.
76+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
77+
type: string
78+
metadata:
79+
type: object
80+
parameters:
81+
additionalProperties:
82+
type: string
83+
description: |-
84+
Parameters is a key-value map with storage driver specific parameters for
85+
creating group snapshots.
86+
These values are opaque to Kubernetes and are passed directly to the driver.
87+
type: object
88+
required:
89+
- deletionPolicy
90+
- driver
91+
type: object
92+
served: true
93+
storage: true
94+
subresources: {}

0 commit comments

Comments
 (0)