Skip to content
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

Fails to compile against k8s-openapi with the 1_22 feature #621

Closed
lfrancke opened this issue Aug 10, 2021 · 4 comments · Fixed by #622
Closed

Fails to compile against k8s-openapi with the 1_22 feature #621

lfrancke opened this issue Aug 10, 2021 · 4 comments · Fixed by #622
Labels
bug Something isn't working core generic apimachinery style work

Comments

@lfrancke
Copy link
Contributor

error[E0433]: failed to resolve: could not find `v1beta1` in `apiexts`
  --> /home/lars/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/kube-core-0.59.0/src/crd.rs:33:37
   |
33 |         fn crd() -> super::apiexts::v1beta1::CustomResourceDefinition;
   |                                     ^^^^^^^ could not find `v1beta1` in `apiexts`

https://kubernetes.io/blog/2021/07/14/upcoming-changes-in-kubernetes-1-22/#api-changes
The v1beta1 thing as been removed in 1.22.

@clux clux added bug Something isn't working core generic apimachinery style work labels Aug 10, 2021
@clux
Copy link
Member

clux commented Aug 10, 2021

Ah. Right. Yup, that probably needs a feature workaround. Probably one of:

  • gated on a v1_22 feature (but don't really want to introduce version features here)
  • gated on the k8s-openapi feature (but don't think we can gate on features in other crates)
  • gated behind a deprecated_apis feature

The last lets users explicitly opt in while they exist in k8s-openapi, without us having to track versions

@lfrancke
Copy link
Contributor Author

Option two would be the "best" in terms of usability but if that doesn't work I'm in favor of the last option as well.

@nightkr
Copy link
Member

nightkr commented Aug 10, 2021 via email

@clux clux linked a pull request Aug 10, 2021 that will close this issue
@clux
Copy link
Member

clux commented Aug 10, 2021

Started a PR for this in #622. Using the longer name feature as suggested, completely agree with that argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core generic apimachinery style work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants