Created
April 17, 2019 07:49
-
-
Save madsonic/d80cc77dee780d7991aa3b48dabf04ef to your computer and use it in GitHub Desktop.
helm stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- /* | |
The standard labels are frequently used in metadata. | |
*/ -}} | |
{{- define "yourchart.labels.standard" -}} | |
app.kubernetes.io/instance: {{ .Release.Name | quote }} | |
app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | |
helm.sh/chart: {{ include "yourchart.chart" . }} | |
helm.sh/appVersion: {{ .Chart.AppVersion | quote }} | |
helm.sh/chartVersion: {{ .Chart.Version | quote }} | |
helm.sh/revision: {{ .Chart.Revision | quote }} | |
{{- end -}} | |
# to include it in your template, adjusting for whitespace accordingly | |
{{- include "yourchart.labels.standard" . | nindent 4 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment