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

combine proxymode = shared and inpod_mode = true #1031

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bleggett
Copy link
Contributor

@bleggett bleggett commented May 8, 2024

We currently have ProxyMode::Dedicated | Shared and InpodEnabled: true|false and I can't think of any scenarios where those are not basically indicating the same thing.

We also sort of don't use ProxyMode at all, and I think we should - the tenancy model is more important to express than how we do the tenancy model (currently we have only one multitenant model anyway, so why make it optional?).

@istio-testing
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@istio-testing istio-testing added do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 8, 2024
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
@bleggett bleggett force-pushed the bleggett/make-use-of-proxy-mode branch from b580e31 to 3e42590 Compare May 8, 2024 20:39
@bleggett bleggett marked this pull request as ready for review May 8, 2024 20:41
@bleggett bleggett requested review from a team as code owners May 8, 2024 20:41
@istio-testing istio-testing removed the do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. label May 8, 2024
@bleggett bleggett added the do-not-merge/hold Block automatic merging of a PR. label May 8, 2024
@bleggett
Copy link
Contributor Author

bleggett commented May 8, 2024

slapping a hold on until @keithmattix @jaellio @justinpettit have a chance to weigh in.

Copy link
Member

@howardjohn howardjohn left a comment

Choose a reason for hiding this comment

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

Hmm, how does direct.rs work still?

This seems to break local development flows which I didn't realize would happen when initially discussing

@bleggett
Copy link
Contributor Author

bleggett commented May 9, 2024

Hmm, how does direct.rs work still?

By setting proxy_mode: config::ProxyMode::Dedicated in the test config it uses.

This seems to break local development flows which I didn't realize would happen when initially discussing

Local development flows as in proxy_mode: config::ProxyMode::Dedicated flows?

Or local development flows as in proxy_mode: config::ProxyMode::Shared flows but without any inpod machinery?

@howardjohn
Copy link
Member

Doesn't dedicated not allow multiple clients with unique source though? do we just not test that

@bleggett
Copy link
Contributor Author

bleggett commented May 9, 2024

Doesn't dedicated not allow multiple clients with unique source though? do we just not test that

I don't believe we test that. Probably because we have too many flags that influence how tenancy works.

That's kind of what I'm trying to say with this PR, we really only have two tenancy modes as far as I can see - multi tenant and single tenant.

Multitenant is only supported, tested, exercised and fully functional with inpod.

And if we don't test it and we don't use it, I don't know why we carry it/am waiting for an argument as to why we should carry (and thus test) it, or not.

@howardjohn
Copy link
Member

And if we don't test it and we don't use it, I don't know why we carry it/am waiting for an argument as to why we should carry (and thus test) it, or not.

Well we do test it, this PR removed the tests 🙂. This currently breaks how develop and ~exclusively run ztunnel. Mind if I take a bit to poke around and see if there are viable alternatives with this change to develop locally?

@bleggett
Copy link
Contributor Author

bleggett commented May 9, 2024

Well we do test it, this PR removed the tests 🙂. This currently breaks how develop and ~exclusively run ztunnel. Mind if I take a bit to poke around and see if there are viable alternatives with this change to develop locally?

Fair, we lightly test it, sorta, in one spot with 3 tests, and don't support the mode. Yep, please - I don't develop with standalone local ztunnel so I'm not the best testbed for that.

(Am also OK with just not doing this if it's a pain - just feels like we should drop or consolidate these flags)

@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label May 11, 2024
@istio-testing
Copy link
Contributor

PR needs rebase.

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
do-not-merge/hold Block automatic merging of a PR. needs-rebase Indicates a PR needs to be rebased before being merged size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants