Skip to content

Commit

Permalink
[prometheus-json-exporter] feat: add annotations for Deployment (prom…
Browse files Browse the repository at this point in the history
…etheus-community#4109)

* [prometheus-json-exporter] feat: add annotations for Deployment

This enables the user to specify annotations for the deployment.

Signed-off-by: Maurice Meyer <[email protected]>

* fixup! [prometheus-json-exporter] feat: add annotations for Deployment

Signed-off-by: Maurice Meyer <[email protected]>

---------

Signed-off-by: Maurice Meyer <[email protected]>
Co-authored-by: MH <[email protected]>
  • Loading branch information
2 people authored and Matiasmct committed Mar 20, 2024
1 parent b94e4b4 commit b5ebf43
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-json-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.0
version: 0.10.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-json-exporter/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deploymentAnnotations:
test-annotation: "true"
4 changes: 4 additions & 0 deletions charts/prometheus-json-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
namespace: {{ include "prometheus-json-exporter.namespace" . }}
labels:
{{- include "prometheus-json-exporter.labels" . | nindent 4 }}
{{- with .Values.deploymentAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-json-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

# Annotations for the Deployment
deploymentAnnotations: {}

podAnnotations: {}

podSecurityContext: {}
Expand Down

0 comments on commit b5ebf43

Please sign in to comment.