rancher-partner-charts/charts/citrix/citrix-ingress-controller/templates/configmap.yaml

75 lines
2.7 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "cicconfigmap.fullname" . }}
namespace: {{ .Release.Namespace }}
data:
LOGLEVEL: {{ .Values.logLevel | quote | lower }}
JSONLOG: {{ .Values.jsonLog | quote | lower }}
NS_PROTOCOL: {{ .Values.nsProtocol | quote | lower }}
NS_PORT: {{ .Values.nsPort | quote }}
{{- if .Values.nsSNIPS }}
NS_SNIPS: {{ .Values.nsSNIPS | toJson}}
{{- end }}
{{- if and .Values.analyticsConfig.required .Values.nsEnableLabel }}
NS_ENABLE_LABELS: {{ .Values.nsEnableLabel | quote}}
{{- end }}
{{- if .Values.podIPsforServiceGroupMembers }}
POD_IPS_FOR_SERVICEGROUP_MEMBERS: {{ .Values.podIPsforServiceGroupMembers | quote }}
{{- end }}
{{- if .Values.ignoreNodeExternalIP }}
IGNORE_NODE_EXTERNAL_IP: {{ .Values.ignoreNodeExternalIP | quote }}
{{- end }}
{{- if ne (upper .Values.nsHTTP2ServerSide) "OFF" }}
NS_HTTP2_SERVER_SIDE: {{ .Values.nsHTTP2ServerSide | quote }}
{{- end }}
{{- if ne (toString .Values.nsCookieVersion) "0" }}
NS_COOKIE_VERSION: {{ .Values.nsCookieVersion | quote }}
{{- end }}
{{- if .Values.nsDnsNameserver }}
NS_DNS_NAMESERVER: {{ .Values.nsDnsNameserver }}
{{- end }}
{{- if .Values.analyticsConfig.required }}
NS_ANALYTICS_CONFIG: |
distributed_tracing:
enable: {{ .Values.analyticsConfig.distributedTracing.enable | quote }}
samplingrate: {{ .Values.analyticsConfig.distributedTracing.samplingrate }}
endpoint:
server: {{ include "analytics.server" . | quote }}
service: {{ .Values.analyticsConfig.endpoint.service | quote }}
timeseries:
port: {{ .Values.analyticsConfig.timeseries.port }}
metrics:
enable: {{ .Values.analyticsConfig.timeseries.metrics.enable | quote }}
mode: {{ .Values.analyticsConfig.timeseries.metrics.mode | quote }}
auditlogs:
enable: {{ .Values.analyticsConfig.timeseries.auditlogs.enable | quote }}
events:
enable: {{ .Values.analyticsConfig.timeseries.events.enable | quote }}
transactions:
enable: {{ .Values.analyticsConfig.transactions.enable | quote }}
port: {{ .Values.analyticsConfig.transactions.port }}
{{- end }}
{{- if .Values.nsLbHashAlgo.required }}
NS_LB_HASH_ALGO: |
hashFingers: {{ .Values.nsLbHashAlgo.hashFingers }}
hashAlgorithm: {{ .Values.nsLbHashAlgo.hashAlgorithm | quote }}
{{- end }}
{{- if .Values.profileSslFrontend }}
FRONTEND_SSL_PROFILE: |
{{- toYaml .Values.profileSslFrontend | nindent 4 }}
{{- end }}
{{- if .Values.profileTcpFrontend }}
FRONTEND_TCP_PROFILE: |
{{- toYaml .Values.profileTcpFrontend | nindent 4 }}
{{- end }}
{{- if .Values.profileHttpFrontend }}
FRONTEND_HTTP_PROFILE: |
{{- toYaml .Values.profileHttpFrontend | nindent 4 }}
{{- end }}