Fix hostPathMounts and add install test (#527)
* Fix hostPathMounts and add install test * whoops fix
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user