Skip to content

Commit

Permalink
[prometheus-cloudwatch-exporter] Allow user-defined matchLabels for d…
Browse files Browse the repository at this point in the history
…eployment and servicemonitor in prometheus-cloudwatch-exporter (prometheus-community#406)

* [prometheus-cloudwatch-exporter] Add conditional pod labels to deployment

Signed-off-by: Pawel Dudziński <[email protected]>
  • Loading branch information
paweldudzinski authored Nov 24, 2020
1 parent 021fa0e commit 3a636ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-cloudwatch-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.8.0"
description: A Helm chart for prometheus cloudwatch-exporter
name: prometheus-cloudwatch-exporter
version: 0.11.0
version: 0.12.0
home: https://github.com/prometheus/cloudwatch_exporter
sources:
- https://github.com/prometheus/cloudwatch_exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
labels:
app: {{ template "prometheus-cloudwatch-exporter.name" . }}
release: {{ .Release.Name }}
{{- if .Values.pod.labels }}
{{ toYaml .Values.pod.labels | indent 8 }}
{{- end }}
annotations:
{{ if .Values.aws.role}}iam.amazonaws.com/role: {{ .Values.aws.role }}{{ end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-cloudwatch-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ service:
annotations: {}
labels: {}

pod:
labels: {}

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit 3a636ac

Please sign in to comment.