* Add extra configMaps support to helm chart Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com> * Introducing unit tests for helm chart Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com> --------- Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
23 lines
548 B
YAML
23 lines
548 B
YAML
{{- if .Values.defaultBackend.enabled }}
|
|
{{- range .Values.defaultBackend.extraConfigMaps }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ .name }}
|
|
namespace: {{ include "ingress-nginx.namespace" $ | quote }}
|
|
labels:
|
|
{{- include "ingress-nginx.labels" $ | nindent 4 }}
|
|
{{- with $.Values.defaultBackend.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
data:
|
|
{{- with .data }}
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|