-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Server-Side Apply - a merge mistake in "main" branch shows wrong application/ssa/nginx-deployment-replicas-only.yaml file #39108
Comments
The one in the dev-1.26 branch is not a valid Deployment manifest. The API server will reject this YAML since it is missing some required fields. |
Ah, the problem might be that we don't want a YAML file that is a valid Deployment manifest, since this is actually being used to generate a special /kind bug I didn't actually know that I think this is a valid report. Maybe we should use an inline example rather than an external file; maybe we need a way to exempt this one YAML file from validation. If we use an inline example, that would mean changing https://kubernetes.io/docs/reference/using-api/server-side-apply/#transferring-ownership
|
If this YAML has to be an "invalid" Deployment manifest, using an inline example is more appropriate IMO. |
I'll also ask SIG Architecture if this use of |
Exactly, this is one of the "tricks" behind SSA: you only provide (to the Kubernetes client-go was updated to support these non-fully-conformant-from-an-schema-pov manifests: defining the new |
/triage accepted |
OK, so the input to Have I got that right? If so, I think we missed a key docs update when we made that change to The rest of this comment assumes that the apply configuration concept does need documenting. I think we should clearly document which A few subcommands and plugins to consider:
|
I also think we should track a new issue for to document the apply configuration concept, and leave this issue to cover the specific bug that @antaloala reported. |
#39144 is solving the reported fault (so properly closing this issue), thanks for it.
|
The content of the application/ssa/nginx-deployment-replicas-only.yaml file version showed in Server-Side Apply - Transferring Ownership section is wrong.
Previous versions where showing the right content, e.g. the one in dev-1.26 branch.
The text was updated successfully, but these errors were encountered: