[stable/heapster] Fix stable heapster fullname (#13711)

* [stable/heapster] fix how to define fullname

This follows the default _helpers.tpl by `helm create NAME`

Signed-off-by: Shoichi Kaji <skaji@cpan.org>

* [stable/heapster] 0.3.3 -> 0.3.4

Signed-off-by: Shoichi Kaji <skaji@cpan.org>

* [stable/heapster] This will be a breaking change so we should up it by a major version

Signed-off-by: Shoichi Kaji <skaji@cpan.org>
This commit is contained in:
Shoichi Kaji
2019-06-26 23:49:45 -07:00
committed by Kubernetes Prow Robot
parent f4ddff0e1a
commit eec62bb533
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Heapster enables Container Cluster Monitoring and Performance Analysis.
name: heapster
version: 0.3.3
version: 1.0.0
appVersion: 1.5.2
home: https://github.com/kubernetes/heapster
sources:
+9
View File
@@ -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 "heapster.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 -}}
{{/*
Create a service name that defaults to app name.