Skip to content

Commit b59f196

Browse files
authored
Merge pull request #322 from openebs/chart_v1.6.0
feat(helm): version bump for v1.6.0
2 parents 439bbc7 + f447a27 commit b59f196

File tree

8 files changed

+20
-23
lines changed

8 files changed

+20
-23
lines changed

deploy/helm/charts/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
name: lvm-localpv
33
description: CSI Driver for dynamic provisioning of LVM Persistent Local Volumes.
4-
version: 1.5.1
5-
appVersion: 1.5.0
4+
version: 1.6.0
5+
appVersion: 1.6.0
66
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
77
home: https://openebs.io/
88
keywords:
@@ -16,5 +16,5 @@ sources:
1616
- https://github.com/openebs/lvm-localpv
1717
dependencies:
1818
- name: crds
19-
version: 1.5.1
19+
version: 1.6.0
2020
condition: crds.enabled

deploy/helm/charts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ helm install openebs-lvmlocalpv openebs-lvmlocalpv/lvm-localpv --namespace opene
9292
| `lvmPlugin.image.registry` | Registry for openebs-lvm-plugin image | `""` |
9393
| `lvmPlugin.image.repository` | Image repository for openebs-lvm-plugin | `openebs/lvm-driver` |
9494
| `lvmPlugin.image.pullPolicy` | Image pull policy for openebs-lvm-plugin | `IfNotPresent` |
95-
| `lvmPlugin.image.tag` | Image tag for openebs-lvm-plugin | `1.5.0` |
95+
| `lvmPlugin.image.tag` | Image tag for openebs-lvm-plugin | `1.6.0` |
9696
| `lvmPlugin.metricsPort` | The TCP port number used for exposing lvm-metrics | `9500` |
9797
| `lvmPlugin.allowedTopologies` | The comma seperated list of allowed node topologies | `kubernetes.io/hostname,` |
9898
| `lvmNode.driverRegistrar.image.registry` | Registry for csi-node-driver-registrar image | `registry.k8s.io/` |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v2
22
name: crds
3-
version: 1.5.1
3+
version: 1.6.0
44
description: A Helm chart that collects CustomResourceDefinitions (CRDs) from lvm-localpv.

deploy/helm/charts/templates/_helpers.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,10 @@ Create the name of the priority class for csi controller plugin
136136
{{- printf "%s" .Values.lvmController.priorityClass.name | trunc 63 | trimSuffix "-" }}
137137
{{- end }}
138138
{{- end }}
139+
140+
{{/*
141+
Ensure that the path to kubelet ends with a slash
142+
*/}}
143+
{{- define "lvmlocalpv.lvmNode.kubeletDir" -}}
144+
{{- printf "%s/" (.Values.lvmNode.kubeletDir | trimSuffix "/") -}}
145+
{{- end }}

deploy/helm/charts/templates/lvm-controller.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ spec:
2323
{{ toYaml . | nindent 8 }}
2424
{{- end}}
2525
spec:
26-
affinity:
27-
podAntiAffinity:
28-
requiredDuringSchedulingIgnoredDuringExecution:
29-
- labelSelector:
30-
matchExpressions:
31-
- key: app
32-
operator: In
33-
values:
34-
- openebs-lvm-controller
35-
topologyKey: "kubernetes.io/hostname"
3626
{{- if .Values.lvmController.priorityClass.create }}
3727
priorityClassName: {{ template "lvmlocalpv.lvmController.priorityClassName" . }}
3828
{{- end }}

deploy/helm/charts/templates/lvm-node.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ spec:
4747
- name: ADDRESS
4848
value: /plugin/csi.sock
4949
- name: DRIVER_REG_SOCK_PATH
50-
value: {{ .Values.lvmNode.kubeletDir }}plugins/lvm-localpv/csi.sock
50+
value: {{ printf "%s%s" (include "lvmlocalpv.lvmNode.kubeletDir" .) "plugins/lvm-localpv/csi.sock" | quote }}
5151
- name: KUBE_NODE_NAME
5252
valueFrom:
5353
fieldRef:
@@ -117,7 +117,7 @@ spec:
117117
- name: device-dir
118118
mountPath: /dev
119119
- name: pods-mount-dir
120-
mountPath: {{ .Values.lvmNode.kubeletDir }}
120+
mountPath: {{ include "lvmlocalpv.lvmNode.kubeletDir" . | quote }}
121121
# needed so that any mounts setup inside this container are
122122
# propagated back to the host machine.
123123
mountPropagation: "Bidirectional"
@@ -130,15 +130,15 @@ spec:
130130
type: Directory
131131
- name: registration-dir
132132
hostPath:
133-
path: {{ .Values.lvmNode.kubeletDir }}plugins_registry/
133+
path: {{ printf "%s%s" (include "lvmlocalpv.lvmNode.kubeletDir" .) "plugins_registry/" | quote }}
134134
type: DirectoryOrCreate
135135
- name: plugin-dir
136136
hostPath:
137-
path: {{ .Values.lvmNode.kubeletDir }}plugins/lvm-localpv/
137+
path: {{ printf "%s%s" (include "lvmlocalpv.lvmNode.kubeletDir" .) "plugins/lvm-localpv/" | quote }}
138138
type: DirectoryOrCreate
139139
- name: pods-mount-dir
140140
hostPath:
141-
path: {{ .Values.lvmNode.kubeletDir }}
141+
path: {{ include "lvmlocalpv.lvmNode.kubeletDir" . | quote }}
142142
type: Directory
143143
{{- if .Values.imagePullSecrets }}
144144
imagePullSecrets:

deploy/helm/charts/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44
release:
5-
version: "1.5.1"
5+
version: "1.6.0"
66

77
imagePullSecrets:
88
# - name: "image-pull-secret"
@@ -151,7 +151,7 @@ lvmPlugin:
151151
repository: openebs/lvm-driver
152152
pullPolicy: IfNotPresent
153153
# Overrides the image tag whose default is the chart appVersion.
154-
tag: 1.5.0
154+
tag: 1.6.0
155155
ioLimits:
156156
enabled: false
157157
containerRuntime: containerd

tests/lvm_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func extendVg(name string, device string) {
147147
gomega.Expect(err_vg).To(gomega.BeNil(), "vg extend failed")
148148
}
149149

150-
// Does vgremove on specified vg with -y flag if vg isnt empty after fer retires.
150+
// Does vgremove on specified vg with -y flag if vg isnt empty after few retires.
151151
func removeVg(name string) {
152152
ginkgo.By("Removing vg")
153153
retries := 3

0 commit comments

Comments
 (0)