Fix hostPathMounts and add install test (#527)

* Fix hostPathMounts and add install test

* whoops fix
This commit is contained in:
Kjeld Schouten-Lebbing
2021-05-28 23:06:40 +02:00
committed by GitHub
parent d782167fd3
commit 91c199f2ed
5 changed files with 70 additions and 4 deletions
+1 -1
View File
@@ -19,4 +19,4 @@ name: common
sources:
- https://github.com/truecharts/apps/tree/master/library/common
type: library
version: 5.1.0
version: 5.1.1
@@ -18,7 +18,7 @@ before chart installation.
{{- $hostPathMounts := dict -}}
{{- range $name, $mount := .Values.hostPathMounts -}}
{{- if and $mount.enabled $mount.setPermissions -}}
{{- $name = default $name $mount.name -}}
{{- $name = default ( $name| toString ) $mount.name -}}
{{- $_ := set $hostPathMounts $name $mount -}}
{{- end -}}
{{- end }}
@@ -72,7 +72,7 @@ Creates Volumes for hostPaths which can be directly mounted to a container
{{ if $hpm.name }}
{{ $name = $hpm.name }}
{{ end }}
- name: {{ printf "hostpathmounts-%s" $name }}
- name: hostpathmounts-{{ $name }}
{{- /* Always prefer an emptyDir next if that is set */}}
{{- $emptyDir := false -}}
{{- if $hpm.emptyDir -}}