Skip to content

Commit

Permalink
[prometheus-redis-exporter] Add option to change Deployment command (#…
Browse files Browse the repository at this point in the history
…3653)

Signed-off-by: Vonter <[email protected]>
  • Loading branch information
Vonter authored Aug 4, 2023
1 parent 7932a53 commit f4205b4
Show file tree
Hide file tree
Showing 3 changed files with 7 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.44.0
description: Prometheus exporter for Redis metrics
name: prometheus-redis-exporter
version: 5.4.0
version: 5.5.0
home: https://github.com/oliver006/redis_exporter
sources:
- https://github.com/oliver006/redis_exporter
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-redis-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.command }}
command:
{{- toYaml . | nindent 12 }}
{{- end }}
args:
{{- range $key, $value := .Values.extraArgs }}
- --{{ $key }}={{ $value }}
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-redis-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: ""

command: []

extraArgs: {}

# global custom labels, applied to all resrouces
Expand Down

0 comments on commit f4205b4

Please sign in to comment.