Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prometheus-sql-exporter] Chore: Add deployment annotations #5053

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
Loading