-
Notifications
You must be signed in to change notification settings - Fork 443
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
Generate Gateway API ApplyConfiguration and update Clientsets to support ServerSideApply #2537
Conversation
Thanks @dprotaso! While this looks reasonable, it's a large diff and doesn't seem like it's strictly necessary for v1.0.0. Since we've already passed RC2, I think we should wait for the next patch or minor release to include this. /hold |
Thank you, @dprotaso, I am really looking forward to using this! It may be helpful to add Extract functions, similar to https://github.com/kubernetes/client-go/blob/master/applyconfigurations/core/v1/configmap.go#L62. |
It's there at the top-level - eg. https://github.com/kubernetes-sigs/gateway-api/pull/2537/files#diff-d518444c0b279f513a665c7bfc148619760c1e8fb8824dbde9896dbd03eb454bR61 Do you see it missing for a type? |
Hey @dprotaso, sorry I'd lost track of this one! Do you mind adding something to the Implementer's Guide showing how implementations could make use of this? /hold cancel |
@robscott take a look - I've updated the implementors guide. |
5f25396
to
3ff5e65
Compare
rebased |
|
||
// From https://github.com/kubernetes/kubernetes/blob/0712728ee9caab4d04ec0a751855aca8c891b690/pkg/generated/openapi/cmd/models-schema/main.go | ||
|
||
package main |
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.
I'm going to engage with the SSA folks/wg-expression to figure out where this should land - probably the codegen for SSA would make sense.
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.
Created a slack thread - https://kubernetes.slack.com/archives/C0123CNN8F3/p1708650369536409
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.
Thanks @dprotaso!
@robscott anything else for this PR? |
@robscott following up again |
Thanks @dprotaso! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, robscott The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Let me rebase and run codegen again |
62d1b64
to
5ece10f
Compare
@robscott rebased needs another LGTM |
/lgtm |
Thank you! I'm really looking forward to using this! |
@therealmitchconnors are you able to try it out from HEAD? I know with some K8s resources the OpenAPI schema didn't have the correct I haven't done an audit of the Gateway API to ensure everything is annotated properly - I'll make an issue for that. |
I'm on vacation for two weeks, but I might find time to kick these tires... |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Server-Side Apply is a Kubernetes feature that allows multiple controllers to manage the same single resource.
Which issue(s) this PR fixes:
N/A
Does this PR introduce a user-facing change?:
Additional Notes:
To simplify review I suggest folks go through each commit
Fixes: #1639