Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway HTTPRoute doesn't matched hosts with different number of parts #3878

Closed
sergeyshevch opened this issue Aug 17, 2023 · 8 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@sergeyshevch
Copy link

What happened:

https://github.com/kubernetes-sigs/external-dns/blob/master/source/gateway.go#L507 On this line checked the same amount of domain parts, but for Gateway API spec it doesn't required

For example, I have:
HttpRoute with hostname - env.dev.company.domain
And Gateway with hostname - *.company.domain

External DNS controller will ignore such route but it's valid on Gateway side

What you expected to happen:

Domain matched, DNS record created

How to reproduce it (as minimally and precisely as possible):

Gateway:

apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
  name: rest-external
spec:
  gatewayClassName: cilium
  listeners:
    - allowedRoutes:
        namespaces:
          from: All
      hostname: '*.example.com'
      name: web-gw
      port: 443
      protocol: HTTP

Route:

apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
  name: route
spec:
  hostnames:
    - mr1.dev.example.com
  parentRefs:
    - group: gateway.networking.k8s.io
      kind: Gateway
      name: rest-external
  rules:
    - backendRefs:
        - group: ""
          kind: Service
          name: svcname
          port: 8080
          weight: 1
      matches:
        - path:
            type: PathPrefix
            value: /

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): v20230529-v0.13.5
  • DNS provider: Route53
  • Others: Gateway controller - Cilium
@sergeyshevch sergeyshevch added the kind/bug Categorizes issue or PR as related to a bug. label Aug 17, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 26, 2024
@sergeyshevch
Copy link
Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 26, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 25, 2024
@igor-nikiforov
Copy link

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 26, 2024
@igor-nikiforov
Copy link

This issue is still huge blocker for migration from Ingress resource

@abursavich
Copy link
Contributor

abursavich commented Jul 13, 2024

This was fixed with #4124 7 months ago.

@sergeyshevch
Copy link
Author

Then let's close it
/close

@k8s-ci-robot
Copy link
Contributor

@sergeyshevch: Closing this issue.

In response to this:

Then let's close it
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

5 participants