Skip to content

Commit

Permalink
[prometheus-cloudwatch-exporter] Add labels to deployment resource (#…
Browse files Browse the repository at this point in the history
…3001)

* [prometheus-cloudwatch-exporter] Update deployment resource

* Add support for labels and annotations in deployment resource

Signed-off-by: zeritti <[email protected]>

* [prometheus-cloudwatch-exporter] Bump minor version number

Signed-off-by: zeritti <[email protected]>

---------

Signed-off-by: zeritti <[email protected]>
Co-authored-by: MH <[email protected]>
  • Loading branch information
zeritti and zanhsieh authored Feb 10, 2023
1 parent e7dc515 commit fcee88c
Show file tree
Hide file tree
Showing 3 changed files with 13 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.15.1"
description: A Helm chart for prometheus cloudwatch-exporter
name: prometheus-cloudwatch-exporter
version: 0.23.0
version: 0.24.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 @@ -8,6 +8,13 @@ metadata:
chart: {{ template "prometheus-cloudwatch-exporter.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.deployment.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.deployment.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
5 changes: 5 additions & 0 deletions charts/prometheus-cloudwatch-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ pod:
labels: {}
annotations: {}

# Labels and annotations to attach to the deployment resource
deployment:
labels: {}
annotations: {}

# Extra environment variables
extraEnv:
# - name: foo
Expand Down

0 comments on commit fcee88c

Please sign in to comment.