Skip to content

Commit

Permalink
fix: changed restAddress in Tasklist with helper function (#2152)
Browse files Browse the repository at this point in the history
  • Loading branch information
houssain-barouni authored Jul 26, 2024
1 parent dcf0a93 commit 9e45221
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
14 changes: 14 additions & 0 deletions charts/camunda-platform-alpha/templates/camunda/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,20 @@ Zeebe templates.
{{- printf "%s://%s" $proto .Values.zeebeGateway.ingress.grpc.host -}}
{{- end -}}

{{/*
[camunda-platform] Zeebe Gateway REST internal URL.
*/}}
{{ define "camundaPlatform.zeebeGatewayRESTURL" }}
{{- if .Values.zeebe.enabled -}}
{{-
printf "http://%s:%v%s"
(include "zeebe.fullname.gateway" .)
.Values.zeebeGateway.service.restPort
(.Values.zeebeGateway.contextPath | default "")
-}}
{{- end -}}
{{- end -}}


{{/*
********************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ data:
zeebe:
# Gateway address
gatewayAddress: "{{ tpl .Values.global.zeebeClusterName . }}-gateway:{{ .Values.zeebeGateway.service.grpcPort }}"
restAddress: "http://{{ tpl .Values.global.zeebeClusterName . }}-gateway:{{ .Values.zeebeGateway.service.restPort }}"
restAddress: {{ include "camundaPlatform.zeebeGatewayRESTURL" . | quote }}
{{- if .Values.tasklist.retention.enabled }}
archiver:
ilmEnabled: true
Expand Down
14 changes: 14 additions & 0 deletions charts/camunda-platform-latest/templates/camunda/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,20 @@ Zeebe templates.
{{- printf "%s://%s" $proto .Values.zeebeGateway.ingress.grpc.host -}}
{{- end -}}

{{/*
[camunda-platform] Zeebe Gateway REST internal URL.
*/}}
{{ define "camundaPlatform.zeebeGatewayRESTURL" }}
{{- if .Values.zeebe.enabled -}}
{{-
printf "http://%s:%v%s"
(include "zeebe.fullname.gateway" .)
.Values.zeebeGateway.service.restPort
(.Values.zeebeGateway.contextPath | default "")
-}}
{{- end -}}
{{- end -}}


{{/*
********************************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ data:
zeebe:
# Broker contact point
brokerContactPoint: "{{ tpl .Values.global.zeebeClusterName . }}-gateway:{{ .Values.zeebeGateway.service.grpcPort }}"
restAddress: "http://{{ tpl .Values.global.zeebeClusterName . }}-gateway:{{ .Values.zeebeGateway.service.restPort }}"
restAddress: {{ include "camundaPlatform.zeebeGatewayRESTURL" . | quote }}
{{- if .Values.tasklist.retention.enabled }}
archiver:
ilmEnabled: true
Expand Down

0 comments on commit 9e45221

Please sign in to comment.