<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced support for PostgreSQL and OpenID Connect (OIDC) authentication in the Helm chart. - Introduced a new template for managing external secrets and a dedicated service for metrics. - Added Horizontal Pod Autoscaler (HPA) and Pod Disruption Budget (PDB) configurations. - New configuration options for custom Certificate Authority (CA) certificates. - **Improvements** - Updated application version and dependencies for better organization and readability. - Expanded configuration options for Redis, MongoDB, and PostgreSQL, allowing for improved customization. - Enhanced deployment configuration with dynamic scaling capabilities. - **Bug Fixes** - Improved error handling for configuration misalignments to prevent runtime issues. - **Documentation** - Updated README and values.yaml to reflect new configuration parameters and options. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- This is an auto-generated comment: Cypress test results --> > [!WARNING] > Tests have not run on the HEAD 0e76b6af34501ed646ea840af22786b33426c9fe yet > <hr>Tue, 31 Dec 2024 12:31:29 UTC <!-- end of auto-generated comment: Cypress test results -->
49 lines
2.1 KiB
YAML
49 lines
2.1 KiB
YAML
{{- $nameSpace := include "appsmith.namespace" . -}}
|
|
{{- $mongoUser := .Values.mongodb.auth.rootUser -}}
|
|
{{- $mongoPassword := .Values.mongodb.auth.rootPassword -}}
|
|
{{- $mongoServicename := .Values.mongodb.service.nameOverride -}}
|
|
{{- $postgresqlUser := .Values.postgresql.auth.username -}}
|
|
{{- $postgresqlPassword := .Values.postgresql.auth.password -}}
|
|
{{- $postgresqlDatabase := .Values.postgresql.auth.database -}}
|
|
{{- $releaseName := .Release.Name -}}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "appsmith.fullname" . }}
|
|
namespace: {{ include "appsmith.namespace" . }}
|
|
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_KEYCLOAK_DB_DRIVER" $key) ( not $value) }}
|
|
{{ $key }}: {{ $.Values.postgresql.enabled | ternary "postgresql" "h2" | quote }}
|
|
{{- end }}
|
|
|
|
{{- if and (eq "APPSMITH_KEYCLOAK_DB_URL" $key) ( not $value) }}
|
|
{{ $key }}: {{ $.Values.postgresql.enabled | ternary (printf "%s-postgresql.%s.svc.cluster.local:5432/%s" $releaseName $nameSpace $postgresqlDatabase) "${jboss.server.data.dir}" | quote }}
|
|
{{- end }}
|
|
|
|
{{- if and (eq "APPSMITH_KEYCLOAK_DB_USERNAME" $key) ( not $value) }}
|
|
{{ $key }}: {{ $.Values.postgresql.enabled | ternary $postgresqlUser "sa" | quote }}
|
|
{{- end }}
|
|
|
|
{{- if and (eq "APPSMITH_KEYCLOAK_DB_PASSWORD" $key) ( not $value) }}
|
|
{{ $key }}: {{ $.Values.postgresql.enabled | ternary $postgresqlPassword "sa" | quote }}
|
|
{{- end }}
|
|
|
|
{{- if and (eq "APPSMITH_REDIS_URL" $key) ( not $value) }}
|
|
{{- if $.Values.redis.enabled }}
|
|
{{ $key }}: redis://{{ $releaseName }}-redis-master.{{ $nameSpace }}.svc.cluster.local:6379
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- if $value }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|