Files
charts/bitnami/nginx-ingress-controller/templates/controller-configmap.yaml
T
2024-04-25 12:44:38 +02:00

30 lines
1.3 KiB
YAML

{{- /*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: controller
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
data:
allow-snippet-annotations: {{ .Values.allowSnippetAnnotations | quote }}
{{- if .Values.addHeaders }}
add-headers: {{ include "common.names.namespace" . }}/{{ printf "%s-custom-add-headers" (include "common.names.fullname" .) }}
{{- end }}
{{- if or .Values.proxySetHeaders .Values.headers }}
proxy-set-headers: {{ include "common.names.namespace" . }}/{{ printf "%s-custom-proxy-headers" (include "common.names.fullname" .) }}
{{- end }}
{{- if .Values.dhParam }}
ssl-dh-param: {{ include "common.names.namespace" . }}/{{ printf "%s" (include "common.names.fullname" .) }}
{{- end }}
{{- if .Values.config }}
{{- include "common.tplvalues.render" (dict "value" .Values.config "context" $) | nindent 2 }}
{{- end }}