|
18 | 18 | use super::authenticator::Authenticator; |
19 | 19 | use super::principal::{Principal, SandboxIdentitySource, SandboxPrincipal}; |
20 | 20 | use async_trait::async_trait; |
| 21 | +#[cfg(not(target_os = "windows"))] |
| 22 | +use k8s_openapi::api::authentication::v1::{TokenReview, TokenReviewSpec}; |
21 | 23 | #[cfg(any(not(target_os = "windows"), test))] |
22 | 24 | use k8s_openapi::api::{ |
23 | | - authentication::v1::{TokenReview, TokenReviewSpec, TokenReviewStatus, UserInfo}, |
| 25 | + authentication::v1::{TokenReviewStatus, UserInfo}, |
24 | 26 | core::v1::Pod, |
25 | 27 | }; |
26 | 28 | #[cfg(any(not(target_os = "windows"), test))] |
27 | 29 | use k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta; |
28 | 30 | #[cfg(any(not(target_os = "windows"), test))] |
29 | 31 | use kube::Error as KubeError; |
| 32 | +#[cfg(any(not(target_os = "windows"), test))] |
| 33 | +use kube::api::ApiResource; |
30 | 34 | #[cfg(not(target_os = "windows"))] |
31 | | -use kube::api::{Api, ApiResource, PostParams}; |
| 35 | +use kube::api::{Api, PostParams}; |
32 | 36 | #[cfg(any(not(target_os = "windows"), test))] |
33 | 37 | use kube::core::DynamicObject; |
34 | | -#[cfg(not(target_os = "windows"))] |
| 38 | +#[cfg(any(not(target_os = "windows"), test))] |
35 | 39 | use kube::core::gvk::GroupVersionKind; |
36 | 40 | use std::sync::Arc; |
37 | 41 | use tonic::Status; |
|
0 commit comments