Skip to content

Commit

Permalink
Merge pull request #35 from gab-nando/main
Browse files Browse the repository at this point in the history
Add escape hatch for extra manifests + support for env vars from secrets
  • Loading branch information
anna-yn authored Jan 20, 2022
2 parents a67331e + e75f9d8 commit fb6411b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 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: 4.6.1
version: 4.7.0
maintainers:
- name: Retool Engineering
email: [email protected]
Expand Down
7 changes: 7 additions & 0 deletions templates/deployment_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- range .Values.environmentSecrets }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
name: {{ .secretKeyRef.name }}
key: {{ .secretKeyRef.key }}
{{- end }}
{{- if .Values.externalSecrets.enabled }}
envFrom:
- secretRef:
Expand Down
7 changes: 7 additions & 0 deletions templates/deployment_jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- range .Values.environmentSecrets }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
name: {{ .secretKeyRef.name }}
key: {{ .secretKeyRef.key }}
{{- end }}
{{- if .Values.externalSecrets.enabled }}
envFrom:
- secretRef:
Expand Down
4 changes: 4 additions & 0 deletions templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{- range .Values.extraManifests }}
---
{{ tpl (toYaml .) $ }}
{{- end }}
22 changes: 22 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ commandline:

env: {}

# Optionally specify additional environment variables to be populated from Kubernetes secrets.
# Useful for passing in SCIM_AUTH_TOKEN or other secret environment variables from Kubernetes secrets.
environmentSecrets: []
# - name: SCIM_AUTH_TOKEN
# secretKeyRef:
# name: retool-scim-auth-token
# key: auth-token
# - name: GITHUB_APP_PRIVATE_KEY
# secretKeyRef:
# name: retool-github-app-private-key
# key: private-key

# Support for external secrets https://github.com/godaddy/kubernetes-external-secrets
externalSecrets:
enabled: false
Expand Down Expand Up @@ -213,3 +225,13 @@ securityContext:
extraConfigMapMounts: []

initContainers: {}

extraManifests: []
# extraManifests:
# - apiVersion: cloud.google.com/v1beta1
# kind: BackendConfig
# metadata:
# name: "{{ .Release.Name }}-testing"
# spec:
# securityPolicy:
# name: "my-gcp-cloud-armor-policy"

0 comments on commit fb6411b

Please sign in to comment.