github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/helm/test/mysql/charts/common/templates/_labels.tpl (about)

     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  {{/*
    13  Labels to use on deploy.spec.selector.matchLabels and svc.spec.selector
    14  */}}
    15  {{- define "common.labels.matchLabels" -}}
    16  app.kubernetes.io/name: {{ include "common.names.name" . }}
    17  app.kubernetes.io/instance: {{ .Release.Name }}
    18  {{- end -}}