try fixing probes a bit (#653)

* try fixing probes a bit

* port kah probe changes
This commit is contained in:
Kjeld Schouten-Lebbing 2021-07-04 13:05:43 +02:00 committed by GitHub
parent 7db6af547f
commit b5db44775d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -18,4 +18,4 @@ maintainers:
name: common
sources:
type: library
version: 6.5.0
version: 6.5.1

View File

@ -11,6 +11,7 @@ Probes selection logic.
{{- range $probeName, $probe := .Values.probes }}
{{- if $probe.enabled -}}
{{- $probeType = "TCP" -}}
{{- "" | nindent 0 }}
{{- $probeName }}Probe:
{{- if $probe.custom -}}
@ -33,7 +34,11 @@ Probes selection logic.
{{- "tcpSocket:" | nindent 2 }}
{{- end }}
{{- printf "port: %v" $primaryPort.port | nindent 4 }}
{{- if $primaryPort.targetPort }}
{{- printf "port: %v" $primaryPort.targetPort | nindent 4 }}
{{- else}}
{{- printf "port: %v" $primaryPort.port | nindent 4 }}
{{- end }}
{{- printf "initialDelaySeconds: %v" $probe.spec.initialDelaySeconds | nindent 2 }}
{{- printf "failureThreshold: %v" $probe.spec.failureThreshold | nindent 2 }}
{{- printf "timeoutSeconds: %v" $probe.spec.timeoutSeconds | nindent 2 }}