Skip to content

Commit

Permalink
Update installation instructions with krew
Browse files Browse the repository at this point in the history
Please note that all other commands in the readme are broken because
kubectl will no longer pass the -n value (or accept such arg) while invoking
plugins as of 1.12. So the plugin must implement its own -n flag.

Signed-off-by: Ahmet Alp Balkan <[email protected]>
  • Loading branch information
ahmetb committed Dec 24, 2018
1 parent 65fb3c4 commit 4989829
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ For the admission controller see [kubesec-webhook](https://github.com/stefanprod

### Install

Download and extract the scan plugin to `~/.kube/plugins/scan`:

```bash
mkdir -p ~/.kube/plugins/scan && \
curl -sL https://github.com/stefanprodan/kubectl-kubesec/releases/download/0.2.0/kubectl-kubesec_0.2.0_`uname -s`_amd64.tar.gz | tar xzvf - -C ~/.kube/plugins/scan
```
1. [Install krew](https://github.com/GoogleContainerTools/krew) plugin manager
for kubectl.
2. Run `kubectl krew install kubesec-scan`.
3. Start using by running `kubectl kubesec-scan`.

### Usage

Expand Down

0 comments on commit 4989829

Please sign in to comment.