Skip to content

Commit

Permalink
Added support for custom extra labels
Browse files Browse the repository at this point in the history
  • Loading branch information
MatanHeledPort committed Feb 12, 2024
1 parent 5067689 commit c65d67b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/port-k8s-exporter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "port-k8s-exporter.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $value := .Values.extraLabels }}
{{$key}}: {{ $value }}
{{- end }}
{{- end }}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions charts/port-k8s-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ verbosity: 0
createDefaultResources: true
overwriteConfigurationOnRestart: false

extraLabels: {}
# port: true

image:
repository: ghcr.io/port-labs/port-k8s-exporter
pullPolicy: IfNotPresent
Expand Down

0 comments on commit c65d67b

Please sign in to comment.