28 lines
701 B
YAML
28 lines
701 B
YAML
{{- if not .Values.configUrl }}
|
|
{{- with .Values.config }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "polaris.fullname" $ }}
|
|
{{- if $.Values.templateOnly }}
|
|
namespace: {{ $.Release.Namespace }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "polaris.labels" $ | nindent 4 }}
|
|
data:
|
|
config.yaml: |
|
|
{{- if kindIs "map" . }}
|
|
{{- range $key, $value := . }}
|
|
{{ $key }}:
|
|
{{- toYaml $value | nindent 6 }}
|
|
{{- if and (eq $key "exemptions") ($.Values.additionalExemptions) }}
|
|
{{- toYaml $.Values.additionalExemptions | nindent 6 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if kindIs "string" . }}
|
|
{{- . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|