Skip to content

Commit a51722e

Browse files
authored
add support for configMap volumes (#172)
* add support for configMap volumes * github: use chart-testing-action v2.5.0 * github: use chart-testing-action v2.6.0 * default-chart: bump version * pipeline: fix config * pipeline: fix config * pipeline: bump helm/chart-testing-action to 2.6.1 * pipeline: add debug * pipeline: add debug * Revert "pipeline: add debug" This reverts commit e28298b. * pipeline: remove undefined option
1 parent b4659df commit a51722e

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/helm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
python-version: 3.7
3131

3232
- name: Set up chart-testing
33-
uses: helm/chart-testing-action@v2.4.0
33+
uses: helm/chart-testing-action@v2.6.1
3434

3535
- name: Run chart-testing (list-changed)
3636
id: list-changed

charts/default-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414

1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
17-
version: 3.0.7
17+
version: 3.0.8
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application.

charts/default-chart/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ spec:
9393
{{- if .secretName }}
9494
secret:
9595
secretName: {{ .secretName }}
96+
{{- else if .configMapName }}
97+
configMap:
98+
name: {{ .configMapName }}
9699
{{- else }}
97100
persistentVolumeClaim:
98101
claimName: {{ $chartName }}-{{ .name }}

charts/default-chart/templates/persistent-volume-claim.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $labels := include "default-chart.labels" . -}}
33
{{- if and .Values.persistence.enabled }}
44
{{- range .Values.persistence.volumes }}
5-
{{- if not .secretName }}
5+
{{- if not (or .secretName .configMapName) }}
66
apiVersion: v1
77
kind: PersistentVolumeClaim
88
metadata:

0 commit comments

Comments
 (0)