Skip to content

Commit

Permalink
Add docs for fix command (#1031)
Browse files Browse the repository at this point in the history
* Add docs for fix command

Signed-off-by: anushkamittal2001 <[email protected]>

* Add new line

Signed-off-by: anushkamittal2001 <[email protected]>

---------

Signed-off-by: anushkamittal2001 <[email protected]>
Co-authored-by: shuting <[email protected]>
  • Loading branch information
anushkamittal2001 and realshuting authored Dec 7, 2023
1 parent 0088b75 commit 8cac772
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/en/docs/Kyverno CLI/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,21 @@ To generate simple markdown documentation

```sh
$ kyverno docs -o . --autogenTag=false
```

### Fix (experimental)

The Kyverno CLI has an experimental `fix` subcommand which provides a command-line interface to fix inconsistencies and deprecated usage of Kyverno resources. It can be used to fix Kyverno test files. Use `--save` to save the fixed file

Examples:

To fix a policy

```sh
$ KYVERNO_EXPERIMENTAL=true kyverno fix policy ./fix-policy --save
Processing file (fix-policy/policy.yaml)...
Done.
```

### Test
Expand Down

0 comments on commit 8cac772

Please sign in to comment.