diff --git a/global/k8s-common/Chart.yaml b/global/k8s-common/Chart.yaml index bf06b2f..00d50c2 100644 --- a/global/k8s-common/Chart.yaml +++ b/global/k8s-common/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: k8s-common -version: 1.6.0 +version: 1.6.1 description: A Library Helm Chart for grouping common logic between charts. This chart is not deployable by itself. type: library keywords: diff --git a/global/k8s-common/templates/_volume.tpl b/global/k8s-common/templates/_volume.tpl index dd0d55d..9d6e7e2 100644 --- a/global/k8s-common/templates/_volume.tpl +++ b/global/k8s-common/templates/_volume.tpl @@ -12,7 +12,7 @@ Return generated volume mounts. {{ if $value.subPath -}} subPath: {{ $value.subPath }} {{ end -}} - {{ if or $value.secretName $value.vaultPath -}} + {{ if or $value.secretName $value.vaultPath $value.hostPath -}} readOnly: true {{- end -}} {{- end -}} @@ -35,6 +35,9 @@ Return generated volume definitions. {{- else if $value.secretName -}} secret: secretName: {{ $value.secretName }} + {{- else if $value.hostPath -}} + hostPath: + path: {{ $value.hostPath }} {{- else if $value.vaultPath -}} secret: secretName: {{ include "k8s-common.names.fullname" $ }}-vault-{{ $key }}