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 <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
done |
) * refactor: rename EnvoyProxy field Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * feat(controller): process gateway.infrastructure.parametersref Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * feat(translator): support attaching EnvoyProxy to Gateways Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: fix lint Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: update generated code Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: fix test Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * test: gateway-with-infrastructure-parametersref Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * test: add more cases Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * fix: EnvoyExtensionPolicy status Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * trigger reconciliation for envoyproxies Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: rename processGCParamsRef as suggested Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: add comments to Resources Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: update as suggested Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: extract resources.GetEnvoyProxy Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: move attachEnvoyProxy into GatewayContext.ResetListeners Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: change ListenerContext.gateway to GatewayContext Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: move getIRKey out of inner loop Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * fix: reset *ir.ExtAuth for each gateway Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: continue early to reduce nesting Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: rename envoyProxies and ClassEnvoyProxy Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * rename json/yaml name for envoyproxy Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * fix: pass the right envoyProxy to t.IsEnvoyServiceRouting Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * test: add more cases Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: regenerate Signed-off-by: haoqixu <hq.xu0o0@gmail.com> --------- Signed-off-by: haoqixu <hq.xu0o0@gmail.com> Signed-off-by: “bjlhlin” <“lihonglin1@jd.com”> Signed-off-by: bjlhlin <lihonglin1@jd.com>
) * refactor: rename EnvoyProxy field Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * feat(controller): process gateway.infrastructure.parametersref Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * feat(translator): support attaching EnvoyProxy to Gateways Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: fix lint Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: update generated code Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: fix test Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * test: gateway-with-infrastructure-parametersref Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * test: add more cases Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * fix: EnvoyExtensionPolicy status Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * trigger reconciliation for envoyproxies Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: rename processGCParamsRef as suggested Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: add comments to Resources Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: update as suggested Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: extract resources.GetEnvoyProxy Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: move attachEnvoyProxy into GatewayContext.ResetListeners Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: change ListenerContext.gateway to GatewayContext Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: move getIRKey out of inner loop Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * fix: reset *ir.ExtAuth for each gateway Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: continue early to reduce nesting Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * refactor: rename envoyProxies and ClassEnvoyProxy Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * rename json/yaml name for envoyproxy Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * fix: pass the right envoyProxy to t.IsEnvoyServiceRouting Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * test: add more cases Signed-off-by: haoqixu <hq.xu0o0@gmail.com> * chore: regenerate Signed-off-by: haoqixu <hq.xu0o0@gmail.com> --------- Signed-off-by: haoqixu <hq.xu0o0@gmail.com> Signed-off-by: bjlhlin <lihonglin1@jd.com>
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: