Merge pull request #1000 from tompizmor/kafka_fullnameOverride

[bitnami/kafka] Add fullnameOverride to kafka chart
This commit is contained in:
Tomas Pizarro
2018-12-20 17:38:19 +01:00
committed by GitHub
2 changed files with 12 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
name: kafka
version: 1.2.3
version: 1.2.4
appVersion: 2.1.0
description: Apache Kafka is a distributed streaming platform.
keywords:

View File

@@ -8,11 +8,20 @@ Expand the name of the chart.
{{/*
Create a default fully qualified app name.
We truncate at 24 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "kafka.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 24 -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*