Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/sentry] Fix _helper.tpl. Use new helm template (#8136)
Browse files Browse the repository at this point in the history
* Fix _helper.tpl

Signed-off-by: masahiro331 <m_fujimura@r.recruit.co.jp>

* Update Chart.yaml

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
  • Loading branch information
masahiro331 authored and k8s-ci-robot committed Oct 31, 2018
1 parent 2c00ce1 commit c5edaa9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/sentry/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v1
description: Sentry is a cross-platform crash reporting and aggregation platform.
name: sentry
version: 0.4.1
version: 0.5.0
appVersion: 9.0
keywords:
- debugging
Expand Down
9 changes: 9 additions & 0 deletions stable/sentry/templates/_helpers.tpl
Expand Up @@ -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 "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 default fully qualified app name.
Expand Down

0 comments on commit c5edaa9

Please sign in to comment.