Skip to content

Commit

Permalink
fix volume and mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Mar 12, 2019
1 parent 1359f98 commit 65dd1cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/nodelocaldns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: nodelocaldns
version: 0.1.4
version: 0.1.5
appVersion: 1.15.0
description: Nodelocal DNS Cache
keywords:
Expand Down
4 changes: 2 additions & 2 deletions charts/nodelocaldns/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Volumes template block for deployable resources
{{- $root := . -}}
{{- range $name, $config := $root.Values.configMaps -}}
{{- if $config.enabled }}
{{- if not ( empty $config.files ) }}
{{- if or ( not ( empty $config.files )) ( not (empty $config.templates )) }}
- name: config-{{ $name }}-files
configMap:
name: {{ include "nodelocaldns.files.fullname" (list $root $name) }}
Expand All @@ -107,7 +107,7 @@ VolumeMounts template block for deployable resources
{{- define "nodelocaldns.files.volumeMounts" -}}
{{- range $name, $config := .Values.configMaps -}}
{{- if $config.enabled }}
{{- if not ( empty $config.files ) }}
{{- if or (not ( empty $config.files )) (not ( empty $config.templates )) }}
- mountPath: {{ default (printf "/%s" $name) $config.mountPath }}
name: config-{{ $name }}-files
{{- end }}
Expand Down

0 comments on commit 65dd1cb

Please sign in to comment.