diff --git a/charts/lago-front/templates/httproute.yaml b/charts/lago-front/templates/httproute.yaml index 64e05cc..ac70f9c 100644 --- a/charts/lago-front/templates/httproute.yaml +++ b/charts/lago-front/templates/httproute.yaml @@ -38,6 +38,12 @@ spec: filters: {{- toYaml . | nindent 8 }} {{- end }} + {{- if hasKey . "backendRefs" }} + {{- with .backendRefs }} + backendRefs: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- else }} backendRefs: - group: "" kind: Service @@ -45,4 +51,5 @@ spec: port: {{ $svcPort }} weight: 1 {{- end }} + {{- end }} {{- end }} diff --git a/charts/lago-rails/templates/httproute.yaml b/charts/lago-rails/templates/httproute.yaml index e0a6f5b..8e4420a 100644 --- a/charts/lago-rails/templates/httproute.yaml +++ b/charts/lago-rails/templates/httproute.yaml @@ -38,6 +38,12 @@ spec: filters: {{- toYaml . | nindent 8 }} {{- end }} + {{- if hasKey . "backendRefs" }} + {{- with .backendRefs }} + backendRefs: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- else }} backendRefs: - group: "" kind: Service @@ -45,4 +51,5 @@ spec: port: {{ $svcPort }} weight: 1 {{- end }} + {{- end }} {{- end }}