Skip to content

Commit

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

Signed-off-by: Helder Santos <[email protected]>
Co-authored-by: Helder Santos <[email protected]>
  • Loading branch information
heldertsantos and heldertsantos authored Dec 27, 2023
1 parent d628eba commit e1238c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-kafka-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "v1.7.0"
description: A Helm chart to export the metrics from Kafka in Prometheus format using the kafka-exporter from https://github.com/danielqsj/kafka_exporter
name: prometheus-kafka-exporter
home: https://github.com/danielqsj/kafka_exporter
version: 2.7.0
version: 2.8.0
kubeVersion: ">=1.19.0-0"
sources:
- https://gkarthiks.github.io/helm-charts/charts/prometheus-kafka-exporter
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-kafka-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,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 }}
ports:
- name: exporter-port
containerPort: 9308
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-kafka-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ image:
tag: ""
pullPolicy: IfNotPresent

# Allow to change deployment command
command: []

imagePullSecrets: []

global:
Expand Down

0 comments on commit e1238c0

Please sign in to comment.