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