apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
  name: drycc-monitor-grafana
  labels:
    app: "drycc-monitor-grafana"
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
spec:
  hostnames:
  - drycc-monitor-grafana.{{ .Values.global.platformDomain }}
  parentRefs:
  - group: gateway.networking.k8s.io
    kind: Gateway
    name: drycc-gateway
    sectionName: drycc-gateway-listener-http
{{- if .Values.global.certManagerEnabled }}
  - group: gateway.networking.k8s.io
    kind: Gateway
    name: drycc-gateway
    sectionName: drycc-gateway-listener-https
{{- end }}
  rules:
  - matches:
    - path:
        type: PathPrefix
        value: /
    backendRefs:
    - name: drycc-monitor-grafana
      port: 80
