mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
update cli doc / makefile
This commit is contained in:
parent
7638e9cb51
commit
83be17ce9e
2 changed files with 11 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -73,9 +73,9 @@ docker-push-kyverno:
|
||||||
##################################
|
##################################
|
||||||
# CLI
|
# CLI
|
||||||
##################################
|
##################################
|
||||||
CLI_PATH := cmd/cli
|
CLI_PATH := cmd/cli/kubectl-kyverno
|
||||||
cli:
|
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
|
||||||
|
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
|
|
|
@ -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.
|
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
|
## Commands
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue