chore: Support APPSMITH_DB_URL in Helm chart (#33656)

If the `APPSMITH_MONGODB_URI` is not set, we set it to a constructed
service URL value. This PR adds the same feature to new
`APPSMITH_DB_URL` env variable as well.

⚠️ This will cause conflicts on sync. DO NOT MERGE unless the author is
available.

/test sanity

---------

Co-authored-by: Goutham Pratapa <goutham@appsmith.com>
This commit is contained in:
Shrikant Sharat Kandula 2024-05-28 19:40:36 +05:30 committed by GitHub
parent 963b425208
commit 3fd1d52990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ sources:
- https://github.com/appsmithorg/appsmith
home: https://www.appsmith.com/
icon: https://assets.appsmith.com/appsmith-icon.png
version: 2.0.7
version: 2.1.0
dependencies:
- condition: redis.enabled
name: redis

View File

@ -12,12 +12,12 @@ metadata:
labels:
{{- include "appsmith.labels" . | nindent 4 }}
data:
{{- if and $.Values.mongodb.enabled (not .Values.applicationConfig.APPSMITH_MONGODB_URI) (not .Values.applicationConfig.APPSMITH_DB_URL) }}
APPSMITH_DB_URL: |
mongodb+srv://{{ $mongoUser }}:{{ $mongoPassword }}@{{ $mongoServicename }}.{{ $nameSpace }}.svc.cluster.local/appsmith?retryWrites=true&authSource=admin&ssl=false
{{- end }}
{{- range $key, $value := .Values.applicationConfig }}
{{- 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 }}
{{ $key }}: redis://{{ $releaseName }}-redis-master.{{ $nameSpace }}.svc.cluster.local:6379

View File

@ -305,7 +305,7 @@ applicationConfig:
APPSMITH_RECAPTCHA_SITE_KEY: ""
APPSMITH_RECAPTCHA_SECRET_KEY: ""
APPSMITH_RECAPTCHA_ENABLED: ""
APPSMITH_MONGODB_URI: ""
APPSMITH_DB_URL: ""
APPSMITH_REDIS_URL: ""
APPSMITH_ENCRYPTION_PASSWORD: ""
APPSMITH_ENCRYPTION_SALT: ""