mirror of
https://github.com/bitnami/charts.git
synced 2026-03-13 14:57:24 +08:00
47 lines
1.2 KiB
Smarty
47 lines
1.2 KiB
Smarty
{{/*
|
|
Copyright Broadcom, Inc. All Rights Reserved.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
{{/* vim: set filetype=mustache: */}}
|
|
|
|
|
|
{{/*
|
|
Return the proper fluent-bit image name
|
|
*/}}
|
|
{{- define "fluent-bit.image" -}}
|
|
{{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) }}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Create the name of the deployment
|
|
*/}}
|
|
{{- define "fluent-bit.fullname" -}}
|
|
{{ printf "%s" (include "common.names.fullname" .) }}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Create the name of the service account to use
|
|
*/}}
|
|
{{- define "fluent-bit.serviceAccountName" -}}
|
|
{{- if .Values.serviceAccount.create -}}
|
|
{{ default (include "fluent-bit.fullname" .) .Values.serviceAccount.name }}
|
|
{{- else -}}
|
|
{{ default "default" .Values.serviceAccount.name }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Return the proper Docker Image Registry Secret Names
|
|
*/}}
|
|
{{- define "fluent-bit.imagePullSecrets" -}}
|
|
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.image) "context" $) -}}
|
|
{{- end -}}
|
|
|
|
{{/*
|
|
Name the configuration configmap
|
|
*/}}
|
|
{{- define "fluent-bit.configuration.configMap" -}}
|
|
{{- printf "%s-config" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" -}}
|
|
{{- end -}}
|