softplayer-helm-lib/charts/workload/templates/metadata/_base.tpl

18 lines
379 B
Smarty
Raw Normal View History

2024-05-13 15:20:21 +00:00
{{- define "lib.metadata" }}
metadata:
2024-05-19 16:56:41 +00:00
{{- if .customName }}
2024-05-13 15:20:21 +00:00
name: {{ .customName }}
{{- else }}
name: {{ include "chart.fullname" .Context }}
{{- end }}
labels:
{{ include "metadata.labels" .Context | indent 4 }}
2024-07-15 05:21:43 +00:00
{{- if .annotations }}
annotations:
{{ .annotations | toYaml | indent 4 }}
{{- end }}
2024-05-13 15:20:21 +00:00
{{- end }}
{{- define "metadata.customName" -}}
{{- end -}}