File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,6 +341,12 @@ Get ingress url for both tunnel based and ingress based runtimes
341341 {{- else }}
342342 {{ fail (printf " ERROR: Unsupported protocol %s for ingress. Only http and https supported" .Values.global.runtime.ingress.protocol )}}
343343 {{- end }}
344+ {{- else if .Values.global.runtime.httpRoute.enabled }}
345+ {{- if has .Values.global.runtime.httpRoute.protocol $supportedProtocols }}
346+ {{- printf " %s ://%s " .Values.global.runtime.httpRoute.protocol (index .Values.global.runtime.httpRoute.hostnames 0)}}
347+ {{- else }}
348+ {{ fail (printf " ERROR: Unsupported protocol %s for httpRoute. Only http and https supported" .Values.global.runtime.httpRoute.protocol )}}
349+ {{- end }}
344350 {{/* If tunnel client is enabled - ingress url is <accoundId>-<runtimename>.<tunnel-subdomain> */ }}
345351 {{- else if index .Values " tunnel-client" " enabled" }}
346352 {{- $accoundId := required " global.codefresh.accountId is required for tunnel based runtime" .Values.global.codefresh.accountId }}
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ global:
6868 # -- HTTPRoute settings
6969 httpRoute :
7070 enabled : false
71+ protocol : https
7172 annotations : {}
7273 labels : {}
7374 parentRefs : []
You can’t perform that action at this time.
0 commit comments