2022-10-14 10:45:49 +00:00
|
|
|
{{- $nameSpace := include "appsmith.namespace" . -}}
|
2022-10-28 04:55:17 +00:00
|
|
|
{{- $name := include "appsmith.fullname" . -}}
|
2022-10-14 10:45:49 +00:00
|
|
|
{{- $mongoUser := .Values.mongodb.auth.rootUser -}}
|
|
|
|
|
{{- $mongoPassword := .Values.mongodb.auth.rootPassword -}}
|
|
|
|
|
{{- $mongoServicename := .Values.mongodb.service.nameOverride -}}
|
2023-07-31 09:25:57 +00:00
|
|
|
{{- $releaseName := .Release.Name -}}
|
2022-01-31 07:57:01 +00:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "appsmith.fullname" . }}
|
|
|
|
|
namespace: {{ include "appsmith.namespace" . }}
|
|
|
|
|
labels:
|
|
|
|
|
{{- include "appsmith.labels" . | nindent 4 }}
|
|
|
|
|
data:
|
|
|
|
|
{{- range $key, $value := .Values.applicationConfig }}
|
2022-10-14 10:45:49 +00:00
|
|
|
{{- if and (eq "APPSMITH_MONGODB_URI" $key) ( not $value) }}
|
|
|
|
|
{{- if $.Values.mongodb.enabled }}
|
|
|
|
|
{{ $key }}: mongodb+srv://{{ $mongoUser }}:{{ $mongoPassword }}@{{ $mongoServicename }}.{{ $nameSpace }}.svc.cluster.local/appsmith?retryWrites=true&authSource=admin&ssl=false
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
{{- if and (eq "APPSMITH_REDIS_URL" $key) ( not $value) }}
|
|
|
|
|
{{- if $.Values.redis.enabled }}
|
2023-07-31 09:25:57 +00:00
|
|
|
{{ $key }}: redis://{{ $releaseName }}-redis-master.{{ $nameSpace }}.svc.cluster.local:6379
|
2022-10-14 10:45:49 +00:00
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|
2022-01-31 07:57:01 +00:00
|
|
|
{{- if $value }}
|
2022-10-14 10:45:49 +00:00
|
|
|
{{ $key }}: {{ $value | quote }}
|
2022-01-31 07:57:01 +00:00
|
|
|
{{- end }}
|
|
|
|
|
{{- end }}
|