Skip to content

Conversation

@jukie
Copy link
Contributor

@jukie jukie commented Oct 27, 2025

What type of PR is this?

What this PR does / why we need it:
Moves UseClientProtocol to ClusterSettings for use with ext Auth and ext Proc
Which issue(s) this PR fixes:

Fixes #7310

Release Notes: No

@jukie jukie requested a review from a team October 27, 2025 16:57
@jukie jukie marked this pull request as ready for review October 27, 2025 16:57
@jukie jukie requested a review from a team as a code owner October 27, 2025 16:57
@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.02%. Comparing base (f133f5e) to head (39b6d34).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7347      +/-   ##
==========================================
- Coverage   72.06%   72.02%   -0.05%     
==========================================
  Files         230      230              
  Lines       33404    33404              
==========================================
- Hits        24074    24059      -15     
- Misses       7583     7596      +13     
- Partials     1747     1749       +2     

☔ 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.

@arkodg
Copy link
Contributor

arkodg commented Oct 27, 2025

thanks for picking this one up @jukie, doesnt this need some more plumbing in gateway-api layer and xds layer as well ?
can we add test YAMLs to confirm this works

@jukie
Copy link
Contributor Author

jukie commented Oct 27, 2025

@jukie
Copy link
Contributor Author

jukie commented Oct 27, 2025

/retest

@arkodg
Copy link
Contributor

arkodg commented Oct 27, 2025

thanks, asked because I did a quick search and saw some special handling here

r.UseClientProtocol = policy.Spec.UseClientProtocol

@jukie
Copy link
Contributor Author

jukie commented Oct 27, 2025

That should be covered by the existing testdata right? Let me know if there's any case that isn't and I can add more testdata.

ClusterSettings is added inline so any refs to btp.Spec.UseClientProtocol continue working without any changes necessary.

@jukie
Copy link
Contributor Author

jukie commented Oct 27, 2025

/retest

1 similar comment
@jukie
Copy link
Contributor Author

jukie commented Oct 27, 2025

/retest

@arkodg
Copy link
Contributor

arkodg commented Oct 28, 2025

checked again and this isnt going to work, the IR field needs to change as well

useClientProtocol: ptr.Deref(httpRoute.UseClientProtocol, false),

also this may need to be tested e2e to make sure that the protocol of downstream request can impact ext auth protocol type

@jukie
Copy link
Contributor Author

jukie commented Oct 28, 2025

I'm not following, what needs to change in the IR field? If that was broken the existing testdata would be failing here. I think the follow-up PR would be for actually using it within ext auth, etc but moving into cluster settings is the first piece.

Or are you suggesting doing both here?

@arkodg
Copy link
Contributor

arkodg commented Oct 28, 2025

ah I wasn't aware this was part of the fix, if we do it in parts, it gets tricky because we cannot add a notImplementedHide marker for this

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move UseClientProtocol inside ClusterSettings

2 participants