Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 388d566

Browse files
andrei-tykVrtak-CZ
andauthored
Fix probes v4 extended (#247)
* fix probes in headless for v4+ * Added modifications submitted by community contributor to all tyk-helm-charts. The commits contain a fix that selects the correct container port depending on the installed version of Tyk. * Added missing templating function for gateway version and included the correct tempalte function for the pro replicaset. * Fixed Typo with space inside empty braces. * Fixed Typo in tyk-pro deployment replicaset related to the name of the tyk config. * Reverted changes to tyk-hybrid due to a missunderstanding. * Fixed extra modification added to readinessProbe Co-authored-by: Patrik Votoček <[email protected]>
1 parent 544f590 commit 388d566

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tyk-headless/templates/deployment-gw-repset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ spec:
165165
httpGet:
166166
scheme: "HTTP{{ if .Values.gateway.tls }}S{{ end }}"
167167
path: /hello
168-
{{- if and .Values.gateway.control.enabled (or (semverCompare "^3.2.x" (include "tyk-headless.gateway-version" . )) (semverCompare ">=3.0.4 < 3.1.0" (include "tyk-headless.gateway-version" .))) }}
168+
{{- if and .Values.gateway.control.enabled (or (semverCompare ">= 3.2.0" (include "tyk-headless.gateway-version" . )) (semverCompare ">=3.0.4 < 3.1.0" (include "tyk-headless.gateway-version" .))) }}
169169
port: {{ .Values.gateway.control.containerPort }}
170170
{{- else }}
171171
port: {{ .Values.gateway.containerPort }}
@@ -178,7 +178,7 @@ spec:
178178
httpGet:
179179
scheme: "HTTP{{ if .Values.gateway.tls }}S{{ end }}"
180180
path: /hello
181-
{{- if and .Values.gateway.control.enabled (or (semverCompare "^3.2.x" (include "tyk-headless.gateway-version" . )) (semverCompare ">=3.0.4 < 3.1.0" (include "tyk-headless.gateway-version" .))) }}
181+
{{- if and .Values.gateway.control.enabled (or (semverCompare ">= 3.2.0" (include "tyk-headless.gateway-version" . )) (semverCompare ">=3.0.4 < 3.1.0" (include "tyk-headless.gateway-version" .))) }}
182182
port: {{ .Values.gateway.control.containerPort }}
183183
{{- else }}
184184
port: {{ .Values.gateway.containerPort }}

tyk-hybrid/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ http
4848
{{- else -}}
4949
redis.{{ .Release.Namespace }}.svc.cluster.local:6379
5050
{{- end -}}
51-
{{- end -}}
51+
{{- end -}}

tyk-pro/templates/deployment-gw-repset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ spec:
171171
httpGet:
172172
scheme: "HTTP{{ if .Values.gateway.tls }}S{{ end }}"
173173
path: /hello
174-
{{- if and .Values.gateway.control.enabled (or (semverCompare "^3.2.x" (include "tyk-pro.gateway-version" . )) (semverCompare ">=3.0.4 < 3.1.0" (include "tyk-pro.gateway-version" .))) }}
174+
{{- if and .Values.gateway.control.enabled (or (semverCompare ">= 3.2.0" (include "tyk-pro.gateway-version" . )) (semverCompare ">=3.0.4 < 3.1.0" (include "tyk-pro.gateway-version" .))) }}
175175
port: {{ .Values.gateway.control.containerPort }}
176176
{{- else }}
177177
port: {{ .Values.gateway.containerPort }}
@@ -184,7 +184,7 @@ spec:
184184
httpGet:
185185
scheme: "HTTP{{ if .Values.gateway.tls }}S{{ end }}"
186186
path: /hello
187-
{{- if and .Values.gateway.control.enabled (or (semverCompare "^3.2.x" (include "tyk-pro.gateway-version" . )) (semverCompare ">=3.0.4 < 3.1.0" (include "tyk-pro.gateway-version" .))) }}
187+
{{- if and .Values.gateway.control.enabled (or (semverCompare ">= 3.2.0" (include "tyk-pro.gateway-version" . )) (semverCompare ">=3.0.4 < 3.1.0" (include "tyk-pro.gateway-version" .))) }}
188188
port: {{ .Values.gateway.control.containerPort }}
189189
{{- else }}
190190
port: {{ .Values.gateway.containerPort }}

0 commit comments

Comments
 (0)