-
Notifications
You must be signed in to change notification settings - Fork 361
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
feat: support attaching EnvoyProxy resource to Gateways #3532
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 |
classRefsEnvoyProxy(&gc, ep) { | ||
return true | ||
ref := gtw.Spec.Infrastructure.ParametersRef | ||
if !(string(ref.Group) == egv1a1.GroupVersion.Group && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there anyway to wrap these up into a helper function ? just like what we did in
func refsEnvoyProxy(gc *gwapiv1.GatewayClass) bool { |
@@ -44,43 +44,6 @@ func PortNumPtrV1Alpha2(port int) *gwapiv1a2.PortNumber { | |||
return &pn | |||
} | |||
|
|||
func UpgradeParentReferences(old []gwapiv1a2.ParentReference) []gwapiv1.ParentReference { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey still seeing these refactors, so unresolving this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updates in GetRouteParentContext
and GetParentReferences
is necessary. UpgradeParentReferences
will do a deepcopy for the pointer fields and makes ParentReference
s unable to be used as map
keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @shawnh2 who had last updated this lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
@@ -193,6 +196,19 @@ func (r *gatewayAPIReconciler) Reconcile(ctx context.Context, _ reconcile.Reques | |||
gwcResources = append(gwcResources, gwcResource) | |||
resourceMappings := newResourceMapping() | |||
|
|||
// Process the parametersRef of the accepted GatewayClass. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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”>
) * 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”> 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”> 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”> 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”> 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>
) * 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
EnvoyProxy
resource to Gateways ifMergeGateways
is disabled onGatewayClass
.This PR only implements the controller part and does not implement the
egctl
part. I would like to submit another PR for theegctl
part.Which issue(s) this PR fixes: