Skip to content

Commit

Permalink
[prometheus-redis-exporter] Introduce extraManifests value (#4761)
Browse files Browse the repository at this point in the history
* [prometheus-redis-exporter] Introduce extraManifests value
Signed-off-by: Alexis Sellier <[email protected]>

* Increase minor version

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

* add ci files for testing

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

* change k7s objects used  for testing

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

---------

Signed-off-by: Alexis Sellier <[email protected]>
Co-authored-by: MH <[email protected]>
  • Loading branch information
alexissellier and zanhsieh authored Aug 8, 2024
1 parent 42a5358 commit 6e706cf
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-redis-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v1.61.0
description: Prometheus exporter for Redis metrics
name: prometheus-redis-exporter
version: 6.3.0
version: 6.4.0
home: https://github.com/oliver006/redis_exporter
sources:
- https://github.com/oliver006/redis_exporter
Expand Down
13 changes: 13 additions & 0 deletions charts/prometheus-redis-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-redis-exporter.fullname" . }}-extra-cm1'
data:
extra-data: "value1"
- apiVersion: v1
kind: Secret
metadata:
name: '{{ include "prometheus-redis-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-redis-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ tolerations: []

affinity: {}

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

# If serviceMonitor.multipleTarget is enabled, this configuration is actually not used
redisAddress: redis://myredis:6379

Expand Down

0 comments on commit 6e706cf

Please sign in to comment.