diff --git a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml index 0c51f4a5f..5b108a68c 100644 --- a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml +++ b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml @@ -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 diff --git a/cmd/k8s-operator/deploy/chart/values.yaml b/cmd/k8s-operator/deploy/chart/values.yaml index c0d33acc9..4d7bbe22a 100644 --- a/cmd/k8s-operator/deploy/chart/values.yaml +++ b/cmd/k8s-operator/deploy/chart/values.yaml @@ -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