Skip to content

Commit

Permalink
[prometheus-postgres-exporter] Introduce extraManifests value (#4765)
Browse files Browse the repository at this point in the history
* Introduce extraManifests value

Signed-off-by: Alexis Sellier <[email protected]>

* Increase minor version

Signed-off-by: Alexis Sellier <[email protected]>

* add ci values for testing purpose

Signed-off-by: Alexis Sellier <[email protected]>

* fix naming

Signed-off-by: Alexis Sellier <[email protected]>

* Change k8s objects use for testing

Signed-off-by: Alexis Sellier <[email protected]>

* Add CI test case with default values

Signed-off-by: zeritti <[email protected]>

---------

Signed-off-by: Alexis Sellier <[email protected]>
Signed-off-by: zeritti <[email protected]>
Co-authored-by: zeritti <[email protected]>
  • Loading branch information
alexissellier and zeritti authored Aug 5, 2024
1 parent 5657a6c commit 34a6212
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v0.15.0"
description: A Helm chart for prometheus postgres-exporter
name: prometheus-postgres-exporter
version: 6.1.0
version: 6.2.0
home: https://github.com/prometheus-community/postgres_exporter
sources:
- https://github.com/prometheus-community/postgres_exporter
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-postgres-exporter/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Default chart values
13 changes: 13 additions & 0 deletions charts/prometheus-postgres-exporter/ci/extramanifests-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extraManifests:
- apiVersion: v1
kind: ConfigMap
metadata:
name: '{{ include "prometheus-postgres-exporter.fullname" . }}-extra-cm1'
data:
extra-data: "value1"
- apiVersion: v1
kind: Secret
metadata:
name: '{{ include "prometheus-postgres-exporter.fullname" . }}-extra-secret1'
stringData:
secret: "value"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraManifests }}
---
{{ tpl (toYaml .) $ }}
{{ end }}
10 changes: 10 additions & 0 deletions charts/prometheus-postgres-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ extraVolumeMounts: []
# mountPath: /etc/ssl/certs/ca-certificates.crt
# subPath: ca-certificates.crt

## Extra manifests to deploy as an array
extraManifests: []
# - apiVersion: v1
# kind: ConfigMap
# metadata:
# labels:
# name: postgres-exporter-extra
# data:
# extra-data: "value"

podDisruptionBudget:
enabled: false
maxUnavailable: 1

0 comments on commit 34a6212

Please sign in to comment.