-
I'm trying to use the discovery API with use kube::{Client, Error, api::GroupVersionKind, discovery};
#[tokio::main]
async fn main() -> Result<(), Error> {
let client = Client::try_default().await?;
let gvk = GroupVersionKind{
group: "core".into(),
version: "v1".into(),
kind: "Node".into(),
};
let _disco = discovery::pinned_kind(&client, &gvk).await?;
Ok(())
} Am I doing something wrong? This works with other resource types. |
Beta Was this translation helpful? Give feedback.
Answered by
clux
Oct 2, 2021
Replies: 2 comments
-
I believe the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
clux
-
You're quite right. Thanks for the quick response! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe the
group
keys should just be""
there. That's what the group is actually called.