Skip to content

Commit

Permalink
Add v4.6 to SupportedVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchaoa committed Sep 26, 2023
1 parent 6498131 commit 25cd674
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ api = ["http", "percent-encoding", "url"]
v4_2 = [ "k8s-openapi/v1_15" ]
v4_3 = [ "k8s-openapi/v1_16" ]
v4_4 = [ "k8s-openapi/v1_17" ]
v4_5 = [ "k8s-openapi/v1_18" ]
v4_6 = [ "k8s-openapi/v1_19" ]
# Currently, https://github.com/ctron/openshift-openapi only supports v4.5 and k8s-openapi feature v1_18,
# So v4.5 here actually uses the latest version v4.6 and k8s-openapi feature v1_19.
v4_5 = [ "k8s-openapi/v1_19" ]

[patch.crates-io]
#k8s-openapi = { git = "https://github.com/Arnavion/k8s-openapi", branch="master" }
Expand Down
10 changes: 3 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,17 +465,13 @@ mod v4_4;
#[cfg(feature = "v4_4")]
pub use self::v4_4::*;

// Currently, https://github.com/ctron/openshift-openapi only supports v4.5,
// So v4.5 here actually uses the latest version v4.6.
#[cfg(feature = "v4_5")]
mod v4_5;
#[cfg(feature = "v4_5")]
pub use self::v4_5::*;

#[cfg(feature = "v4_6")]
mod v4_6;
#[cfg(feature = "v4_6")]
#[cfg(feature = "v4_5")]
pub use self::v4_6::*;


include!(concat!(
env!("OUT_DIR"),
"/conditional_compilation_macros.rs"
Expand Down

0 comments on commit 25cd674

Please sign in to comment.