1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

update cli doc / makefile

This commit is contained in:
Shuting Zhao 2020-02-19 19:13:05 -08:00
parent 7638e9cb51
commit 83be17ce9e
2 changed files with 11 additions and 4 deletions

View file

@ -73,9 +73,9 @@ docker-push-kyverno:
##################################
# CLI
##################################
CLI_PATH := cmd/cli
CLI_PATH := cmd/cli/kubectl-kyverno
cli:
GOOS=$(GOOS) go build -o $(PWD)/$(CLI_PATH)/kyvernocli -ldflags=$(LD_FLAGS) $(PWD)/$(CLI_PATH)/main.go
GOOS=$(GOOS) go build -o $(PWD)/$(CLI_PATH)/kyverno -ldflags=$(LD_FLAGS) $(PWD)/$(CLI_PATH)/main.go
##################################

View file

@ -5,9 +5,16 @@
The Kyverno Command Line Interface (CLI) is designed to validate policies and test the behavior of applying policies to resources before adding the policy to a cluster. It can be used as a kubectl plugin and as a standalone CLI.
## Installation
## Build the CLI
You can download the CLI binary for your OS from the releases page [here](https://github.com/nirmata/kyverno/releases).
You can build the CLI binary for your OS by running the command:
```bash
git clone https://github.com/nirmata/kyverno.git
cd github.com/nirmata/kyverno
make cli
cd ./cmd/cli/kubectl-kyverno/
```
## Commands