Skip to content

Commit

Permalink
Merge pull request #5 from companyinfo/helmet-render-strings-values-a…
Browse files Browse the repository at this point in the history
…s-literal-values

Render a string as literal in configmap
  • Loading branch information
atkrad authored Jan 10, 2023
2 parents 00b828b + c04a118 commit 24c00c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/helmet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: helmet
description: Helmet is a library Helm Chart for grouping common logics. This chart is not deployable by itself.
home: https://github.com/companyinfo/helm-charts/blob/main/charts/helmet
type: library
version: "0.5.2"
appVersion: "0.5.2"
version: "0.6.0"
appVersion: "0.6.0"
keywords:
- common
- helper
Expand Down
2 changes: 1 addition & 1 deletion charts/helmet/templates/_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
{{- range $k, $v := .Values.configMap.data }}
{{- $configKey := (include "common.tplvalues.render" (dict "value" $k "context" $)) }}
{{- $configValue := (include "common.tplvalues.render" (dict "value" $v "context" $)) }}
{{- if typeIs "map[string]interface {}" $v }}
{{- if or (typeIs "map[string]interface {}" $v) (typeIs "string" $v) }}
{{ $configKey }}: |- {{ $configValue | nindent 4 }}
{{- else }}
{{ $configKey }}: {{ $configValue }}
Expand Down

0 comments on commit 24c00c9

Please sign in to comment.