Skip to content

Commit 14ded7e

Browse files
suez1224gyfora
authored andcommitted
[FLINK-36686] add operatorPod.webhook.container.env in helm chart to allow customizating of flink-webhook container envs
1 parent acc04da commit 14ded7e

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

docs/content/docs/operations/helm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ The configurable parameters of the Helm chart and which default values as detail
8989
| operatorPod.topologySpreadConstraints | Custom topologySpreadConstraints to be added to the operator pod. | |
9090
| operatorPod.resources | Custom resources block to be added to the operator pod on main container. | |
9191
| operatorPod.webhook.resources | Custom resources block to be added to the operator pod on flink-webhook container. | |
92+
| operatorPod.webhook.container.env | Custom env to be added to the flink-webhook container | |
9293
| operatorPod.tolerations | Custom tolerations to be added to the operator pod. | |
9394
| operatorServiceAccount.create | Whether to enable operator service account to create for flink-kubernetes-operator. | true |
9495
| operatorServiceAccount.annotations | The annotations of operator service account. | |

helm/flink-kubernetes-operator/templates/flink-operator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ spec:
207207
valueFrom:
208208
fieldRef:
209209
fieldPath: metadata.namespace
210+
{{- with .Values.operatorPod.webhook.container.env }}
211+
{{- toYaml . | nindent 12 }}
212+
{{- end }}
210213
resources:
211214
{{- toYaml .Values.operatorPod.webhook.resources | nindent 12 }}
212215
securityContext:

helm/flink-kubernetes-operator/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ operatorPod:
6262
priorityClassName: null
6363
annotations: {}
6464
labels: {}
65+
# The env variables only apply to the operator container in the operator pod
66+
# TODO: consider making this pod level env variables
6567
env:
6668
# - name: ""
6769
# value: ""
@@ -96,6 +98,10 @@ operatorPod:
9698
# memory: "512Mi"
9799
webhook:
98100
resources: {}
101+
container:
102+
env:
103+
# - name: ""
104+
# value: ""
99105

100106
operatorServiceAccount:
101107
create: true

0 commit comments

Comments
 (0)