Update helper templates to those from current chartutil (#3510)

This commit is contained in:
Reinhard Nägele
2018-02-01 00:32:09 -08:00
committed by k8s-ci-robot
parent f839448f3a
commit 15643d6a60
6 changed files with 30 additions and 14 deletions
+10 -10
View File
@@ -2,18 +2,18 @@ apiVersion: v1
description: An e-mail testing tool for developers
name: mailhog
appVersion: 1.0.0
version: 2.1.0
version: 2.2.0
keywords:
- mailhog
- mail
- smtp
- email
- e-mail
- testing
- mailhog
- mail
- smtp
- email
- e-mail
- testing
home: http://iankent.uk/project/mailhog/
icon: https://raw.githubusercontent.com/mailhog/MailHog-UI/master/assets/images/hog.png
sources:
- https://github.com/mailhog/MailHog
- https://github.com/mailhog/MailHog
maintainers:
- name: unguiculus
email: unguiculus@gmail.com
- name: unguiculus
email: unguiculus@gmail.com
+16
View File
@@ -9,11 +9,27 @@ 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 "mailhog.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 chart name and version as used by the chart label.
*/}}
{{- define "mailhog.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create the name for the auth secret.
+1 -1
View File
@@ -4,7 +4,7 @@ kind: Secret
metadata:
labels:
app: {{ template "mailhog.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
chart: {{ template "mailhog.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ template "mailhog.authFileSecret" . }}
+1 -1
View File
@@ -3,7 +3,7 @@ kind: Deployment
metadata:
labels:
app: {{ template "mailhog.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
chart: {{ template "mailhog.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ template "mailhog.fullname" . }}
+1 -1
View File
@@ -10,7 +10,7 @@ metadata:
{{- end }}
labels:
app: {{ template "mailhog.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
chart: {{ template "mailhog.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ $fullName }}
+1 -1
View File
@@ -7,7 +7,7 @@ metadata:
{{- end }}
labels:
app: {{ template "mailhog.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
chart: {{ template "mailhog.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ template "mailhog.fullname" . }}