Skip to content

Disable topology injector for k8s 1.35#7830

Closed
jukie wants to merge 16 commits intoenvoyproxy:mainfrom
jukie:topology-injector-k8s-1_35
Closed

Disable topology injector for k8s 1.35#7830
jukie wants to merge 16 commits intoenvoyproxy:mainfrom
jukie:topology-injector-k8s-1_35

Conversation

@jukie
Copy link
Copy Markdown
Contributor

@jukie jukie commented Dec 27, 2025

What this PR does / why we need it:

  • The PodTopologyLabelsAdmission KEP is implemented and enabled by default for K8s v1.35+ so we can remove the admission webhook I previously added which has some edge cases anyways. This will be much more reliable and also removes the need for extra RBAC and code logic for the controller. We can fully deprecate the internal topology injector code at k8s v1.39 (we officially support 4 k8s versions) so by around 2027 January-ish.
  • Adds CI worklfow targets for k8s v1.35 (cherry-picks from ci: add tests for Kubernetes 1.35 #7788 @beckcl)

Which issue(s) this PR fixes:

Fixes #7443

Release Notes: Yes

jukie and others added 5 commits December 27, 2025 14:01
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
- add Kubernetes 1.35 conformance, e2e, and
  envtests tests
- drop Kubernetes 1.31 conformance, e2e, and
  envtests tests

Signed-off-by: Clemens Beck <mail@beckcl.dev>
Fix failing CEL validation tests related
to changed error handling in K8s 1.35.

The pattern changed from:

`Invalid value: \"object\": <detailed error>`

to:

`Invalid value: <detailed error>`

Signed-off-by: Clemens Beck <mail@beckcl.dev>
fixes the expected error message to match
validation annotation at
https://github.com/envoyproxy/gateway/blob/2901f8243ec0c12d7d34a943f137984f0d3c50ea/api/v1alpha1/healthcheck_types.go#L171

Signed-off-by: Clemens Beck <mail@beckcl.dev>
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.71%. Comparing base (e7bea5b) to head (d6defd4).
⚠️ Report is 294 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7830   +/-   ##
=======================================
  Coverage   72.70%   72.71%           
=======================================
  Files         235      235           
  Lines       35100    35104    +4     
=======================================
+ Hits        25521    25526    +5     
+ Misses       7761     7760    -1     
  Partials     1818     1818           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
@jukie jukie force-pushed the topology-injector-k8s-1_35 branch from f8c4ed7 to 0dffc0a Compare December 28, 2025 00:12
@jukie jukie marked this pull request as ready for review December 28, 2025 00:15
@jukie jukie requested a review from a team as a code owner December 28, 2025 00:15
@jukie jukie requested a review from a team December 28, 2025 00:15
Comment on lines +136 to +152
- version: v1.31.12
- version: v1.32.11
ipFamily: ipv4
profile: default
- version: v1.32.8
- version: v1.33.7
ipFamily: ipv4
profile: default
- version: v1.33.4
- version: v1.34.3
ipFamily: ipv6 # only run ipv6 test on this version to save time
profile: default
# TODO: this's IPv4 first, need a way to test IPv6 first.
- version: v1.34.2
- version: v1.35.0
ipFamily: dual # only run dual test on latest version to save time
profile: default
- version: v1.34.2
- version: v1.35.0
ipFamily: dual # only run dual test on latest version to save time
profile: gateway-namespace-mode
- version: v1.34.2
- version: v1.35.0
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this also includes a bump for the following:

  • 1.32.8 --> 1.32.8
  • 1.33.4 --> 1.33.7
  • 1.34.2 --> 1.34.3

Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
@jukie jukie force-pushed the topology-injector-k8s-1_35 branch from eafde73 to 6e371d6 Compare December 28, 2025 00:18
@jukie
Copy link
Copy Markdown
Contributor Author

jukie commented Dec 28, 2025

/retest

1 similar comment
@jukie
Copy link
Copy Markdown
Contributor Author

jukie commented Dec 28, 2025

/retest

@jukie jukie marked this pull request as draft December 28, 2025 06:32
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
@jukie jukie force-pushed the topology-injector-k8s-1_35 branch from 6f66129 to a6a2ab9 Compare December 28, 2025 17:44
jukie and others added 4 commits December 28, 2025 10:45
Signed-off-by: Isaac Wilson <10012479+jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
@jukie
Copy link
Copy Markdown
Contributor Author

jukie commented Dec 29, 2025

/retest

jukie and others added 2 commits December 29, 2025 21:15
Signed-off-by: Isaac Wilson <10012479+jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Jan 1, 2026

should we wait until v1.34 EOLs to add this in ?

@jukie
Copy link
Copy Markdown
Contributor Author

jukie commented Jan 2, 2026

I'd be open to it, I think a case could be made for either direction. If we waited we could then do all the changes at once and wouldn't have to support a mixed mode like this.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 1, 2026

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace topologyInjector with PodTopologyLabelsAdmission

2 participants