[DNM] Use upstream gateway-api types #2595
Annotations
21 errors
audit (advisories)
The job was canceled because "bans_licenses_sources" failed.
|
check:
policy-test/src/lib.rs#L15
error[E0432]: unresolved import `linkerd_policy_controller_k8s_api::policy::httproute::ParentReference`
--> policy-test/src/lib.rs:15:14
|
15 | policy::{httproute::ParentReference, EgressNetwork, TrafficPolicy},
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ParentReference` in `policy::httproute`
|
= help: consider importing one of these structs instead:
crate::k8s::api::networking::v1beta1::ParentReference
k8s_openapi::api::networking::v1beta1::ParentReference
linkerd_policy_controller_k8s_api::api::networking::v1beta1::ParentReference
|
check:
policy-test/src/outbound_api.rs#L2
error[E0432]: unresolved import `k8s_gateway_api`
--> policy-test/src/outbound_api.rs:2:5
|
2 | use k8s_gateway_api::ParentReference;
| ^^^^^^^^^^^^^^^ use of undeclared crate or module `k8s_gateway_api`
|
help: there is a crate or module with a similar name
|
2 | use gateway_api::ParentReference;
| ~~~~~~~~~~~
|
check:
policy-test/src/test_route.rs#L1
error[E0432]: unresolved imports `k8s_gateway_api`, `k8s_gateway_api`
--> policy-test/src/test_route.rs:1:5
|
1 | use k8s_gateway_api::{self as gateway, BackendRef, ParentReference};
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ no external crate `k8s_gateway_api`
| |
| use of undeclared crate or module `k8s_gateway_api`
|
help: there is a crate or module with a similar name
|
1 | use gateway_api::{self as gateway, BackendRef, ParentReference};
| ~~~~~~~~~~~
|
check:
policy-test/src/test_route.rs#L1
error[E0432]: unresolved imports `k8s_gateway_api`, `k8s_gateway_api`
--> policy-test/src/test_route.rs:1:5
|
1 | use k8s_gateway_api::{self as gateway, BackendRef, ParentReference};
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ no external crate `k8s_gateway_api`
| |
| use of undeclared crate or module `k8s_gateway_api`
|
help: there is a crate or module with a similar name
|
1 | use gateway_api::{self as gateway, BackendRef, ParentReference};
| ~~~~~~~~~~~
|
check:
policy-test/src/lib.rs#L240
error[E0412]: cannot find type `HttpRoute` in module `api`
--> policy-test/src/lib.rs:240:77
|
240 | let route_status = await_condition(client, ns, name, |obj: Option<&api::HttpRoute>| -> bool {
| ^^^^^^^^^ not found in `api`
|
help: consider importing one of these items
|
12 + use crate::grpc::inbound::HttpRoute;
|
12 + use crate::grpc::outbound::HttpRoute;
|
12 + use crate::k8s::policy::HttpRoute;
|
12 + use linkerd2_proxy_api::inbound::HttpRoute;
|
and 4 other candidates
help: if you import `HttpRoute`, refer to it directly
|
240 - let route_status = await_condition(client, ns, name, |obj: Option<&api::HttpRoute>| -> bool {
240 + let route_status = await_condition(client, ns, name, |obj: Option<&HttpRoute>| -> bool {
|
|
check:
policy-test/src/lib.rs#L280
error[E0412]: cannot find type `GrpcRouteStatus` in module `k8s::gateway`
--> policy-test/src/lib.rs:280:20
|
280 | ) -> k8s::gateway::GrpcRouteStatus {
| ^^^^^^^^^^^^^^^ not found in `k8s::gateway`
|
check:
policy-test/src/lib.rs#L285
error[E0412]: cannot find type `GrpcRoute` in module `k8s::gateway`
--> policy-test/src/lib.rs:285:37
|
285 | |obj: Option<&k8s::gateway::GrpcRoute>| -> bool {
| ^^^^^^^^^ not found in `k8s::gateway`
|
help: consider importing one of these items
|
12 + use crate::grpc::inbound::GrpcRoute;
|
12 + use crate::grpc::outbound::GrpcRoute;
|
12 + use linkerd2_proxy_api::inbound::GrpcRoute;
|
12 + use linkerd2_proxy_api::outbound::GrpcRoute;
|
and 2 other candidates
help: if you import `GrpcRoute`, refer to it directly
|
285 - |obj: Option<&k8s::gateway::GrpcRoute>| -> bool {
285 + |obj: Option<&GrpcRoute>| -> bool {
|
|
check:
policy-test/src/lib.rs#L303
error[E0412]: cannot find type `TlsRouteStatus` in module `k8s::gateway`
--> policy-test/src/lib.rs:303:20
|
303 | ) -> k8s::gateway::TlsRouteStatus {
| ^^^^^^^^^^^^^^ not found in `k8s::gateway`
|
check:
policy-test/src/lib.rs#L308
error[E0412]: cannot find type `TlsRoute` in module `k8s::gateway`
--> policy-test/src/lib.rs:308:37
|
308 | |obj: Option<&k8s::gateway::TlsRoute>| -> bool {
| ^^^^^^^^ not found in `k8s::gateway`
|
help: consider importing one of these structs
|
12 + use crate::grpc::outbound::TlsRoute;
|
12 + use linkerd2_proxy_api::outbound::TlsRoute;
|
12 + use linkerd_policy_controller_core::outbound::TlsRoute;
|
help: if you import `TlsRoute`, refer to it directly
|
308 - |obj: Option<&k8s::gateway::TlsRoute>| -> bool {
308 + |obj: Option<&TlsRoute>| -> bool {
|
|
check:
policy-test/src/lib.rs#L326
error[E0412]: cannot find type `TcpRouteStatus` in module `k8s::gateway`
--> policy-test/src/lib.rs:326:20
|
326 | ) -> k8s::gateway::TcpRouteStatus {
| ^^^^^^^^^^^^^^ not found in `k8s::gateway`
|
clippy:
policy-test/src/lib.rs#L15
error[E0432]: unresolved import `linkerd_policy_controller_k8s_api::policy::httproute::ParentReference`
--> policy-test/src/lib.rs:15:14
|
15 | policy::{httproute::ParentReference, EgressNetwork, TrafficPolicy},
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ParentReference` in `policy::httproute`
|
= help: consider importing one of these structs instead:
crate::k8s::api::networking::v1beta1::ParentReference
k8s_openapi::api::networking::v1beta1::ParentReference
linkerd_policy_controller_k8s_api::api::networking::v1beta1::ParentReference
|
clippy:
policy-test/src/outbound_api.rs#L2
error[E0432]: unresolved import `k8s_gateway_api`
--> policy-test/src/outbound_api.rs:2:5
|
2 | use k8s_gateway_api::ParentReference;
| ^^^^^^^^^^^^^^^ use of undeclared crate or module `k8s_gateway_api`
|
help: there is a crate or module with a similar name
|
2 | use gateway_api::ParentReference;
| ~~~~~~~~~~~
|
clippy:
policy-test/src/test_route.rs#L1
error[E0432]: unresolved imports `k8s_gateway_api`, `k8s_gateway_api`
--> policy-test/src/test_route.rs:1:5
|
1 | use k8s_gateway_api::{self as gateway, BackendRef, ParentReference};
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ no external crate `k8s_gateway_api`
| |
| use of undeclared crate or module `k8s_gateway_api`
|
help: there is a crate or module with a similar name
|
1 | use gateway_api::{self as gateway, BackendRef, ParentReference};
| ~~~~~~~~~~~
|
clippy:
policy-test/src/test_route.rs#L1
error[E0432]: unresolved imports `k8s_gateway_api`, `k8s_gateway_api`
--> policy-test/src/test_route.rs:1:5
|
1 | use k8s_gateway_api::{self as gateway, BackendRef, ParentReference};
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ no external crate `k8s_gateway_api`
| |
| use of undeclared crate or module `k8s_gateway_api`
|
help: there is a crate or module with a similar name
|
1 | use gateway_api::{self as gateway, BackendRef, ParentReference};
| ~~~~~~~~~~~
|
clippy:
policy-test/src/lib.rs#L240
error[E0412]: cannot find type `HttpRoute` in module `api`
--> policy-test/src/lib.rs:240:77
|
240 | let route_status = await_condition(client, ns, name, |obj: Option<&api::HttpRoute>| -> bool {
| ^^^^^^^^^ not found in `api`
|
help: consider importing one of these items
|
12 + use crate::grpc::inbound::HttpRoute;
|
12 + use crate::grpc::outbound::HttpRoute;
|
12 + use crate::k8s::policy::HttpRoute;
|
12 + use linkerd2_proxy_api::inbound::HttpRoute;
|
and 4 other candidates
help: if you import `HttpRoute`, refer to it directly
|
240 - let route_status = await_condition(client, ns, name, |obj: Option<&api::HttpRoute>| -> bool {
240 + let route_status = await_condition(client, ns, name, |obj: Option<&HttpRoute>| -> bool {
|
|
clippy:
policy-test/src/lib.rs#L280
error[E0412]: cannot find type `GrpcRouteStatus` in module `k8s::gateway`
--> policy-test/src/lib.rs:280:20
|
280 | ) -> k8s::gateway::GrpcRouteStatus {
| ^^^^^^^^^^^^^^^ not found in `k8s::gateway`
|
clippy:
policy-test/src/lib.rs#L285
error[E0412]: cannot find type `GrpcRoute` in module `k8s::gateway`
--> policy-test/src/lib.rs:285:37
|
285 | |obj: Option<&k8s::gateway::GrpcRoute>| -> bool {
| ^^^^^^^^^ not found in `k8s::gateway`
|
help: consider importing one of these items
|
12 + use crate::grpc::inbound::GrpcRoute;
|
12 + use crate::grpc::outbound::GrpcRoute;
|
12 + use linkerd2_proxy_api::inbound::GrpcRoute;
|
12 + use linkerd2_proxy_api::outbound::GrpcRoute;
|
and 2 other candidates
help: if you import `GrpcRoute`, refer to it directly
|
285 - |obj: Option<&k8s::gateway::GrpcRoute>| -> bool {
285 + |obj: Option<&GrpcRoute>| -> bool {
|
|
clippy:
policy-test/src/lib.rs#L303
error[E0412]: cannot find type `TlsRouteStatus` in module `k8s::gateway`
--> policy-test/src/lib.rs:303:20
|
303 | ) -> k8s::gateway::TlsRouteStatus {
| ^^^^^^^^^^^^^^ not found in `k8s::gateway`
|
clippy:
policy-test/src/lib.rs#L308
error[E0412]: cannot find type `TlsRoute` in module `k8s::gateway`
--> policy-test/src/lib.rs:308:37
|
308 | |obj: Option<&k8s::gateway::TlsRoute>| -> bool {
| ^^^^^^^^ not found in `k8s::gateway`
|
help: consider importing one of these structs
|
12 + use crate::grpc::outbound::TlsRoute;
|
12 + use linkerd2_proxy_api::outbound::TlsRoute;
|
12 + use linkerd_policy_controller_core::outbound::TlsRoute;
|
help: if you import `TlsRoute`, refer to it directly
|
308 - |obj: Option<&k8s::gateway::TlsRoute>| -> bool {
308 + |obj: Option<&TlsRoute>| -> bool {
|
|
clippy:
policy-test/src/lib.rs#L326
error[E0412]: cannot find type `TcpRouteStatus` in module `k8s::gateway`
--> policy-test/src/lib.rs:326:20
|
326 | ) -> k8s::gateway::TcpRouteStatus {
| ^^^^^^^^^^^^^^ not found in `k8s::gateway`
|