-
Notifications
You must be signed in to change notification settings - Fork 830
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
Add OpenAPI x-kubernetes-patch keys for patching CRDs #3112
Comments
I've been looking into this and looks like the keys are specifically being removed: agones/build/scripts/k8s-export-openapi/main.go Lines 221 to 228 in 9e4400b
Why is this the case? |
I'm going back through history (since this was done a while ago), but as far as I can tell, those properties are not supported on CRDs, so we strip them off sub-resources, such as Happy to be proven wrong however! |
'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions ' |
Just checking in to see if there is more we can do here, or if my comment above about non-support on CRDs makes this a non-starter? |
I've been using patch merge keys for the past year for the past year or so without any issues on GameServer CRDs with Kustomize. I just had to end up exporting CRDs, manually modifying it to add the keys and passing it along to Kustomize to make it work. |
Sounds like it's worth a review! Happy to also accept PRs with the changes to our tools and accompanying exports. |
'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions ' |
Moving to |
Is your feature request related to a problem? Please describe.
I am using Kustomize to patch Agones Fleets. If I attempt to do this right now without a custom OpenAPI schema, it will simply replace what I'm attempting to patch instead of merging.
Describe the solution you'd like
Add x-kubernetes-patch keys to allow merging e.g. containers, initContainers and more.
Describe alternatives you've considered
I can get this working locally by exporting the OpenAPI schema and adding the keys myself.
Additional context
N/A
The text was updated successfully, but these errors were encountered: