Skip to content

Commit

Permalink
Merge pull request #87 from port-labs/PORT-6495-add-support-for-custo…
Browse files Browse the repository at this point in the history
…m-labels-for-k-8-s-exporter-deployment-and-pod

Added support for custom extra labels
  • Loading branch information
MatanHeledPort authored Feb 12, 2024
2 parents 5067689 + 458a5fa commit 5ddee88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/port-k8s-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: port-k8s-exporter
description: A Helm chart for Port Kubernetes Exporter
type: application
version: 0.2.15
version: 0.2.16
appVersion: "0.2.12"
home: https://getport.io/
sources:
Expand Down
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 5ddee88

Please sign in to comment.