Skip to content

Commit 5e31447

Browse files
committed
account for msrv
Signed-off-by: clux <[email protected]>
1 parent 1a229ab commit 5e31447

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

kube-core/src/k8s.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub use {
1919
api::core::v1 as corev1,
2020
api::discovery::v1 as discoveryv1,
2121
api::events::v1 as eventsv1,
22-
api::flowcontrol::v1 as flowcontrolv1,
2322
api::networking::v1 as networkingv1,
2423
api::node::v1 as nodev1,
2524
api::policy::v1 as policyv1,
@@ -29,3 +28,8 @@ pub use {
2928
apiextensions_apiserver::pkg::apis::apiextensions::v1 as apiextensionsv1,
3029
apimachinery::pkg::apis::meta::v1 as metav1,
3130
};
31+
32+
// Names with version gates
33+
k8s_openapi::k8s_if_ge_1_26! {
34+
pub use api::flowcontrol::v1 as flowcontrolv1
35+
}

0 commit comments

Comments
 (0)