Skip to content

Commit

Permalink
[prometheus-elasticsearch-exporter] Introduce extraManifests value (#…
Browse files Browse the repository at this point in the history
…4742)

* Introduce extraManifests value/option

Signed-off-by: Rimantas Ragainis <[email protected]>

* Bump chart minor version

Signed-off-by: Rimantas Ragainis <[email protected]>

* Added extraManifests into CI

Signed-off-by: Rimantas Ragainis <[email protected]>

* Update charts/prometheus-elasticsearch-exporter/ci/extra-manifests.yaml

Co-authored-by: zeritti <[email protected]>
Signed-off-by: Rimantas Ragainis <[email protected]>

* Update charts/prometheus-elasticsearch-exporter/values.yaml

Co-authored-by: zeritti <[email protected]>
Signed-off-by: Rimantas Ragainis <[email protected]>

* Update charts/prometheus-elasticsearch-exporter/ci/extra-manifests.yaml

Co-authored-by: zeritti <[email protected]>
Signed-off-by: Rimantas Ragainis <[email protected]>

* Update charts/prometheus-elasticsearch-exporter/values.yaml

Co-authored-by: zeritti <[email protected]>
Signed-off-by: Rimantas Ragainis <[email protected]>

* Renamed extra-manifests.yaml

Signed-off-by: Rimantas Ragainis <[email protected]>

* Update CI values files

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

---------

Signed-off-by: Rimantas Ragainis <[email protected]>
Signed-off-by: zeritti <[email protected]>
Co-authored-by: zeritti <[email protected]>
  • Loading branch information
ritmas and zeritti authored Jul 26, 2024
1 parent 6ab6c1b commit 4358ec3
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-elasticsearch-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Elasticsearch stats exporter for Prometheus
name: prometheus-elasticsearch-exporter
version: 6.0.0
version: 6.1.0
kubeVersion: ">=1.19.0-0"
appVersion: "v1.7.0"
home: https://github.com/prometheus-community/elasticsearch_exporter
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# Create extra manifests

extraManifests:
- |
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-elasticsearch-exporter-extra
data:
extra-data: "value"

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# Unset pod level securityContext

podSecurityContext: null
podSecurityContext: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraManifests }}
---
{{ tpl . $ }}
{{ end }}
10 changes: 10 additions & 0 deletions charts/prometheus-elasticsearch-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ env: {}
# - --es.indices_mappings
extraArgs: []

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

## The name of a secret in the same kubernetes namespace which contain values to be added to the environment
## This can be useful for auth tokens, etc
envFromSecret: ""
Expand Down

0 comments on commit 4358ec3

Please sign in to comment.