Arnavion / k8s-openapi

Rust definitions of the resource types in the Kubernetes client API
Apache License 2.0
373 stars 42 forks source link

Looking for example on how to use k8s_openapi::api::core::v1::Event::create function #146

Closed drwill-ms closed 11 months ago

drwill-ms commented 11 months ago

I see the method definition at https://docs.rs/k8s-openapi/latest/k8s_openapi/api/core/v1/struct.Event.html#method.create, but I'm new to Rust and this library; I'm having a hard time getting the code to work. I went looking for a test or a sample in this repo but couldn't find one. Can you point me to an example?

Thanks so much! :)

Arnavion commented 11 months ago

See https://docs.rs/k8s-openapi/latest/k8s_openapi/index.html

Tests are in https://github.com/Arnavion/k8s-openapi/tree/master/k8s-openapi-tests if you really want to use the API methods. But almost everyone ignores the API methods and uses kube instead.