chore: allow L4 upstream schemes (tcp/tls/udp) in ingress-controller CRDs - #328
Open
AlinsRan wants to merge 1 commit into
Open
chore: allow L4 upstream schemes (tcp/tls/udp) in ingress-controller CRDs#328AlinsRan wants to merge 1 commit into
AlinsRan wants to merge 1 commit into
Conversation
…CRDs APISIX accepts `tcp`, `tls` and `udp` as upstream schemes for L4 proxying, and `scheme: tls` is what makes the gateway establish the TLS session with a stream upstream. The bundled CRDs still restricted `ApisixUpstream.spec.scheme` and `BackendTrafficPolicy.spec.scheme` to the L7 set, so the API server rejected those values before the controller could see them. Syncs the scheme field with api7/api7-ingress-controller#449.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe ingress-controller CRD schemas now allow ChangesIngress controller scheme support
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Pairs with api7/api7-ingress-controller#449 (sync of apache/apisix-ingress-controller#2830, fixes apache/apisix-ingress-controller#2803), and addresses the review request there to ship the matching Helm CRDs.
APISIX accepts
tcp,tlsandudpas upstream schemes for L4 proxying, andscheme: tlsis what makes the gateway establish the TLS session with a stream upstream (plain TCP in from the client, TLS out to the backend). The CRDs bundled in this chart still restrictApisixUpstream.spec.schemeandBackendTrafficPolicy.spec.schemeto the L7 set, so on a standard Helm installation the API server rejectstcp/tls/udpbefore the controller ever sees the resource.This updates the three
schemefields incharts/ingress-controller/crds/apisix-crds.yaml(top-level andportLevelSettingsof ApisixUpstream, plus BackendTrafficPolicy) to match whatmake helm-build-crdsproduces from the controller branch, and bumps the chart version.Only the
schemeblocks are touched; the rest of the bundle is left as-is and will be refreshed by the next controller bump.Note on API7 EE: the Control Plane previously narrowed the stream upstream scheme to
tcp/udp;tlsis being enabled in api7/api7ee-3-control-plane#2869. Until a Control Plane image with that change is available,scheme: tlsis usable against the APISIX provider only.Summary by CodeRabbit
New Features
Chores