borchero / switchboard

Kubernetes Operator for Automatically Issuing DNS Records and TLS Certificates for Traefik Ingress Routes.
MIT License
155 stars 15 forks source link

unsupported function: PathRegexp #77

Closed starcraft66 closed 1 year ago

starcraft66 commented 1 year ago

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"}
starcraft66 commented 1 year ago

Nevermind, misunderstood how PathRegexp works.