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 965f1ac commit 4a7275e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/s3-step/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: 0.1.0
appVersion: 1.3.0
description: A Helm chart for Kubernetes
name: s3-step
type: application
version: 0.3.0
version: 0.4.0
2 changes: 2 additions & 0 deletions charts/s3-step/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
namespace: {{ .Values.namespace }}
data:
consumer-topics: {{ .Values.configmap.atlas.consumerTopics }}
consumer-group-id: {{ .Values.configmap.atlas.consumerGroupId | default (printf "%s-atlas" (include "s3-step.fullname" .)) }}
internal-server: {{ .Values.configmap.atlas.internalServer }}
metrics-topic: {{ .Values.configmap.atlas.metricsTopic }}
bucket-name: {{ .Values.configmap.atlas.bucketName }}
Expand All @@ -18,6 +19,7 @@ metadata:
namespace: {{ .Values.namespace }}
data:
consumer-topics: {{ .Values.configmap.ztf.consumerTopics }}
consumer-group-id: {{ .Values.configmap.ztf.consumerGroupId | default (printf "%s-ztf" (include "s3-step.fullname" .)) }}
internal-server: {{ .Values.configmap.ztf.internalServer }}
metrics-topic: {{ .Values.configmap.ztf.metricsTopic }}
bucket-name: {{ .Values.configmap.ztf.bucketName }}
Expand Down
5 changes: 4 additions & 1 deletion charts/s3-step/templates/deployment_atlas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ spec:
name: '{{ include "s3-step.fullname" . }}-atlas'
key: internal-server
- name: CONSUMER_GROUP_ID
value: '{{ include "s3-step.fullname" . }}-atlas'
valueFrom:
configMapKeyRef:
name: '{{ include "s3-step.fullname" . }}-atlas'
key: consumer-group-id
- name: METRICS_HOST
valueFrom:
configMapKeyRef:
Expand Down
5 changes: 4 additions & 1 deletion charts/s3-step/templates/deployment_ztf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ spec:
name: '{{ include "s3-step.fullname" . }}-ztf'
key: internal-server
- name: CONSUMER_GROUP_ID
value: '{{ include "s3-step.fullname" . }}-ztf'
valueFrom:
configMapKeyRef:
name: '{{ include "s3-step.fullname" . }}-ztf'
key: consumer-group-id
- name: METRICS_HOST
valueFrom:
configMapKeyRef:
Expand Down
4 changes: 3 additions & 1 deletion charts/s3-step/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ image:
repository: ghcr.io/alercebroker/s3_step
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "rc"
tag: ""

imagePullSecrets:
- name: "image-pull-access"
Expand Down Expand Up @@ -57,12 +57,14 @@ affinity:
configmap:
ztf:
consumerTopics: ""
consumerGroupId: ""
internalServer: ""
metricsTopic: ""
bucketName: ""
regionName: ""
atlas:
consumerTopics: ""
consumerGroupId: ""
internalServer: ""
metricsTopic: ""
bucketName: ""
Expand Down

0 comments on commit 4a7275e

Please sign in to comment.