Skip to content

Commit

Permalink
feat(prometheus-blackbox-exporter): add deployment annotations
Browse files Browse the repository at this point in the history
This enables setting annotations for the deployment.

Signed-off-by: Maurice Meyer <[email protected]>
  • Loading branch information
morremeyer committed Feb 26, 2024
1 parent b400181 commit cd3bd4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-blackbox-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 8.11.0
version: 8.12.0
appVersion: v0.24.0
home: https://github.com/prometheus/blackbox_exporter
sources:
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-blackbox-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
namespace: {{ template "prometheus-blackbox-exporter.namespace" . }}
labels:
{{- include "prometheus-blackbox-exporter.labels" . | nindent 4 }}
{{- with .Values.deploymentAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicas }}
selector:
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-blackbox-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ ingress:

podAnnotations: {}

# Annotations for the Deployment
deploymentAnnotations: {}

# Hostaliases allow to add additional DNS entries to be injected directly into pods.
# This will take precedence over your implemented DNS solution
hostAliases: []
Expand Down

0 comments on commit cd3bd4d

Please sign in to comment.