This is an automated email from the ASF dual-hosted git repository.
mbalassi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 7047b968 [FLINK-29302] Add helm chart support for setting dns policy
and config
7047b968 is described below
commit 7047b9682ef087addc99ee9ebef3ae01382e599d
Author: Joao Ubaldo <[email protected]>
AuthorDate: Sat Sep 17 18:14:14 2022 +0100
[FLINK-29302] Add helm chart support for setting dns policy and config
---
docs/content/docs/operations/helm.md | 2 ++
helm/flink-kubernetes-operator/templates/flink-operator.yaml | 9 +++++++++
helm/flink-kubernetes-operator/values.yaml | 3 +++
3 files changed, 14 insertions(+)
diff --git a/docs/content/docs/operations/helm.md
b/docs/content/docs/operations/helm.md
index 05d1ccf4..58b83ae8 100644
--- a/docs/content/docs/operations/helm.md
+++ b/docs/content/docs/operations/helm.md
@@ -68,6 +68,8 @@ The configurable parameters of the Helm chart and which
default values as detail
| operatorPod.annotations | Custom annotations to be added to the operator pod
(but not the deployment). | |
| operatorPod.labels | Custom labels to be added to the operator pod (but not
the deployment). | |
| operatorPod.env | Custom env to be added to the operator pod. | |
+| operatorPod.dnsPolicy | DNS policy to be used by the operator pod. | |
+| operatorPod.dnsConfig | DNS configuration to be used by the operator pod. | |
| operatorServiceAccount.create | Whether to enable operator service account
to create for flink-kubernetes-operator. | true |
| operatorServiceAccount.annotations | The annotations of operator service
account. | |
| operatorServiceAccount.name | The name of operator service account. |
flink-operator |
diff --git a/helm/flink-kubernetes-operator/templates/flink-operator.yaml
b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
index 8232a150..4df066fa 100644
--- a/helm/flink-kubernetes-operator/templates/flink-operator.yaml
+++ b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
@@ -165,6 +165,15 @@ spec:
mountPath: /opt/flink/conf/log4j-console.properties
subPath: log4j-console.properties
{{- end }}
+ {{- if index (.Values.operatorPod) "dnsPolicy" }}
+ dnsPolicy: {{ .Values.operatorPod.dnsPolicy | quote }}
+ {{- end }}
+ {{- if index (.Values.operatorPod) "dnsConfig" }}
+ dnsConfig:
+ {{- with .Values.operatorPod.dnsConfig }}
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ {{- end }}
volumes:
- name: flink-operator-config-volume
configMap:
diff --git a/helm/flink-kubernetes-operator/values.yaml
b/helm/flink-kubernetes-operator/values.yaml
index 68ae5405..0193d1e3 100644
--- a/helm/flink-kubernetes-operator/values.yaml
+++ b/helm/flink-kubernetes-operator/values.yaml
@@ -55,6 +55,9 @@ operatorPod:
env:
# - name: ""
# value: ""
+ # dnsPolicy: ""
+ # dnsConfig: {}
+
operatorServiceAccount:
create: true