File tree 13 files changed +34
-42
lines changed
13 files changed +34
-42
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ target-branch: develop
4
4
chart-dirs :
5
5
- deploy/helm
6
6
helm-extra-args : --timeout=500s
7
+ validate-maintainers : false
Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
name : lvm-localpv
3
3
description : CSI Driver for dynamic provisioning of LVM Persistent Local Volumes.
4
- version : 1.5.0
4
+ version : 1.5.1
5
5
appVersion : 1.5.0
6
6
icon : https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
7
7
home : https://openebs.io/
@@ -16,11 +16,5 @@ sources:
16
16
- https://github.com/openebs/lvm-localpv
17
17
dependencies :
18
18
- name : crds
19
- version : " 1.5.0"
20
- maintainers :
21
- - name : prateekpandey14
22
-
23
- - name : pawanpraka1
24
-
25
- - name : iyashu
26
-
19
+ version : 1.5.1
20
+ condition : crds.enabled
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ helm install openebs-lvmlocalpv openebs-lvmlocalpv/lvm-localpv --namespace opene
101
101
| ` lvmPlugin.image.registry ` | Registry for openebs-lvm-plugin image | ` "" ` |
102
102
| ` lvmPlugin.image.repository ` | Image repository for openebs-lvm-plugin | ` openebs/lvm-driver ` |
103
103
| ` lvmPlugin.image.pullPolicy ` | Image pull policy for openebs-lvm-plugin | ` IfNotPresent ` |
104
- | ` lvmPlugin.image.tag ` | Image tag for openebs-lvm-plugin | ` 1.3 .0 ` |
104
+ | ` lvmPlugin.image.tag ` | Image tag for openebs-lvm-plugin | ` 1.5 .0 ` |
105
105
| ` lvmPlugin.metricsPort ` | The TCP port number used for exposing lvm-metrics | ` 9500 ` |
106
106
| ` lvmPlugin.allowedTopologies ` | The comma seperated list of allowed node topologies | ` kubernetes.io/hostname, ` |
107
107
| ` lvmNode.driverRegistrar.image.registry ` | Registry for csi-node-driver-registrar image | ` registry.k8s.io/ ` |
Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
name : crds
3
- version : 1.5.0
3
+ version : 1.5.1
4
4
description : A Helm chart that collects CustomResourceDefinitions (CRDs) from lvm-localpv.
Original file line number Diff line number Diff line change
1
+ { {/* vim: set filetype= mustache: */} }
2
+
1
3
{ {/*
2
- This returns a " 1" if the CRD is absent in the cluster
4
+ Adds extra annotations to CRDs. This targets two scenarios: preventing CRD recycling in case
5
+ the chart is removed; and adding custom annotations.
6
+ NOTE: This function assumes the element `metadata.annotations` already exists.
3
7
Usage:
4
- {{- if (include " crdIsAbsent" (list < crd-name> )) -} }
5
- # CRD Yaml
6
- { {- end -} }
8
+ {{- include " crds.extraAnnotations" .Values.csi.volumeSnapshots | nindent 4 } }
7
9
*/}}
8
- { {- define " crdIsAbsent" -} }
9
- { {- $crdName := index . 0 -} }
10
- { {- $crd := lookup " apiextensions.k8s.io/v1" " CustomResourceDefinition" " " $crdName -} }
11
- { {- $output := " 1" -} }
12
- { {- if $crd -} }
13
- { {- $output = " " -} }
14
- { {- end -} }
15
10
16
- { {- $output -} }
11
+ { {- define " crds.extraAnnotations" -} }
12
+ { {- if .keep -} }
13
+ helm.sh/resource-policy: keep
14
+ { { end } }
15
+ { {- with .annotations } }
16
+ { {- toYaml . } }
17
+ { {- end } }
17
18
{ {- end -} }
Original file line number Diff line number Diff line change 1
1
{{- if .Values.csi.volumeSnapshots.enabled -}}
2
- {{- $crdName := "volumesnapshotclasses.snapshot.storage.k8s.io" -}}
3
- {{- if (include "crdIsAbsent" (list $crdName)) -}}
4
2
apiVersion : apiextensions.k8s.io/v1
5
3
kind : CustomResourceDefinition
6
4
metadata :
7
5
annotations :
8
6
api-approved.kubernetes.io : https://github.com/kubernetes-csi/external-snapshotter/pull/814
9
7
controller-gen.kubebuilder.io/version : v0.11.3
8
+ {{- include "crds.extraAnnotations" .Values.csi.volumeSnapshots | nindent 4 }}
10
9
creationTimestamp : null
11
10
name : volumesnapshotclasses.snapshot.storage.k8s.io
12
11
spec :
@@ -148,5 +147,4 @@ status:
148
147
plural : " "
149
148
conditions : []
150
149
storedVersions : []
151
- {{- end -}}
152
150
{{- end -}}
Original file line number Diff line number Diff line change 1
1
{{- if .Values.csi.volumeSnapshots.enabled -}}
2
- {{- $crdName := "volumesnapshotcontents.snapshot.storage.k8s.io" -}}
3
- {{- if (include "crdIsAbsent" (list $crdName)) -}}
4
2
apiVersion : apiextensions.k8s.io/v1
5
3
kind : CustomResourceDefinition
6
4
metadata :
7
5
annotations :
8
6
api-approved.kubernetes.io : https://github.com/kubernetes-csi/external-snapshotter/pull/814
9
7
controller-gen.kubebuilder.io/version : v0.11.3
8
+ {{- include "crds.extraAnnotations" .Values.csi.volumeSnapshots | nindent 4 }}
10
9
creationTimestamp : null
11
10
name : volumesnapshotcontents.snapshot.storage.k8s.io
12
11
spec :
@@ -486,5 +485,4 @@ status:
486
485
plural : " "
487
486
conditions : []
488
487
storedVersions : []
489
- {{- end -}}
490
488
{{- end -}}
Original file line number Diff line number Diff line change 1
1
{{- if .Values.csi.volumeSnapshots.enabled -}}
2
- {{- $crdName := "volumesnapshots.snapshot.storage.k8s.io" -}}
3
- {{- if (include "crdIsAbsent" (list $crdName)) -}}
4
2
apiVersion : apiextensions.k8s.io/v1
5
3
kind : CustomResourceDefinition
6
4
metadata :
7
5
annotations :
8
6
api-approved.kubernetes.io : https://github.com/kubernetes-csi/external-snapshotter/pull/814
9
7
controller-gen.kubebuilder.io/version : v0.11.3
8
+ {{- include "crds.extraAnnotations" .Values.csi.volumeSnapshots | nindent 4 }}
10
9
creationTimestamp : null
11
10
name : volumesnapshots.snapshot.storage.k8s.io
12
11
spec :
@@ -388,5 +387,4 @@ status:
388
387
plural : " "
389
388
conditions : []
390
389
storedVersions : []
391
- {{- end -}}
392
390
{{- end -}}
Original file line number Diff line number Diff line change 1
1
{{- if .Values.lvmLocalPv.enabled -}}
2
- {{- $crdName := "lvmnodes.local.openebs.io" -}}
3
- {{- if (include "crdIsAbsent" (list $crdName)) -}}
4
2
# #############################################
5
3
# ########## ############
6
4
# ########## LVMNode CRD ############
@@ -17,6 +15,7 @@ kind: CustomResourceDefinition
17
15
metadata :
18
16
annotations :
19
17
controller-gen.kubebuilder.io/version : v0.4.0
18
+ {{- include "crds.extraAnnotations" .Values.lvmLocalPv | nindent 4 }}
20
19
creationTimestamp : null
21
20
name : lvmnodes.local.openebs.io
22
21
spec :
@@ -176,5 +175,4 @@ status:
176
175
plural : " "
177
176
conditions : []
178
177
storedVersions : []
179
- {{- end -}}
180
178
{{- end -}}
Original file line number Diff line number Diff line change 1
1
{{- if .Values.lvmLocalPv.enabled -}}
2
- {{- $crdName := "lvmsnapshots.local.openebs.io" -}}
3
- {{- if (include "crdIsAbsent" (list $crdName)) -}}
4
2
# #############################################
5
3
# ########## ############
6
4
# ########## LVMSnapshot CRD ############
@@ -17,6 +15,7 @@ kind: CustomResourceDefinition
17
15
metadata :
18
16
annotations :
19
17
controller-gen.kubebuilder.io/version : v0.4.0
18
+ {{- include "crds.extraAnnotations" .Values.lvmLocalPv | nindent 4 }}
20
19
creationTimestamp : null
21
20
name : lvmsnapshots.local.openebs.io
22
21
spec :
@@ -84,5 +83,4 @@ status:
84
83
plural : " "
85
84
conditions : []
86
85
storedVersions : []
87
- {{- end -}}
88
86
{{- end -}}
Original file line number Diff line number Diff line change 1
1
{{- if .Values.lvmLocalPv.enabled -}}
2
- {{- $crdName := "lvmvolumes.local.openebs.io" -}}
3
- {{- if (include "crdIsAbsent" (list $crdName)) -}}
4
2
# #############################################
5
3
# ########## ############
6
4
# ########## LVMVolume CRD ############
@@ -17,6 +15,7 @@ kind: CustomResourceDefinition
17
15
metadata :
18
16
annotations :
19
17
controller-gen.kubebuilder.io/version : v0.4.0
18
+ {{- include "crds.extraAnnotations" .Values.lvmLocalPv | nindent 4 }}
20
19
creationTimestamp : null
21
20
name : lvmvolumes.local.openebs.io
22
21
spec :
@@ -152,5 +151,4 @@ status:
152
151
plural : " "
153
152
conditions : []
154
153
storedVersions : []
155
- {{- end -}}
156
154
{{- end -}}
Original file line number Diff line number Diff line change 1
1
lvmLocalPv :
2
2
# Install lvm-localpv CRDs
3
3
enabled : true
4
+ # Keep CRDs on chart uninstall
5
+ keep : true
4
6
5
7
csi :
6
8
volumeSnapshots :
7
9
# Install Volume Snapshot CRDs
8
10
enabled : true
11
+ # Keep CRDs on chart uninstall
12
+ keep : true
Original file line number Diff line number Diff line change 2
2
# This is a YAML-formatted file.
3
3
# Declare variables to be passed into your templates.
4
4
release :
5
- version : " 1.5.0 "
5
+ version : " 1.5.1 "
6
6
7
7
imagePullSecrets :
8
8
# - name: "image-pull-secret"
@@ -187,7 +187,11 @@ crds:
187
187
lvmLocalPv :
188
188
# Install lvm-localpv CRDs
189
189
enabled : true
190
+ # Keep CRDs on chart uninstall
191
+ keep : true
190
192
csi :
191
193
volumeSnapshots :
192
194
# Install Volume Snapshot CRDs
193
195
enabled : true
196
+ # Keep CRDs on chart uninstall
197
+ keep : true
You can’t perform that action at this time.
0 commit comments