blob: c8be7167ad56c231252f180e38da6530e17d86cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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 }
}
}
|