Function mz_orchestrator_kubernetes::util::create_client

source ·
pub async fn create_client(context: String) -> Result<(Client, String), Error>
Expand description

Constructs a new Kubernetes client.

The context specifies the Kubernetes context to load. If loading from the context fails, the in-cluster configuration is attempted.

Returns the constructed client and the default namespace loaded from the configuration.