Fix probe bug in common chart

This commit is contained in:
kjeld Schouten-Lebbing
2021-06-14 18:43:46 +02:00
parent a0e9d945e2
commit a0962a947f
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -18,4 +18,4 @@ maintainers:
name: common
sources:
type: library
version: 6.3.2
version: 6.3.3
@@ -18,17 +18,17 @@ Probes selection logic.
{{- else }}
{{- if and $primaryService $primaryPort -}}
{{- if $probe.type -}}
{{- $probeType := $probe.type -}}
{{- $probeType = $probe.type -}}
{{- else -}}
{{- if $primaryPort.protocol -}}
{{- $probeType := $primaryPort.protocol -}}
{{- $probeType = $primaryPort.protocol -}}
{{- end }}
{{- end }}
{{- if or ( eq $probeType "HTTP" ) ( eq $probeType "HTTP" ) -}}
{{- if or ( eq $probeType "HTTPS" ) ( eq $probeType "HTTP" ) -}}
{{- "httpGet:" | nindent 2 }}
{{- printf "path: %v" $probe.path | nindent 4 }}
{{- printf "scheme: %v" $primaryPort.protocol | nindent 4 }}
{{- printf "scheme: %v" $probeType | nindent 4 }}
{{- else -}}
{{- "tcpSocket:" | nindent 2 }}
{{- end }}