Skip to content

Commit

Permalink
fix: duplicate scheme in probes when TLS is enabled (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smana authored Sep 15, 2024
1 parent a4b81c6 commit 49f7082
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/zitadel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: zitadel
description: A Helm chart for ZITADEL
type: application
appVersion: v2.61.0
version: 8.4.0
kubeVersion: '>= 1.21.0-0'
version: 8.4.1
kubeVersion: ">= 1.21.0-0"
icon: https://zitadel.com/zitadel-logo-dark.svg
maintainers:
- name: zitadel
Expand Down
10 changes: 7 additions & 3 deletions charts/zitadel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,16 @@ spec:
httpGet:
path: /debug/healthz
port: {{ .Values.service.protocol }}-server
scheme: {{ .Values.service.scheme }}

{{- if .Values.zitadel.configmapConfig.ExternalDomain }}
httpHeaders:
- name: Host
value: {{ .Values.zitadel.configmapConfig.ExternalDomain }}
{{- end }}
{{- if include "deepCheck" (dict "root" .Values "path" (splitList "." "zitadel.configmapConfig.TLS.Enabled")) }}
scheme: HTTPS
{{- else }}
scheme: {{ .Values.service.scheme }}
{{- end }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
Expand All @@ -121,14 +123,15 @@ spec:
httpGet:
path: /debug/ready
port: {{ .Values.service.protocol }}-server
scheme: {{ .Values.service.scheme }}
{{- if .Values.zitadel.configmapConfig.ExternalDomain }}
httpHeaders:
- name: Host
value: {{ .Values.zitadel.configmapConfig.ExternalDomain }}
{{- end }}
{{- if include "deepCheck" (dict "root" .Values "path" (splitList "." "zitadel.configmapConfig.TLS.Enabled")) }}
scheme: HTTPS
{{- else }}
scheme: {{ .Values.service.scheme }}
{{- end }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
Expand All @@ -139,14 +142,15 @@ spec:
httpGet:
path: /debug/ready
port: {{ .Values.service.protocol }}-server
scheme: {{ .Values.service.scheme }}
{{- if .Values.zitadel.configmapConfig.ExternalDomain }}
httpHeaders:
- name: Host
value: {{ .Values.zitadel.configmapConfig.ExternalDomain }}
{{- end }}
{{- if include "deepCheck" (dict "root" .Values "path" (splitList "." "zitadel.configmapConfig.TLS.Enabled")) }}
scheme: HTTPS
{{- else }}
scheme: {{ .Values.service.scheme }}
{{- end }}
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
Expand Down

0 comments on commit 49f7082

Please sign in to comment.