{{- if .Values.route.main.enabled -}} apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: {{ include "common.names.fullname" . }} namespace: {{ .Release.Namespace }} spec: parentRefs: {{- toYaml .Values.route.main.parentRefs | nindent 4 }} hostnames: {{- toYaml .Values.route.main.hostnames | nindent 4 }} rules: - matches: - path: type: PathPrefix value: / backendRefs: - name: {{ include "common.names.fullname" . }} port: {{ .Values.service.ports.http.port | default 80 }} {{- end -}}