mirror of
https://github.com/helm/charts.git
synced 2026-08-21 13:28:13 +00:00
Update helper templates to those from current chartutil (#3510)
This commit is contained in:
committed by
k8s-ci-robot
parent
f839448f3a
commit
15643d6a60
+10
-10
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
Reference in New Issue
Block a user