A lot of work on the workload library
This commit is contained in:
13
charts/crds/templates/metadata/_base.tpl
Normal file
13
charts/crds/templates/metadata/_base.tpl
Normal file
@ -0,0 +1,13 @@
|
||||
{{- define "lib.metadata" }}
|
||||
metadata:
|
||||
{{- if .customName }}
|
||||
name: {{ .customName }}
|
||||
{{- else }}
|
||||
name: {{ include "chart.fullname" .Context }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{ include "metadata.labels" .Context | indent 4 }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "metadata.customName" -}}
|
||||
{{- end -}}
|
20
charts/crds/templates/metadata/_labels.tpl
Normal file
20
charts/crds/templates/metadata/_labels.tpl
Normal file
@ -0,0 +1,20 @@
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "metadata.labels" -}}
|
||||
helm.sh/chart: {{ include "chart.chart" . }}
|
||||
{{ include "chart.selectorLabels" . }}
|
||||
{{- if .Chart.AppVersion }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
*/}}
|
||||
{{- define "metadata.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "chart.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user