Skip to content

Commit

Permalink
fix: adding http/https options to readinessProbes for console (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-m-masood authored Nov 21, 2024
1 parent 8c42739 commit 64a37f6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions charts/camunda-platform-alpha/templates/camunda/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,8 @@ Release templates.
{{- $baseURL := printf "%s://%s" $proto .Values.global.ingress.host }}

{{- if .Values.console.enabled }}
{{- $baseURLInternal := printf "http://%s.%s:%v" (include "console.fullname" .) .Release.Namespace .Values.console.service.managementPort }}
{{- $proto := (lower .Values.console.readinessProbe.scheme) -}}
{{- $baseURLInternal := printf "%s://%s.%s:%v" $proto (include "console.fullname" .) .Release.Namespace .Values.console.service.managementPort }}
- name: Console
id: console
version: {{ include "camundaPlatform.imageTagByParams" (dict "base" .Values.global "overlay" .Values.console) }}
Expand All @@ -602,7 +603,8 @@ Release templates.
metrics: {{ printf "%s%s" $baseURLInternal .Values.console.metrics.prometheus }}
{{- end }}
{{ if .Values.identity.enabled -}}
{{- $baseURLInternal := printf "http://%s.%s:%v" (include "identity.fullname" .) .Release.Namespace .Values.identity.service.metricsPort -}}
{{- $proto := (lower .Values.identity.readinessProbe.scheme) -}}
{{- $baseURLInternal := printf "%s://%s.%s:%v" $proto (include "identity.fullname" .) .Release.Namespace .Values.identity.service.metricsPort -}}
- name: Keycloak
id: keycloak
version: {{ .Values.identityKeycloak.image.tag }}
Expand All @@ -616,7 +618,8 @@ Release templates.
{{- end }}

{{- if .Values.webModeler.enabled }}
{{- $baseURLInternal := printf "http://%s.%s:%v" (include "webModeler.webapp.fullname" .) .Release.Namespace .Values.webModeler.webapp.service.managementPort }}
{{- $proto := (lower .Values.webModeler.webapp.readinessProbe.scheme) -}}
{{- $baseURLInternal := printf "%s://%s.%s:%v" $proto (include "webModeler.webapp.fullname" .) .Release.Namespace .Values.webModeler.webapp.service.managementPort }}
- name: WebModeler WebApp
id: webModelerWebApp
version: {{ include "camundaPlatform.imageTagByParams" (dict "base" .Values.global "overlay" .Values.webModeler) }}
Expand All @@ -626,7 +629,8 @@ Release templates.
{{- end }}

{{- if .Values.optimize.enabled }}
{{- $baseURLInternal := printf "http://%s.%s" (include "optimize.fullname" .) .Release.Namespace }}
{{- $proto := (lower .Values.optimize.readinessProbe.scheme) -}}
{{- $baseURLInternal := printf "%s://%s.%s" $proto (include "optimize.fullname" .) .Release.Namespace }}
- name: Optimize
id: optimize
version: {{ include "camundaPlatform.imageTagByParams" (dict "base" .Values.global "overlay" .Values.optimize) }}
Expand All @@ -636,7 +640,8 @@ Release templates.
{{- end }}

{{- if .Values.core.enabled }}
{{- $baseURLInternal := printf "http://%s.%s:%v" (include "core.fullname" . | trimAll "\"") .Release.Namespace .Values.core.service.managementPort }}
{{- $proto := (lower .Values.core.readinessProbe.scheme) -}}
{{- $baseURLInternal := printf "%s://%s.%s:%v" $proto (include "core.fullname" . | trimAll "\"") .Release.Namespace .Values.core.service.managementPort }}
- name: Operate
id: operate
version: {{ include "camundaPlatform.imageTagByParams" (dict "base" .Values.global "overlay" .Values.core) }}
Expand Down

0 comments on commit 64a37f6

Please sign in to comment.