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
Yaml.load
fails for custom resource definition with x-kubernetes-preserve-unknown-fields
#1930
Comments
@dennis-benzinger-hybris thank you for reporting this, i think it's already fixed by #1804, the fix is yet on the master branch tho. |
Thanks for the update. Yes, my issue looks very similar to #1796. Can you already give a rough ETA for the next release? |
We need to regenerate for Kubernetes API 1.22, which has proven to be slightly more complicated than usual (there are lots of API changes needed) but I think we will get there sometime in the next 1-2 weeks. If you want to create a cherry-pick of the fix into the release-13 release branch, I can probably cut a 13.0.2 release somewhat faster than the upcoming 14.0.0 --brendan |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions 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/test-infra repository. |
Describe the bug
Yaml.load
of a custom resource definition including the parameterx-kubernetes-preserve-unknown-fields
(https://kubernetes.io/docs/reference/kubernetes-api/extend-resources/custom-resource-definition-v1/#JSONSchemaProps) fails:It works if you specify it as
xKubernetesPreserveUnknownFields
but then the YAML is incompatible with other Kubernetes clients.You can reproduce it with these files:
https://gist.github.com/dennis-benzinger-hybris/270b996c1ba2104467a29b373624c817
** Client Version **
Tried with 13.0.0 and 11.0.2
** Kubernetes Version **
1.22.1
** Java Version **
Java 8
The text was updated successfully, but these errors were encountered: