[incubator/schema-registry] improved fullname allowing overrides (#9922)

* [incubator/schema-registry] improved fullname allowing overrides

Signed-off-by: Fabrizio Fortino <fabrizio.fortino@gmail.com>

* bump chart version

Signed-off-by: Fabrizio Fortino <fabrizio.fortino@gmail.com>
This commit is contained in:
Fabrizio Fortino
2018-12-12 05:48:58 -08:00
committed by Kubernetes Prow Robot
parent 05659f3154
commit b7314f6205
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: schema-registry
home: https://docs.confluent.io/current/schema-registry/docs/index.html
version: 1.1.0
version: 1.1.1
appVersion: 5.0.1
keywords:
- confluent
@@ -9,11 +9,20 @@ Expand the name of the chart.
{{/*
Create a default fully qualified app name.
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 "schema-registry.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Form the Kafka URL. If Kafka is installed as part of this chart, use k8s service discovery,