-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Running the example code:
#[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
Metadata
Metadata
Assignees
Labels
No labels