Skip to content

[dmt] Implemented gateway requirements#356

Merged
ldmonster merged 9 commits into
mainfrom
chore/reuire-httproute
Jun 30, 2026
Merged

[dmt] Implemented gateway requirements#356
ldmonster merged 9 commits into
mainfrom
chore/reuire-httproute

Conversation

@Paramoshka

@Paramoshka Paramoshka commented May 5, 2026

Copy link
Copy Markdown
Contributor

What

Adds a new httproute-rules template linter rule that enforces DKP's transition
to the Kubernetes Gateway API: any module shipping an Ingress must also ship a
functionally equivalent HTTPRoute (matched by app label) whose
spec.parentRefs references a ListenerSet defined in the same module.

The rule reports:

  • an Ingress with no matching HTTPRoute (app label match),
  • an HTTPRoute whose parentRefs is empty, and
  • an HTTPRoute whose parentRefs does not reference any in-module ListenerSet.

Every finding points authors to the network team for help with the migration.

Why

DKP is moving from Ingress-Nginx toward the Gateway API. During the transition
modules must work through both stacks simultaneously, so the linter now requires
the Gateway API counterpart to ship alongside each Ingress. Modules that comply
need no further changes when Ingress-Nginx is retired.

@Paramoshka Paramoshka force-pushed the chore/reuire-httproute branch from 332d459 to 21b70ac Compare May 5, 2026 10:19
Signed-off-by: Paramoshka <parfenov_ivan_42a@mail.ru>
@Paramoshka Paramoshka force-pushed the chore/reuire-httproute branch from 62d5351 to baef16c Compare May 6, 2026 07:03
@Paramoshka Paramoshka marked this pull request as ready for review May 6, 2026 07:03
@Paramoshka Paramoshka requested a review from ldmonster May 6, 2026 09:42
@miklezzzz miklezzzz self-assigned this Jun 25, 2026
ldmonster and others added 8 commits June 25, 2026 15:35
…uire-httproute

Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
Signed-off-by: Mikhail Scherba <mikhail.scherba@flant.com>
@ldmonster ldmonster merged commit 5bf9086 into main Jun 30, 2026
4 checks passed
@ldmonster ldmonster deleted the chore/reuire-httproute branch June 30, 2026 06:58
@ldmonster ldmonster changed the title [chore] Implemented gateway requirements [dmt] Implemented gateway requirements Jun 30, 2026
@ldmonster ldmonster added the enhancement New feature or request label Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants