Skip to content

Commit

Permalink
Merge pull request #122 from janlauber/add-csi-volumes
Browse files Browse the repository at this point in the history
[common]: fix rendering of csi volume
  • Loading branch information
adberger authored Oct 31, 2023
2 parents 532ed46 + 74650be commit 6197547
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: common
description: "Bedag's common Helm chart to use for creating other Helm charts"
version: 10.10.0
version: 10.10.1
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
Expand Down
2 changes: 1 addition & 1 deletion charts/common/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# common

![Version: 10.10.0](https://img.shields.io/badge/Version-10.10.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 10.10.1](https://img.shields.io/badge/Version-10.10.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Bedag's common Helm chart to use for creating other Helm charts

Expand Down
6 changes: 6 additions & 0 deletions charts/common/ci/values.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ components:
- name: emptydir-volume
type: "emptyDir"
sizeLimit: 100Mi
- name: secret-store
type: "csi"
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "azure-kvname"

containers:
container-1:
Expand Down
2 changes: 1 addition & 1 deletion charts/common/templates/_pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ volumes:
readOnly: {{ .readOnly }}
{{- end }}
{{- end }}
{{- end }}
{{- else if eq .type "csi" }}
{{- if .driver }}
csi:
Expand All @@ -105,6 +104,7 @@ volumes:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- if or $controllerValues.containers $controllerValues.initContainers }}
{{- $containers := merge ($controllerValues.containers | default dict) ($controllerValues.initContainers | default dict) }}
{{- range $containerName, $containerValues := $containers }}
Expand Down

0 comments on commit 6197547

Please sign in to comment.