From 8983e10f6ad2c2e0ec3ef5b7953da2cb6c039c10 Mon Sep 17 00:00:00 2001 From: Chris Seeger <97911100+cseeger-harris@users.noreply.github.com> Date: Sun, 22 Dec 2024 07:56:06 -0800 Subject: [PATCH] [prometheus-sql-exporter] Chore: Add deployment annotations (#5053) * Add deployment annotations, move pod to similar structure Signed-off-by: cseeger-harris <97911100+cseeger-harris@users.noreply.github.com> * move order to match pod Signed-off-by: cseeger-harris <97911100+cseeger-harris@users.noreply.github.com> * revert pod label changes to prevent breakage Signed-off-by: cseeger-harris <97911100+cseeger-harris@users.noreply.github.com> --------- Signed-off-by: cseeger-harris <97911100+cseeger-harris@users.noreply.github.com> Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com> --- charts/prometheus-sql-exporter/Chart.yaml | 2 +- charts/prometheus-sql-exporter/templates/deployment.yaml | 7 +++++++ charts/prometheus-sql-exporter/values.yaml | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-sql-exporter/Chart.yaml b/charts/prometheus-sql-exporter/Chart.yaml index 0722b57e4db4..c3de8dce7f4a 100644 --- a/charts/prometheus-sql-exporter/Chart.yaml +++ b/charts/prometheus-sql-exporter/Chart.yaml @@ -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: diff --git a/charts/prometheus-sql-exporter/templates/deployment.yaml b/charts/prometheus-sql-exporter/templates/deployment.yaml index a99b429f0f4a..a68a3cedefdd 100644 --- a/charts/prometheus-sql-exporter/templates/deployment.yaml +++ b/charts/prometheus-sql-exporter/templates/deployment.yaml @@ -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: diff --git a/charts/prometheus-sql-exporter/values.yaml b/charts/prometheus-sql-exporter/values.yaml index 221cfed17678..e010cd7ce70a 100644 --- a/charts/prometheus-sql-exporter/values.yaml +++ b/charts/prometheus-sql-exporter/values.yaml @@ -133,6 +133,11 @@ annotations: {} podLabels: {} +# Labels and annotations to attach to the deployment resource +deployment: + annotations: {} + labels: {} + # Configurable health checks livenessProbe: initialDelaySeconds: 3