feat: support attaching EnvoyProxy resource to Gateways#3532
feat: support attaching EnvoyProxy resource to Gateways#3532zirain merged 24 commits intoenvoyproxy:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3532 +/- ##
==========================================
- Coverage 68.36% 68.25% -0.12%
==========================================
Files 170 170
Lines 20711 20760 +49
==========================================
+ Hits 14159 14169 +10
- Misses 5530 5570 +40
+ Partials 1022 1021 -1 ☔ View full report in Codecov by Sentry. |
|
thanks for picking this one up @haoqixu, looking forward to reviewing it once its ready ! |
8d735fb to
19d9764
Compare
|
/retest |
There was a problem hiding this comment.
is there anyway to wrap these up into a helper function ? just like what we did in
There was a problem hiding this comment.
hey is this refactor related to this GH issue, if not, can we seperate it from this PR ?
There was a problem hiding this comment.
hey still seeing these refactors, so unresolving this one
There was a problem hiding this comment.
The updates in GetRouteParentContext and GetParentReferences is necessary. UpgradeParentReferences will do a deepcopy for the pointer fields and makes ParentReferences unable to be used as map keys.
There was a problem hiding this comment.
Sorry for the delay. The updates in GetRouteParentContext and GetParentReferences is indeed necessary, since the ParentRef for xRoute got all upgraded to v1.
So the codes here do need a clean-up, but we can track this in a separate issue.
b1125c1 to
19b3d24
Compare
|
/retest |
There was a problem hiding this comment.
cc @zirain since you had moved this code below in a prev commit
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
Signed-off-by: haoqixu <[email protected]>
done |
) * refactor: rename EnvoyProxy field Signed-off-by: haoqixu <[email protected]> * feat(controller): process gateway.infrastructure.parametersref Signed-off-by: haoqixu <[email protected]> * feat(translator): support attaching EnvoyProxy to Gateways Signed-off-by: haoqixu <[email protected]> * chore: fix lint Signed-off-by: haoqixu <[email protected]> * chore: update generated code Signed-off-by: haoqixu <[email protected]> * chore: fix test Signed-off-by: haoqixu <[email protected]> * test: gateway-with-infrastructure-parametersref Signed-off-by: haoqixu <[email protected]> * test: add more cases Signed-off-by: haoqixu <[email protected]> * fix: EnvoyExtensionPolicy status Signed-off-by: haoqixu <[email protected]> * trigger reconciliation for envoyproxies Signed-off-by: haoqixu <[email protected]> * chore: rename processGCParamsRef as suggested Signed-off-by: haoqixu <[email protected]> * chore: add comments to Resources Signed-off-by: haoqixu <[email protected]> * refactor: update as suggested Signed-off-by: haoqixu <[email protected]> * refactor: extract resources.GetEnvoyProxy Signed-off-by: haoqixu <[email protected]> * refactor: move attachEnvoyProxy into GatewayContext.ResetListeners Signed-off-by: haoqixu <[email protected]> * refactor: change ListenerContext.gateway to GatewayContext Signed-off-by: haoqixu <[email protected]> * refactor: move getIRKey out of inner loop Signed-off-by: haoqixu <[email protected]> * fix: reset *ir.ExtAuth for each gateway Signed-off-by: haoqixu <[email protected]> * refactor: continue early to reduce nesting Signed-off-by: haoqixu <[email protected]> * refactor: rename envoyProxies and ClassEnvoyProxy Signed-off-by: haoqixu <[email protected]> * rename json/yaml name for envoyproxy Signed-off-by: haoqixu <[email protected]> * fix: pass the right envoyProxy to t.IsEnvoyServiceRouting Signed-off-by: haoqixu <[email protected]> * test: add more cases Signed-off-by: haoqixu <[email protected]> * chore: regenerate Signed-off-by: haoqixu <[email protected]> --------- Signed-off-by: haoqixu <[email protected]> Signed-off-by: “bjlhlin” <“[email protected]”> Signed-off-by: bjlhlin <[email protected]>
) * refactor: rename EnvoyProxy field Signed-off-by: haoqixu <[email protected]> * feat(controller): process gateway.infrastructure.parametersref Signed-off-by: haoqixu <[email protected]> * feat(translator): support attaching EnvoyProxy to Gateways Signed-off-by: haoqixu <[email protected]> * chore: fix lint Signed-off-by: haoqixu <[email protected]> * chore: update generated code Signed-off-by: haoqixu <[email protected]> * chore: fix test Signed-off-by: haoqixu <[email protected]> * test: gateway-with-infrastructure-parametersref Signed-off-by: haoqixu <[email protected]> * test: add more cases Signed-off-by: haoqixu <[email protected]> * fix: EnvoyExtensionPolicy status Signed-off-by: haoqixu <[email protected]> * trigger reconciliation for envoyproxies Signed-off-by: haoqixu <[email protected]> * chore: rename processGCParamsRef as suggested Signed-off-by: haoqixu <[email protected]> * chore: add comments to Resources Signed-off-by: haoqixu <[email protected]> * refactor: update as suggested Signed-off-by: haoqixu <[email protected]> * refactor: extract resources.GetEnvoyProxy Signed-off-by: haoqixu <[email protected]> * refactor: move attachEnvoyProxy into GatewayContext.ResetListeners Signed-off-by: haoqixu <[email protected]> * refactor: change ListenerContext.gateway to GatewayContext Signed-off-by: haoqixu <[email protected]> * refactor: move getIRKey out of inner loop Signed-off-by: haoqixu <[email protected]> * fix: reset *ir.ExtAuth for each gateway Signed-off-by: haoqixu <[email protected]> * refactor: continue early to reduce nesting Signed-off-by: haoqixu <[email protected]> * refactor: rename envoyProxies and ClassEnvoyProxy Signed-off-by: haoqixu <[email protected]> * rename json/yaml name for envoyproxy Signed-off-by: haoqixu <[email protected]> * fix: pass the right envoyProxy to t.IsEnvoyServiceRouting Signed-off-by: haoqixu <[email protected]> * test: add more cases Signed-off-by: haoqixu <[email protected]> * chore: regenerate Signed-off-by: haoqixu <[email protected]> --------- Signed-off-by: haoqixu <[email protected]> Signed-off-by: bjlhlin <[email protected]>
What this PR does
Support attaching
EnvoyProxyresource to Gateways ifMergeGatewaysis disabled onGatewayClass.This PR only implements the controller part and does not implement the
egctlpart. I would like to submit another PR for theegctlpart.Which issue(s) this PR fixes: