| 123456789101112131415161718192021222324252627282930313233343536373839 |
- {{- if .Values.httpRoute.enabled -}}
- {{- $fullName := include "chart.fullname" . -}}
- apiVersion: gateway.networking.k8s.io/v1
- kind: HTTPRoute
- metadata:
- name: {{ $fullName }}
- labels:
- {{- include "chart.labels" . | nindent 4 }}
- {{- with .Values.httpRoute.annotations }}
- annotations:
- {{- toYaml . | nindent 4 }}
- {{- end }}
- spec:
- parentRefs:
- {{- with .Values.httpRoute.parentRefs }}
- {{- toYaml . | nindent 4 }}
- {{- end }}
- {{- with .Values.httpRoute.hostnames }}
- hostnames:
- {{- toYaml . | nindent 4 }}
- {{- end }}
- rules:
- {{- range .Values.httpRoute.rules }}
- {{- with .matches }}
- - matches:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .filters }}
- filters:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- backendRefs:
- {{- range .backendRefs }}
- - name: {{ include "chart.componentFullname" (dict "root" $ "name" .component) }}
- port: {{ index $.Values.components .component "service" "port" }}
- weight: {{ .weight | default 1 }}
- {{- end }}
- {{- end }}
- {{- end }}
|