You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[test]
fn test_general() {
let kubeconfig = config::load_kube_config().expect("failed to load kubeconfig");
let kubeclient = APIClient::new(kubeconfig);
let (req, _) = api::Pod::list_namespaced_pod("kube-system", Default::default())
.expect("failed to create a request");
let list_pod = kubeclient
.request::<api::PodList>(req)
.expect("failed to list up pods");
println!("{:?}", list_pod);
}
---- test::test_general stdout ----
thread 'test::test_general' panicked at 'failed to list up pods: Error(Hyper(Error(Connect, Custom { kind: Other, error: Error { code: -67843, message: "The certificate was not trusted." } })), "https://<uuid>.k8s.ondigitalocean.com/api/v1/namespaces/kube-system/pods?")', src/main.rs:76:24
failures:
test::test_general
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
The text was updated successfully, but these errors were encountered:
Running the example code:
The text was updated successfully, but these errors were encountered: