Skip to content

Commit

Permalink
[prometheus-sql-exporter] Chore: Add deployment annotations (#5053)
Browse files Browse the repository at this point in the history
* Add deployment annotations, move pod to similar structure

Signed-off-by: cseeger-harris <[email protected]>

* move order to match pod

Signed-off-by: cseeger-harris <[email protected]>

* revert pod label changes to prevent breakage

Signed-off-by: cseeger-harris <[email protected]>

---------

Signed-off-by: cseeger-harris <[email protected]>
Co-authored-by: zeritti <[email protected]>
  • Loading branch information
cseeger-harris and zeritti authored Dec 22, 2024
1 parent 17ca2d8 commit 8983e10
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-sql-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Prometheus SQL Exporter
name: prometheus-sql-exporter
version: 0.2.0
version: 0.2.1
appVersion: v0.5.8
home: https://github.com/justwatchcom/sql_exporter
sources:
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus-sql-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ template "prometheus-sql-exporter.fullname" . }}
labels:
{{- include "prometheus-sql-exporter.labels" . | nindent 4 }}
{{- if .Values.deployment.labels }}
{{- toYaml .Values.deployment.labels | trim | nindent 4 }}
{{- end }}
{{- if .Values.deployment.annotations }}
annotations:
{{- toYaml .Values.deployment.annotations | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
5 changes: 5 additions & 0 deletions charts/prometheus-sql-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ annotations: {}

podLabels: {}

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

# Configurable health checks
livenessProbe:
initialDelaySeconds: 3
Expand Down

0 comments on commit 8983e10

Please sign in to comment.