async fn make_client() -> Result<APIClient> {
    let config = if let Ok(cfg) = kube::config::incluster_config() {
        cfg
    } else {
        kube::config::load_kube_config()
            .await
            .map_err(ErrorKind::KubeError)?
    };
    Ok(kube::client::APIClient::new(config))
}
/// Client creator
///
/// TODO: embed inside shipcat::apply when needed for other things
Client creator
TODO: embed inside shipcat::apply when needed for other things
Client creator TODO : embed inside shipcat :: apply when needed for other things
async fn make_client() -> Result<APIClient> {
    let config = if let Ok(cfg) = kube::config::incluster_config() {
        cfg
    } else {
        kube::config::load_kube_config()
            .await
            .map_err(ErrorKind::KubeError)?
    };
    Ok(kube::client::APIClient::new(config))
}
async fn make_client ( ) -> Result < APIClient > { let config = if let Ok ( cfg ) = kube :: config :: incluster_config ( ) { cfg } else { kube :: config :: load_kube_config ( ) . await . map_err ( ErrorKind :: KubeError ) ? } ; Ok ( kube :: client :: APIClient :: new ( config ) ) }
Client creator
TODO: embed inside shipcat::apply when needed for other things
Client creator TODO : embed inside shipcat :: apply when needed for other things