Skip to content
Snippets Groups Projects
Commit 9440d78f authored by Andri Joos's avatar Andri Joos :blush:
Browse files

Merge branch 'configmap'

parents f77bb704 eceb696c
No related branches found
No related tags found
No related merge requests found
Pipeline #7715 passed with stages
in 33 seconds
{{- define "common.configmap" -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.name | default "configmap" | quote }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "common.variables.labels" . | nindent 4 }}
data:
{{- (include "common.variables.configmap.data" .) | nindent 2 }}
---
{{- end }}
...@@ -59,3 +59,14 @@ Secret data ...@@ -59,3 +59,14 @@ Secret data
{{- end }} {{- end }}
{{- toYaml $data -}} {{- toYaml $data -}}
{{- end }} {{- end }}
{{/*
ConfigMap data
*/}}
{{- define "common.variables.configmap.data" -}}
{{- $data := dict -}}
{{- range $key, $value := .Values.data -}}
{{- $data = merge $data (dict $key $value) -}}
{{- end }}
{{- toYaml $data -}}
{{- end }}
{{- if .Values.configmap }}
{{ include "common.configmap" (dict "Values" .Values.configmap "Chart" .Chart "Release" .Release) }}
{{- end }}
...@@ -71,3 +71,8 @@ acme: ...@@ -71,3 +71,8 @@ acme:
- http01: - http01:
ingress: ingress:
class: traefik class: traefik
configmap:
name: configmap
data:
example: test
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment