Skip to content

Commit

Permalink
[VDEVOPS-000]: Support hostPaths
Browse files Browse the repository at this point in the history
Signed-off-by: adobrodey <[email protected]>
  • Loading branch information
ADobrodey committed Mar 15, 2024
1 parent 70b1bc7 commit 93d5e23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion global/k8s-common/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
5 changes: 4 additions & 1 deletion global/k8s-common/templates/_volume.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand All @@ -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 }}
Expand Down

0 comments on commit 93d5e23

Please sign in to comment.