This is an automated email from the ASF dual-hosted git repository.
gyfora 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 def69e4e [FLINK-28554] Add subPaths for conf files to allow
readOnlyRootFilesystem operation
def69e4e is described below
commit def69e4e11bd95ee6cff813deb962afa70282e11
Author: Tim <[email protected]>
AuthorDate: Wed Aug 24 09:35:36 2022 +0200
[FLINK-28554] Add subPaths for conf files to allow readOnlyRootFilesystem
operation
---
.../templates/flink-operator.yaml | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/helm/flink-kubernetes-operator/templates/flink-operator.yaml
b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
index ff8b8c9b..2f4fc51c 100644
--- a/helm/flink-kubernetes-operator/templates/flink-operator.yaml
+++ b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
@@ -91,7 +91,14 @@ spec:
{{- toYaml .Values.operatorSecurityContext | nindent 12 }}
volumeMounts:
- name: flink-operator-config-volume
- mountPath: /opt/flink/conf
+ mountPath: /opt/flink/conf/flink-conf.yaml
+ subPath: flink-conf.yaml
+ - name: flink-operator-config-volume
+ mountPath: /opt/flink/conf/log4j-operator.properties
+ subPath: log4j-operator.properties
+ - name: flink-operator-config-volume
+ mountPath: /opt/flink/conf/log4j-console.properties
+ subPath: log4j-console.properties
{{- if .Values.operatorVolumeMounts.create }}
{{- toYaml .Values.operatorVolumeMounts.data | nindent 12 }}
{{- end }}
@@ -149,7 +156,14 @@ spec:
mountPath: "/certs"
readOnly: true
- name: flink-operator-config-volume
- mountPath: /opt/flink/conf
+ mountPath: /opt/flink/conf/flink-conf.yaml
+ subPath: flink-conf.yaml
+ - name: flink-operator-config-volume
+ mountPath: /opt/flink/conf/log4j-operator.properties
+ subPath: log4j-operator.properties
+ - name: flink-operator-config-volume
+ mountPath: /opt/flink/conf/log4j-console.properties
+ subPath: log4j-console.properties
{{- end }}
volumes:
- name: flink-operator-config-volume