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
…) (#4)

Cherry-pick 32ce187 from upstream main
  • Loading branch information
ChandonPierre authored Aug 13, 2024
2 parents 1db75b8 + a1811dc commit 303d4f4
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 @@ -79,7 +79,10 @@ spec:
value: {{ .Values.proxyConfig.firewallMode }}
{{- if .Values.proxyConfig.defaultProxyClass }}
- name: PROXY_DEFAULT_CLASS
{{- end }}
value: {{ .Values.proxyConfig.defaultProxyClass }}
{{- with .Values.operatorConfig.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: 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 303d4f4

Please sign in to comment.