#% if repository.webhook_provider != 'none' %# --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: flux-webhook spec: hostnames: ["flux-webhook.${SECRET_DOMAIN}"] parentRefs: - name: envoy-#{ 'external' if ingress.mode != 'none' else 'internal' }# namespace: network sectionName: https rules: - backendRefs: - name: webhook-receiver namespace: flux-system port: 80 matches: - path: type: PathPrefix value: /hook/ #% endif %#