Implement agentgateway emitter#388
Conversation
|
Hi @markuskobler. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
8119a99 to
53de3e1
Compare
|
@Stevenjin8 apologies I missed I checked in the |
|
/retest |
|
/test pull-ingress2gateway-test |
|
I'm not clear on the cause of the verify error. Running |
c7fd27c to
ee1e61f
Compare
|
/retest |
|
@markuskobler also, I'm planning on mergeing #366 (its really annoying to rebase) before this PR, so you might want to get a head start on the rebase. |
Thanks for the heads up will try to look at this later today |
|
@markuskobler We are looking to do a 1.0 release next week btw |
ee1e61f to
3607adc
Compare
@Stevenjin8 sounds good. We are also looking a agw 1.0 release by the end of this week now that the controller is fully split from kgateway. |
3607adc to
7f1e819
Compare
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markuskobler, Stevenjin8 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| agentgatewayCRDsRelease = "agentgateway-crds" | ||
| ) | ||
|
|
||
| func DeployAgentgateway( |
There was a problem hiding this comment.
Do we need this helper for any tests? If so - I'm not seeing any new test cases in this PR. If not, I wonder if we should add a helper we aren't using.
There was a problem hiding this comment.
Good question. Given that the agentgateway controller was split out from kgateway I initially just duplicated the kgateway e2e test.
There was a problem hiding this comment.
Might be an opportunity to implement the first emitter test - see category 4 in https://github.com/kubernetes-sigs/ingress2gateway/blob/main/e2e/README.md.
WDYT?
There was a problem hiding this comment.
+1 on adding a quick test. Just a sanity check that it works to help me sleep at night
There was a problem hiding this comment.
Sorry I thought I had correctly wired up the tests. It should be used now
| {name: implementation.KongName}, | ||
| {name: implementation.KgatewayName}, | ||
| {name: implementation.EnvoyGatewayName}, | ||
| {name: implementation.AgentgatewayName}, |
There was a problem hiding this comment.
This adds a smoke test for agentgateway as an implementation. This does not test any emitter features. Given that this PR is titled "Implement agentgateway emitter" I just wanted to make sure this is what you intended.
There was a problem hiding this comment.
We are planning to add more functionality now that agentgateway has released v1.0 and is no longer part of kgateway, which is what a previous PR was attempting to add agentgateway emitter support against.
The main reason I avoided adding anything beyond logging a warning for unsupported functionality was the number of changes the current go.mod would pull in. I hope to get the controller go.mod split from the api later this week or next.
I can make this a much bigger change if you wanted however?
There was a problem hiding this comment.
I don't have the full context here and have no strong opinions. Just wanted to ensure you're aware what the test you've added does and doesn't do 🙂 I'll leave it up to you.
There was a problem hiding this comment.
FWIW I think it's a good idea to have agentgateway in the implementation smoke tests.
c01b82d to
8c885d9
Compare
|
I will merge this by lazy consensus before the 1.0 release if there are no more comments. |
| * @LiorLieberman @rikatz @robscott @Stevenjin8 @youngnick | ||
| /pkg/i2gw/emitters/envoygateway/ @kkk777-7 No newline at end of file | ||
| /pkg/i2gw/emitters/envoygateway/ @kkk777-7 | ||
| /pkg/i2gw/emitters/agentgateway/ @howardjohn @npolshakova @markuskobler @danehans @puertomontt |
There was a problem hiding this comment.
Curious: Why two separate lines?
There was a problem hiding this comment.
My editor adds a newline at end of file. Happy to minimize the diff if you'd prefer.
There was a problem hiding this comment.
Tell me you use vim without telling me you use vim. I like the new line
I'm hoping to get a PR in adding support for AgentGateway regex path rewrites, which should make the emitter slightly less trivial. I've just been swamped with work this last week. |
|
@markuskobler if ou look at the path rewrite code, I've set it so it's pretty easy for you to add regex rewrites without changing provider code |
@Stevenjin8 I'm assuming your talking about the My plan was to convert the regex paths to agentgateway specific CEL equivalents. But happy to take feedback if you think there is a better way of implementing this? |
|
/lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This adds initial support for Agentgateway. Note that Agentgateway has undergone significant changes recently as it gears up for a 1.0.0 release. Critical to this feature is the migration of the controller out of kgateway and into github.com/agentgateway/agentgateway.
Which issue(s) this PR fixes:
Fixes #364
Does this PR introduce a user-facing change?: