Closed toksdotdev closed 3 years ago
kube
or kube-runtime
has not been updated to support the new k8s-openapi
version yet, however an initial change is in master.
Please either pin your kube versions to git master, or wait a little bit with upgrading k8s-openapi
with kube
.
EDIT: kube and kube-runtime at 0.57.0 will now work.
As clux said, kube is pulling in the k8s-openapi 0.11 dep. Your error is coming from 0.11's build script, not 0.12's, because by switching your crate's dep on k8s-openapi to 0.12 you've stopped enabling any version features for the 0.11 dep of kube. If your goal is to use k8s-openapi with kube, then you're restricted to using the version of k8s-openapi matching kube's dep anyway.
I've been getting compilation error for the recent release of
v0.12.0
with the following errorAlthough, something I noticed is that it keeps running the
v0.11.0
'sbuild.rs
.Here is an extract from my
Cargo.toml
I've also attempted removing
v0.11.0
from the cache directory, but it keeps installing it back.I also noticed that during my build, it compiles for both
v0.11.0
andv0.12.0
as shown below, which is weird because I didn't addv0.11.0
to myCargo.toml
.As an attempt to debug what is wrong, I downgraded back to
v0.11.0
, withfeatures = ["v1_20"]
, and the build script executes successfully.