diff --git a/Cargo.lock b/Cargo.lock index 7a05e76..c89c760 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -794,9 +794,9 @@ dependencies = [ [[package]] name = "kube" -version = "0.71.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "342744dfeb81fe186b84f485b33f12c6a15d3396987d933b06a566a3db52ca38" +checksum = "977951a1d7dbce4c6f9c2cbed0711f568df9944010fafa88161a20f7e5163bd3" dependencies = [ "k8s-openapi", "kube-client", @@ -806,9 +806,9 @@ dependencies = [ [[package]] name = "kube-client" -version = "0.71.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f69a504997799340408635d6e351afb8aab2c34ca3165e162f41b3b34a69a79" +checksum = "625e8a89c79dd4e590217838f32274ccbb0f4ecc1db181f84aba3df635fca729" dependencies = [ "base64", "bytes", @@ -841,9 +841,9 @@ dependencies = [ [[package]] name = "kube-core" -version = "0.71.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a247487699941baaf93438d65b12d4e32450bea849d619d19ed394e8a4a645" +checksum = "0491dcd9adca79a96c63404aa978137f5fe1d3db5dcb6e5c0b073f915dbdd49d" dependencies = [ "chrono", "form_urlencoded", @@ -858,7 +858,7 @@ dependencies = [ [[package]] name = "kube-depre" -version = "0.1.10" +version = "0.1.14" dependencies = [ "anyhow", "async-trait", @@ -882,9 +882,9 @@ dependencies = [ [[package]] name = "kube-runtime" -version = "0.71.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02ea50e6ed56578e1d1d02548901b12fe6d3edbf110269a396955e285d487973" +checksum = "bb67002cbacd6cd99d1b1d0890785a84b6408158972f2561317bc4cdc06c981e" dependencies = [ "ahash", "backoff", @@ -1786,9 +1786,9 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.2.5" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aba3f3efabf7fb41fae8534fc20a817013dd1c12cb45441efb6c82e6556b4cd8" +checksum = "7d342c6d58709c0a6d48d48dabbb62d4ef955cf5f0f3bbfd845838e7ae88dbae" dependencies = [ "base64", "bitflags", diff --git a/Cargo.toml b/Cargo.toml index 4ad1d31..0500515 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kube-depre" -version = "0.1.10" +version = "0.1.14" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -14,7 +14,7 @@ path = "src/lib.rs" serde = {version = "1.0", features = ["derive"] } serde_json = "1.0" yaml-rust = "0.4.5" -kube = {version="0.71.0" , features = ["runtime"]} +kube = {version="0.72.0" , features = ["runtime"]} k8s-openapi = {version = "0.14.0",default-features = false, features=["v1_22"]} tokio = { version = "1.17.0", features = ["full"] } anyhow="1.0" diff --git a/README.md b/README.md index 094160d..285153f 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,23 @@ Supports only Linux and Mac OR -2. curl -L https://raw.githubusercontent.com/maheshrayas/kube-depre/main/release/install.sh | sh - +2. +```bash +curl -L https://raw.githubusercontent.com/maheshrayas/kube-depre/main/release/install.sh | sh - + +``` ## How to use +### Prerequisite if validating against the K8s cluster + +kube-depre by default looks for `~/.kube/config` for kuberenetes configuration. If the configuration is stored in other file location, set that location in the `KUBECONFIG` environment variable. + +```bash +export KUBECONFIG={config-location} +``` + ### CLI Supported Args ```bash diff --git a/src/main.rs b/src/main.rs index 13bc5c3..6119185 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,15 +8,12 @@ use kube_depre::{init_logger, Finder, Output, Scrape}; #[clap(author, version, about, long_about = None)] struct Sunset { /// list of deprecated APIs in a specific kubernetes version, -t 1.22. - /// If -t not supplied, it will query for versions : 1.16, 1.22, 1.25, 1.26 + /// If -t not supplied, it will query for versions : 1.16, 1.22, 1.25, 1.26, 1.27, custom #[clap(long = "target-version", short = 't')] target_version: Option, /// Output format for the list of deprecated APIs. #[clap(long = "output", short = 'o', arg_enum,default_value_t = Output::Table)] output: Output, - /// location of Kubeconfig, Default: ~/.kube/config - #[clap(long, short)] - kubeconfig: Option, /// supply -f or --file "Manifest file directory". /// if -f not supplied, it will by default query the cluster #[clap(long, short)]