Skip to content

Commit 56a5a05

Browse files
committed
fixed Error: parse error at (universal-template/templates/services.yaml:43): unexpected "&" in operand
1 parent cd1394f commit 56a5a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/universal-template/templates/services.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
port: {{ .port }}
4141
targetPort: {{ .targetPort }}
4242
protocol: {{ .protocol }}
43-
{{- if eq $type "NodePort" && .nodePort }}
43+
{{- if and (eq $type "NodePort") .nodePort }}
4444
nodePort: {{ .nodePort }}
4545
{{- end }}
4646
{{- end }}

0 commit comments

Comments
 (0)