small probe change

This commit is contained in:
Stavros kois
2022-12-30 16:53:03 +02:00
parent fb86bdac44
commit 1e690ec3b7
@@ -53,8 +53,9 @@
{{- $_ := set $tmpProbe "name" $probeName -}}
{{- $_ := set $tmpProbe "spec" $probe.spec -}}
{{- $_ := set $tmpProbe "type" $probeType -}}
{{- $_ := set $tmpProbe "port" $probePort }}
{{ $probeName }}Probe:
{{- $_ := set $tmpProbe "port" $probePort -}}
{{ printf "%sProbe:" $probeName | nindent 0 }}
{{- if mustHas $probeType (list "HTTPS" "HTTP") -}}
{{- $_ := set $tmpProbe "path" $probe.path -}}
{{- $_ := set $tmpProbe "httpHeaders" $probe.httpHeaders -}}