Skip to content

Commit

Permalink
Update docs and preview image
Browse files Browse the repository at this point in the history
  • Loading branch information
rossedman committed Oct 6, 2021
1 parent 64452fd commit 7eed827
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@ kubectl endoflife

## Commands

### kubectl check endoflife
### kubectl endoflife

This command will check the end of life date for a version using `endoflife.data` and print how much time is left as well as the end of life data. The default option is to check upstream Kubernetes only:

```shell
❯ kubectl check endoflife
❯ kubectl endoflife
TYPE VERSION EOL DATE DAYS LEFT
Kubernetes 1.19 2021-10-28 29
```

To change what product is evaluated, use the `--product` flag

```shell
❯ kubectl check endoflife --product amazon-eks
❯ kubectl endoflife --product amazon-eks
TYPE VERSION EOL DATE DAYS LEFT
EKS 1.19 2022-04-01 184
```

This command also will exit `0` or `1` depending on the flags set. Exiting `1` means the cluster is within a threshold that the user deems expired. Here are some examples below

```shell
❯ kubectl check endoflife --product amazon-eks --expiry-range 200
❯ kubectl endoflife --product amazon-eks --expiry-range 200
TYPE VERSION EOL DATE DAYS LEFT
amazon-eks 1.19 2022-04-01 177
exit status 1

❯ kubectl check endoflife --product amazon-eks --expiry-range 150
❯ kubectl endoflife --product amazon-eks --expiry-range 150
TYPE VERSION EOL DATE DAYS LEFT
amazon-eks 1.19 2022-04-01 177
```
Expand Down
Binary file modified preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7eed827

Please sign in to comment.