diff --git a/src/templates/configmap.yaml b/src/templates/configmap.yaml index 5286ace..7af1ae2 100644 --- a/src/templates/configmap.yaml +++ b/src/templates/configmap.yaml @@ -66,13 +66,23 @@ data: {{- if .Values.enterprise.flinkK8sOperatorDeploymentManager.taskManagerReplicas }} taskManagerReplicas: {{ .Values.enterprise.flinkK8sOperatorDeploymentManager.taskManagerReplicas | quote }} {{- end }} - {{- if .Values.enterprise.flinkK8sOperatorDeploymentManager.nodeSelector }} + {{- if gt (len (default dict .Values.enterprise.flinkK8sOperatorDeploymentManager.nodeSelector)) 0 }} nodeSelector: { {{- range $key, $value := .Values.enterprise.flinkK8sOperatorDeploymentManager.nodeSelector }} {{ $key | quote }}: {{ $value | quote }} {{- end }} } {{- end }} + {{- if gt (len (default dict .Values.enterprise.flinkK8sOperatorDeploymentManager.additionalLibs)) 0 }} + additionalLibs: { + libsNames: {{ tpl ( mustToJson .Values.enterprise.flinkK8sOperatorDeploymentManager.additionalLibs.libsNames) . }} + imageName: {{ .Values.enterprise.flinkK8sOperatorDeploymentManager.additionalLibs.imageName | quote }} + libsPath: {{ .Values.enterprise.flinkK8sOperatorDeploymentManager.additionalLibs.libsPath | quote }} + {{- if hasKey .Values.enterprise.flinkK8sOperatorDeploymentManager.additionalLibs "imagePullSecrets" }} + imagePullSecrets: {{ .Values.enterprise.flinkK8sOperatorDeploymentManager.additionalLibs.imagePullSecrets | quote }} + {{- end }} + } + {{- end }} } {{- else if eq .Values.nussknacker.mode "ververica" }} deploymentConfig: { diff --git a/src/values.yaml b/src/values.yaml index 795bdaa..866ae1e 100644 --- a/src/values.yaml +++ b/src/values.yaml @@ -351,3 +351,4 @@ enterprise: mountPoint: /mnt/jobstates # pvcStorageClassName: default nodeSelector: { } + additionalLibs: { }