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

allow missing svc port for sandwich #1054

Merged
merged 3 commits into from
May 18, 2024

Conversation

stevenctl
Copy link
Contributor

@stevenctl stevenctl commented May 13, 2024

Currently, if you create a sandwiched-waypoint with

kind: Gateway
spec:
  listeners:
  - port: 15123 # not 15008!

The hboneMtlsPort on a gateway address will still be 15008 (we want it to be whatever the zTunnel port is).
When we find_upstream for this waypoint's service, the port is irrelevant. Currently I have to create a bogus 15008 listener as a workaround to make this check pass in zTunnel.

The way this PR is written could possibly break things in the future though.. it would assume inbound_tunnel does port mapping. It sort of does that via application_tunnel.

@stevenctl stevenctl requested a review from a team as a code owner May 13, 2024 20:20
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 13, 2024
src/state.rs Outdated Show resolved Hide resolved
src/state.rs Outdated Show resolved Hide resolved
@howardjohn howardjohn added the do-not-merge/hold Block automatic merging of a PR. label May 13, 2024
@howardjohn
Copy link
Member

@stevenctl I approved with hold since I saw outstanding comments btw

@istio-testing istio-testing added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 18, 2024
@stevenctl
Copy link
Contributor Author

Added the UT, and made this codepath used in the sandwich_proxy_protocol namespaced test

@stevenctl stevenctl removed the do-not-merge/hold Block automatic merging of a PR. label May 18, 2024
@istio-testing istio-testing merged commit 80ac30e into istio:master May 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

5 participants