Skip to content

Commit 700a1a3

Browse files
committed
feat: enable snapshot-controller and add custom helm chart
Signed-off-by: Tadas Sutkaitis <[email protected]>
1 parent ba12eec commit 700a1a3

23 files changed

+2226
-3
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v2
2+
name: snapshot-controller-csi
3+
description: A Helm chart for snapshot-controller-csi
4+
type: application
5+
version: 0.1.0
6+
appVersion: v8.3.0
7+
sources:
8+
- https://github.com/kubernetes-csi/external-snapshotter/
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)