Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/retool/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: retool
description: A Helm chart for Kubernetes
type: application
version: 6.8.6
version: 6.8.7
maintainers:
- name: Retool Engineering
email: engineering+helm@retool.com
Expand Down
4 changes: 4 additions & 0 deletions charts/retool/templates/_workers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ spec:
{{- end }}
- name: WORKFLOW_BACKEND_HOST
value: http://{{ include "retool.workflowBackend.name" $ }}
{{- if $.Values.config.auth.google.enabled }}
- name: CLIENT_ID
value: {{ default "" $.Values.config.auth.google.clientId }}
{{- end }}
- name: COOKIE_INSECURE
value: {{ $.Values.config.useInsecureCookies | quote }}
- name: POSTGRES_HOST
Expand Down Expand Up @@ -251,6 +253,7 @@ spec:
key: postgresql-password
{{- end }}
{{- end }}
{{- if $.Values.config.auth.google.enabled }}
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
Expand All @@ -262,6 +265,7 @@ spec:
key: google-client-secret
{{- end }}
{{- end }}
{{- end }}
{{- range $key, $value := $.Values.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/retool/templates/deployment_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ spec:
- name: DISABLE_JAVA_DBCONNECTOR
value: "true"
{{ end }}
{{- if .Values.config.auth.google.enabled }}
- name: CLIENT_ID
value: {{ default "" .Values.config.auth.google.clientId }}
{{- end }}
- name: COOKIE_INSECURE
value: {{ .Values.config.useInsecureCookies | quote }}
- name: POSTGRES_HOST
Expand Down Expand Up @@ -231,6 +233,7 @@ spec:
key: postgresql-password
{{- end }}
{{- end }}
{{- if .Values.config.auth.google.enabled }}
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
Expand All @@ -242,6 +245,7 @@ spec:
key: google-client-secret
{{- end }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/retool/templates/deployment_dbconnector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ spec:
value: "true"
- name: WORKFLOW_BACKEND_HOST
value: http://{{ template "retool.fullname" . }}-workflow-backend
{{- if .Values.config.auth.google.enabled }}
- name: CLIENT_ID
value: {{ default "" .Values.config.auth.google.clientId }}
{{- end }}
- name: COOKIE_INSECURE
value: {{ .Values.config.useInsecureCookies | quote }}

Expand Down Expand Up @@ -150,6 +152,7 @@ spec:
key: postgresql-password
{{- end }}
{{- end }}
{{- if .Values.config.auth.google.enabled }}
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
Expand All @@ -161,6 +164,7 @@ spec:
key: google-client-secret
{{- end }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/retool/templates/deployment_jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ spec:
value: production
- name: SERVICE_TYPE
value: JOBS_RUNNER
{{- if .Values.config.auth.google.enabled }}
- name: CLIENT_ID
value: {{ default "" .Values.config.auth.google.clientId }}
{{- end }}
- name: COOKIE_INSECURE
value: {{ .Values.config.useInsecureCookies | quote }}
- name: POSTGRES_HOST
Expand Down Expand Up @@ -137,6 +139,7 @@ spec:
key: postgresql-password
{{- end }}
{{- end }}
{{- if .Values.config.auth.google.enabled }}
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
Expand All @@ -148,6 +151,7 @@ spec:
key: google-client-secret
{{- end }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/retool/templates/deployment_workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ spec:

{{- include "retool.telemetry.includeEnvVars" . | nindent 10 }}

{{- if .Values.config.auth.google.enabled }}
- name: CLIENT_ID
value: {{ default "" .Values.config.auth.google.clientId }}
{{- end }}
- name: COOKIE_INSECURE
value: {{ .Values.config.useInsecureCookies | quote }}
- name: POSTGRES_HOST
Expand Down Expand Up @@ -212,6 +214,7 @@ spec:
key: postgresql-password
{{- end }}
{{- end }}
{{- if .Values.config.auth.google.enabled }}
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
Expand All @@ -223,6 +226,7 @@ spec:
key: google-client-secret
{{- end }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
Expand Down
2 changes: 2 additions & 0 deletions charts/retool/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ config:
postgresPoolMaxSize: 10
auth:
google:
# whether to populate CLIENT_ID and CLIENT_SECRET env vars (default: true for backwards compatibility)
enabled: true
clientId:
clientSecret:
# clientSecretSecretName is the name of the secret where the google client secret is stored (can be used instead of clientSecret)
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ config:
postgresPoolMaxSize: 10
auth:
google:
# whether to populate CLIENT_ID and CLIENT_SECRET env vars (default: true for backwards compatibility)
enabled: true
clientId:
clientSecret:
# clientSecretSecretName is the name of the secret where the google client secret is stored (can be used instead of clientSecret)
Expand Down
Loading