Skip to content

Commit

Permalink
Add extra environment variables in deployment template (tailscale#12858)
Browse files Browse the repository at this point in the history
Fixes tailscale#12857

Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
  • Loading branch information
jaxxstorm authored Jul 19, 2024
1 parent 0f57b93 commit 32ce187
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/k8s-operator/deploy/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ spec:
value: "{{ .Values.apiServerProxyConfig.mode }}"
- name: PROXY_FIREWALL_MODE
value: {{ .Values.proxyConfig.firewallMode }}
{{- with .Values.operatorConfig.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: oauth
mountPath: /oauth
Expand Down
7 changes: 7 additions & 0 deletions cmd/k8s-operator/deploy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ operatorConfig:

securityContext: {}

extraEnv: []
# - name: EXTRA_VAR1
# value: "value1"
# - name: EXTRA_VAR2
# value: "value2"


# proxyConfig contains configuraton that will be applied to any ingress/egress
# proxies created by the operator.
# https://tailscale.com/kb/1236/kubernetes-operator/#cluster-ingress
Expand Down

0 comments on commit 32ce187

Please sign in to comment.