Skip to content

Commit

Permalink
use common labels (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
matas-cast authored Apr 3, 2024
1 parent dc9da41 commit 4380d82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/kvisor/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,19 @@ Create chart name and version as used by the chart label.
{{/*
Common labels
*/}}

{{- define "kvisor.labels" -}}
helm.sh/chart: {{ include "kvisor.chart" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $value := .Values.commonLabels }}
{{$key}}: {{$value}}
{{- end }}
{{- end }}


{{/*
Common helpers for runtime agent.
*/}}
Expand Down
3 changes: 3 additions & 0 deletions charts/kvisor/values-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ image:
repository: localhost:5000/kvisor
tag: latest

commonLabels:
team: sec

agent:
enabled: true
extraArgs:
Expand Down

0 comments on commit 4380d82

Please sign in to comment.