Skip to content

Commit

Permalink
[NU-1904] Handle additional libs for flink operator (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-bigorajski authored Jan 17, 2025
1 parent 4604a66 commit 606663e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions src/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,3 +351,4 @@ enterprise:
mountPoint: /mnt/jobstates
# pvcStorageClassName: default
nodeSelector: { }
additionalLibs: { }

0 comments on commit 606663e

Please sign in to comment.