Skip to content

Commit

Permalink
feat: add option to change consumer-group-id
Browse files Browse the repository at this point in the history
  • Loading branch information
dirodriguezm committed Mar 14, 2023
1 parent 4a7275e commit 8363aa3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/alert-archive-step/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: "1.0.2"
description: A Helm chart for Kubernetes
name: alert-archive-step
type: application
version: 0.2.0
version: 0.3.0
1 change: 1 addition & 0 deletions charts/alert-archive-step/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
namespace: {{ .Values.namespace }}
data:
consumer-topics: {{ .Values.configmap.consumerTopics }}
consumer-group-id: {{ .Values.configmap.consumerGroupId | default (printf "%s" (include "alert-archive-step.fullname" .)) }}
internal-server: {{ .Values.configmap.internalServer }}
metrics-topic: {{ .Values.configmap.metricsTopic }}
bucket-name: {{ .Values.configmap.bucketName }}
5 changes: 4 additions & 1 deletion charts/alert-archive-step/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ spec:
name: {{ include "alert-archive-step.fullname" . }}
key: internal-server
- name: CONSUMER_GROUP_ID
value: {{ include "alert-archive-step.fullname" . }}
valueFrom:
configMapKeyRef:
name: {{ include "alert-archive-step.fullname" . }}
key: consumer-group-id
- name: METRICS_HOST
valueFrom:
configMapKeyRef:
Expand Down
4 changes: 2 additions & 2 deletions charts/alert-archive-step/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ metadata:
name: kafka-auth
namespace: {{ .Values.namespace }}
stringData:
username: {{ .Values.secrets.kafkaAuth.username }}
password: {{ .Values.secrets.kafkaAuth.password }}
username: "{{ .Values.secrets.kafkaAuth.username }}"
password: "{{ .Values.secrets.kafkaAuth.password }}"
1 change: 1 addition & 0 deletions charts/alert-archive-step/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ affinity:

configmap:
consumerTopics: ""
consumerGroupId: ""
internalServer: ""
metricsTopic: ""
bucketName: ""
Expand Down

0 comments on commit 8363aa3

Please sign in to comment.