Skip to content

Commit

Permalink
Remove KUBECONFIG args (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshrayas authored May 17, 2022
1 parent 04f211a commit 4183a74
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
/// 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<String>,
/// supply -f or --file "Manifest file directory".
/// if -f not supplied, it will by default query the cluster
#[clap(long, short)]
Expand Down

0 comments on commit 4183a74

Please sign in to comment.