Skip to content

Commit

Permalink
helm: Add part-of and component labels
Browse files Browse the repository at this point in the history
They're recommended by Kubernetes, so let's add them. See:
https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/

Signed-off-by: Anna Kapuscinska <[email protected]>
  • Loading branch information
lambdanis committed Oct 29, 2024
1 parent fefd867 commit 3da7dc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/kubernetes/tetragon/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ Common labels
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: {{ .Chart.Name }}
{{- end }}

{{- define "tetragon.labels" -}}
{{ include "tetragon.selectorLabels" . }}
{{ include "commonLabels" . }}
app.kubernetes.io/component: agent
{{- end }}
{{- define "tetragon-operator.labels" -}}
{{ include "tetragon-operator.selectorLabels" . }}
{{ include "commonLabels" . }}
app.kubernetes.io/component: operator
{{- end }}
{{- define "tetragon-rthooks.labels" -}}
{{ include "tetragon-rthooks.selectorLabels" . }}
{{ include "commonLabels" . }}
app.kubernetes.io/component: rthooks
{{- end }}

{{/*
Expand Down

0 comments on commit 3da7dc2

Please sign in to comment.