Skip to content

Commit cce1e50

Browse files
feat: add httproute template
1 parent e573431 commit cce1e50

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

charts/gitops-runtime/templates/httproute.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ spec:
2121
{{- else }}
2222
{{- fail "ERROR: global.runtime.httpRoute.parentRefs is required when httpRoute is enabled" }}
2323
{{- end }}
24-
hostnames: {{- toYaml .Values.global.runtime.httpRoute.hostnames | nindent 4 }}
24+
hostnames:
25+
{{ - if .Values.global.runtime.httpRoute.hostnames }}
26+
{{- toYaml .Values.global.runtime.httpRoute.hostnames | nindent 4 }}
27+
{{- else }}
28+
{{- fail "ERROR: global.runtime.httpRoute.hostnames is required when httpRoute is enabled" }}
29+
{{- end }}
2530
rules:
2631
- matches:
2732
- path:

0 commit comments

Comments
 (0)