Skip to content

Commit fb6411b

Browse files
authored
Merge pull request #35 from gab-nando/main
Add escape hatch for extra manifests + support for env vars from secrets
2 parents a67331e + e75f9d8 commit fb6411b

File tree

5 files changed

+41
-1
lines changed

5 files changed

+41
-1
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: retool
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 4.6.1
5+
version: 4.7.0
66
maintainers:
77
- name: Retool Engineering
88

templates/deployment_backend.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ spec:
132132
- name: "{{ $key }}"
133133
value: "{{ $value }}"
134134
{{- end }}
135+
{{- range .Values.environmentSecrets }}
136+
- name: {{ .name }}
137+
valueFrom:
138+
secretKeyRef:
139+
name: {{ .secretKeyRef.name }}
140+
key: {{ .secretKeyRef.key }}
141+
{{- end }}
135142
{{- if .Values.externalSecrets.enabled }}
136143
envFrom:
137144
- secretRef:

templates/deployment_jobs.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ spec:
133133
- name: "{{ $key }}"
134134
value: "{{ $value }}"
135135
{{- end }}
136+
{{- range .Values.environmentSecrets }}
137+
- name: {{ .name }}
138+
valueFrom:
139+
secretKeyRef:
140+
name: {{ .secretKeyRef.name }}
141+
key: {{ .secretKeyRef.key }}
142+
{{- end }}
136143
{{- if .Values.externalSecrets.enabled }}
137144
envFrom:
138145
- secretRef:

templates/extra-manifests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{{- range .Values.extraManifests }}
2+
---
3+
{{ tpl (toYaml .) $ }}
4+
{{- end }}

values.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ commandline:
5151

5252
env: {}
5353

54+
# Optionally specify additional environment variables to be populated from Kubernetes secrets.
55+
# Useful for passing in SCIM_AUTH_TOKEN or other secret environment variables from Kubernetes secrets.
56+
environmentSecrets: []
57+
# - name: SCIM_AUTH_TOKEN
58+
# secretKeyRef:
59+
# name: retool-scim-auth-token
60+
# key: auth-token
61+
# - name: GITHUB_APP_PRIVATE_KEY
62+
# secretKeyRef:
63+
# name: retool-github-app-private-key
64+
# key: private-key
65+
5466
# Support for external secrets https://github.com/godaddy/kubernetes-external-secrets
5567
externalSecrets:
5668
enabled: false
@@ -213,3 +225,13 @@ securityContext:
213225
extraConfigMapMounts: []
214226

215227
initContainers: {}
228+
229+
extraManifests: []
230+
# extraManifests:
231+
# - apiVersion: cloud.google.com/v1beta1
232+
# kind: BackendConfig
233+
# metadata:
234+
# name: "{{ .Release.Name }}-testing"
235+
# spec:
236+
# securityPolicy:
237+
# name: "my-gcp-cloud-armor-policy"

0 commit comments

Comments
 (0)