From 49898292d86989f94fe573cee98541c6eca2b625 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Sun, 23 Dec 2018 23:28:43 -0800 Subject: [PATCH] Update installation instructions with krew 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 --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d1f233f..aac433b 100644 --- a/README.md +++ b/README.md @@ -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