-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Update k8s-openapi #531
Update k8s-openapi #531
Conversation
This change updates k8s-openapi to pick up Arnavion/k8s-openapi@0a9d7e4, which implements a workarond for a bug in the Kubernetes Node API that wherein empty lists are encoded as `null`. This workaround is necessary until the Kubernetes v1.22 API is released including a change to the OpenAPI spec in kubernetes/kubernetes#102159. k8s-openapi has not yet released this fix to crates.io, so instead this change uses a dependency patch to pull in the latest version from git.
@clux I've marked this as a draft since these k8s-openapi changes haven't yet been released to crates.io (so we're taking a git dependency as a patch). Please let me know if there's anything I can do to be helpful moving this forward! |
Picks up the changes from kube-rs/kube#531, which uses k8s-openapi from git. The next version will workaround cases where ContainerImages::names is null (instead of empty); and it generally replaces several unneeded options in favor of empty values.
This looks great to me. Thanks a lot for doing this. Super happy with how much the metadata accessor stuff got cleaned up by this. Did a small change in master related to dynamic objects before our 0.55 release, but don't think it should affect this branch. Looking forward to merging when k8s-openapi releases it :-) |
Note that k8s-openapi v0.12.0 supports the feature |
That's okay, we can wait a little with using that everywhere internally. |
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.
Still looks great to me, I am happy to merge if CI passes!
Released in 0.57.0. Thanks again! |
reverts most of #531 while bumping k8s-openapi for https://github.com/Arnavion/k8s-openapi/releases/tag/v0.13.0 Signed-off-by: clux <sszynrae@gmail.com>
* bump k8s-openapi 0.13.0 and revert option unpacking - fixes #581 reverts most of #531 while bumping k8s-openapi for https://github.com/Arnavion/k8s-openapi/releases/tag/v0.13.0 Signed-off-by: clux <sszynrae@gmail.com> * rust upgrade needs a bump to stdout test in kube-derive Signed-off-by: clux <sszynrae@gmail.com> * port categories change into crd_derive test Signed-off-by: clux <sszynrae@gmail.com> * clippy Signed-off-by: clux <sszynrae@gmail.com>
This change updates k8s-openapi to pick up Arnavion/k8s-openapi@0a9d7e4,
which implements a workarond for a bug in the Kubernetes Node API
wherein empty lists are encoded as
null
. This workaround is necessaryuntil the Kubernetes v1.22 API is released including a change to the
OpenAPI spec in kubernetes/kubernetes#102159.
k8s-openapi has not yet released this fix to crates.io, so instead this
change uses a dependency patch to pull in the latest version from git.