use kube::Client; /// Context injected with each `reconcile` and `on_error` method invocation. pub struct ContextData { /// Kubernetes client to make Kubernetes API requests with. pub client: Client, } impl ContextData { /// Constructs a new instance of ContextData. /// /// # Arguments: /// - `client`: A Kubernetes client to make Kubernetes REST API requests with. Resources /// will be created and deleted with this client. pub fn new(client: Client) -> Self { ContextData { client } } }