From 5e31447ca14ef08ffa8184d3b7258a0d48b04090 Mon Sep 17 00:00:00 2001 From: clux Date: Sat, 19 Oct 2024 17:02:07 +0100 Subject: [PATCH] account for msrv Signed-off-by: clux --- kube-core/src/k8s.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kube-core/src/k8s.rs b/kube-core/src/k8s.rs index 1138aca34..597b6ade9 100644 --- a/kube-core/src/k8s.rs +++ b/kube-core/src/k8s.rs @@ -19,7 +19,6 @@ pub use { api::core::v1 as corev1, api::discovery::v1 as discoveryv1, api::events::v1 as eventsv1, - api::flowcontrol::v1 as flowcontrolv1, api::networking::v1 as networkingv1, api::node::v1 as nodev1, api::policy::v1 as policyv1, @@ -29,3 +28,8 @@ pub use { apiextensions_apiserver::pkg::apis::apiextensions::v1 as apiextensionsv1, apimachinery::pkg::apis::meta::v1 as metav1, }; + +// Names with version gates +k8s_openapi::k8s_if_ge_1_26! { + pub use api::flowcontrol::v1 as flowcontrolv1 +}