borchero/switchboard

unsupported function: PathRegexp

Closed this issue · 1 comments

The whole reason I decided to use traefik's IngressRoute over the vanilla Ingress was the ability to use regexes in paths. Upon realizing external-dns did not support IngressRoute, I was directed to this project. Unfortunately, for a rule like:

  - kind: Rule
    match: Host(`www.lab.otakuthon.com`) && PathRegexp(`^/[0-9]{4}res$`)

where a host can can still be inferred because there is no regex in the host part, switchboard trips up on the PathRegexp part.
From the logs:

2023-02-25T20:58:21.516Z        ERROR   failed to parse hosts from ingress route        {"name": "www-dev/www", "error": "failed to parse domains: unsupported function: PathRegexp"}

Nevermind, misunderstood how PathRegexp works.