_labels.tpl 586 B

123456789101112131415161718
  1. {{/* vim: set filetype=mustache: */}}
  2. {{/*
  3. Kubernetes standard labels
  4. */}}
  5. {{- define "common.labels.standard" -}}
  6. app.kubernetes.io/name: {{ include "common.names.name" . }}
  7. helm.sh/chart: {{ include "common.names.chart" . }}
  8. app.kubernetes.io/instance: {{ .Release.Name }}
  9. app.kubernetes.io/managed-by: {{ .Release.Service }}
  10. {{- end -}}
  11. {{/*
  12. Labels to use on deploy.spec.selector.matchLabels and svc.spec.selector
  13. */}}
  14. {{- define "common.labels.matchLabels" -}}
  15. app.kubernetes.io/name: {{ include "common.names.name" . }}
  16. app.kubernetes.io/instance: {{ .Release.Name }}
  17. {{- end -}}