mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
* [bitnami/flink] Fix pullSecrets and extraVolumeMounts Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Use correct naming for helper Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> * Fix helper Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> --------- Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
57 lines
1.7 KiB
Smarty
57 lines
1.7 KiB
Smarty
{{/*
|
|
Copyright VMware, Inc.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
{{/* vim: set filetype=mustache: */}}
|
|
|
|
{{/*
|
|
Return the proper flink image name
|
|
*/}}
|
|
{{- define "flink.image" -}}
|
|
{{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) }}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper Docker Image Registry Secret Names
|
|
*/}}
|
|
{{- define "flink.imagePullSecrets" -}}
|
|
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image) "global" .Values.global) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Create the name of the jobmanager deployment
|
|
*/}}
|
|
{{- define "flink.jobmanager.fullname" -}}
|
|
{{ printf "%s-jobmanager" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Create the name of the taskmanager deployment
|
|
*/}}
|
|
{{- define "flink.taskmanager.fullname" -}}
|
|
{{ printf "%s-taskmanager" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Create the name of the service account to use for the taskmanager
|
|
*/}}
|
|
{{- define "flink.taskmanager.serviceAccountName" -}}
|
|
{{- if .Values.taskmanager.serviceAccount.create -}}
|
|
{{ default (include "flink.taskmanager.fullname" .) .Values.taskmanager.serviceAccount.name }}
|
|
{{- else -}}
|
|
{{ default "default" .Values.taskmanager.serviceAccount.name }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Create the name of the service account to use for the jobmanager
|
|
*/}}
|
|
{{- define "flink.jobmanager.serviceAccountName" -}}
|
|
{{- if .Values.jobmanager.serviceAccount.create -}}
|
|
{{ default (include "flink.jobmanager.fullname" .) .Values.jobmanager.serviceAccount.name }}
|
|
{{- else -}}
|
|
{{ default "default" .Values.jobmanager.serviceAccount.name }}
|
|
{{- end -}}
|
|
{{- end -}}
|