{{- if .Values.httpRoute.enabled }} apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: {{ include "flatgit.fullname" . }} labels: {{- include "flatgit.labels" . | nindent 4 }} {{- with .Values.httpRoute.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.httpRoute.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: parentRefs: {{- toYaml .Values.httpRoute.parentRefs | nindent 4 }} {{- with .Values.httpRoute.hostnames }} hostnames: {{- toYaml . | nindent 4 }} {{- end }} rules: - matches: - path: type: PathPrefix value: {{ .Values.httpRoute.pathPrefix | quote }} backendRefs: - name: {{ include "flatgit.fullname" . }} port: {{ .Values.service.port }} {{- end }}