Skip to content

Commit

Permalink
Add --application-id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Jan 26, 2024
1 parent 615d351 commit 1dbec03
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/streams-app-cleanup-job/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ spec:
- name: "{{ .Values.configurationEnvPrefix }}_EXTRA_INPUT_PATTERNS"
value: "{{- range $key, $value := .Values.streams.extraInputPatterns }}{{ $key }}={{ $value }},{{- end }}"
{{- end }}
{{- if hasKey .Values.autoscaling "consumerGroup" }}
{{- if and (.Values.streams.passApplicationId) (hasKey .Values.autoscaling "consumerGroup") }}
- name: "{{ .Values.configurationEnvPrefix }}_UNIQUE_APP_ID"
value: {{ .Values.autoscaling.consumerGroup | quote }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/streams-app-cleanup-job/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ configurationEnvPrefix: "APP"
streams:
# brokers: "test:9092"
# schemaRegistryUrl: "url:1234"
passApplicationId: true
config: {}
# max.poll.records: 500
# Note that YAML may convert large integers to scientific notation. Use Strings to avoid this.
Expand Down
2 changes: 1 addition & 1 deletion charts/streams-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ spec:
- name: "{{ .Values.configurationEnvPrefix }}_EXTRA_INPUT_PATTERNS"
value: "{{- range $key, $value := .Values.streams.extraInputPatterns }}{{ $key }}={{ $value }},{{- end }}"
{{- end }}
{{- if hasKey .Values.autoscaling "consumerGroup" }}
{{- if and (.Values.streams.passApplicationId) (hasKey .Values.autoscaling "consumerGroup") }}
- name: "{{ .Values.configurationEnvPrefix }}_UNIQUE_APP_ID"
value: {{ .Values.autoscaling.consumerGroup | quote }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/streams-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ streams:
# schemaRegistryUrl: "url:1234"
staticMembership: false
optimizeLeaveGroupBehavior: true
passApplicationId: true
config: {}
# max.poll.records: 500
# Note that YAML may convert large integers to scientific notation. Use Strings to avoid this.
Expand Down

0 comments on commit 1dbec03

Please sign in to comment.