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

feat: support attaching EnvoyProxy resource to Gateways #3532

Merged
merged 24 commits into from
Jun 20, 2024

Conversation

haoqixu
Copy link
Contributor

@haoqixu haoqixu commented Jun 4, 2024

What this PR does
Support attaching EnvoyProxy resource to Gateways if MergeGateways is disabled on GatewayClass.

This PR only implements the controller part and does not implement the egctl part. I would like to submit another PR for the egctl part.

Which issue(s) this PR fixes:

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 70.76412% with 88 lines in your changes missing coverage. Please review.

Project coverage is 68.25%. Comparing base (d49337b) to head (f72618f).

Files Patch % Lines
internal/provider/kubernetes/controller.go 26.73% 67 Missing and 7 partials ⚠️
internal/gatewayapi/securitypolicy.go 82.85% 3 Missing and 3 partials ⚠️
internal/gatewayapi/validate.go 82.14% 5 Missing ⚠️
internal/gatewayapi/envoyextensionpolicy.go 92.00% 1 Missing and 1 partial ⚠️
internal/gatewayapi/ext_service.go 80.00% 0 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

@arkodg
Copy link
Contributor

arkodg commented Jun 4, 2024

thanks for picking this one up @haoqixu, looking forward to reviewing it once its ready !

@haoqixu haoqixu force-pushed the feat-3317 branch 8 times, most recently from 8d735fb to 19d9764 Compare June 6, 2024 06:39
@haoqixu
Copy link
Contributor Author

haoqixu commented Jun 6, 2024

/retest

@haoqixu haoqixu marked this pull request as ready for review June 6, 2024 07:26
@haoqixu haoqixu requested a review from a team as a code owner June 6, 2024 07:26
internal/provider/kubernetes/controller.go Show resolved Hide resolved
classRefsEnvoyProxy(&gc, ep) {
return true
ref := gtw.Spec.Infrastructure.ParametersRef
if !(string(ref.Group) == egv1a1.GroupVersion.Group &&
Copy link
Contributor

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 {

internal/provider/kubernetes/controller.go Outdated Show resolved Hide resolved
internal/gatewayapi/resource.go Outdated Show resolved Hide resolved
@@ -44,43 +44,6 @@ func PortNumPtrV1Alpha2(port int) *gwapiv1a2.PortNumber {
return &pn
}

func UpgradeParentReferences(old []gwapiv1a2.ParentReference) []gwapiv1.ParentReference {
Copy link
Contributor

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 ?

Copy link
Contributor

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

Copy link
Contributor Author

@haoqixu haoqixu Jun 10, 2024

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 ParentReferences unable to be used as map keys.

Copy link
Contributor

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

Copy link
Contributor

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.

@haoqixu haoqixu force-pushed the feat-3317 branch 3 times, most recently from b1125c1 to 19b3d24 Compare June 7, 2024 04:45
@haoqixu haoqixu requested review from arkodg and shawnh2 June 7, 2024 05:08
@haoqixu
Copy link
Contributor Author

haoqixu commented Jun 7, 2024

/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.
Copy link
Contributor

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

@Xunzhuo Xunzhuo changed the title feat: Support attaching EnvoyProxy resource to Gateways feat: support attaching EnvoyProxy resource to Gateways Jun 10, 2024
haoqixu added 12 commits June 20, 2024 14:12
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>
@haoqixu
Copy link
Contributor Author

haoqixu commented Jun 20, 2024

@haoqixu can rebase or merge main to fix the conflict.

done

@zirain zirain merged commit c752b88 into envoyproxy:main Jun 20, 2024
23 checks passed
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 24, 2024
)

* 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”>
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 24, 2024
)

* 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>
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 24, 2024
)

* 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>
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 24, 2024
)

* 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>
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 24, 2024
)

* 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>
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 24, 2024
)

* 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>
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 25, 2024
)

* 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>
bjlhlin pushed a commit to bjlhlin/gateway that referenced this pull request Jun 26, 2024
)

* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support attaching EnvoyProxy resource to Gateways
5 participants