Skip to content

Commit

Permalink
docs: Remove unused validation ClusterPolicy and use default example …
Browse files Browse the repository at this point in the history
…output header string

Signed-off-by: Peter Fiddes <peter.fiddes@gmail.com>
  • Loading branch information
hawksight committed Jan 10, 2024
1 parent 5d77c69 commit 72f3d9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
10 changes: 5 additions & 5 deletions content/docs/tutorials/certificate-defaults/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ These rules will:
kubectl apply -f cert-test-revision.yaml --dry-run=server -o yaml | diff -uZ cert-test-revision.yaml -
```
The output should look similar to this:
This command should return some output similar to this example:
```shell
--- cert-test-revision.yaml 2024-01-08 12:14:59.225074232 +0000
Expand Down Expand Up @@ -287,7 +287,7 @@ In our example `ClusterPolicy` we will do two things:
kubectl get cpol
```
Example:
This command should return some output similar to this example:
```shell
NAME ADMISSION BACKGROUND VALIDATE ACTION READY AGE MESSAGE
Expand Down Expand Up @@ -317,7 +317,7 @@ In our example `ClusterPolicy` we will do two things:
kubectl apply -f cert-test-minimal.yaml --dry-run=server -o yaml | diff -uZ cert-test-minimal.yaml -
```
The output of this command should result in something similar to:
This command should return some output similar to this example:
```yaml
--- cert-test-minimal.yaml 2024-01-05 14:45:07.140668401 +0000
Expand Down Expand Up @@ -414,7 +414,7 @@ Let's see how we can still use `ClusterPolicy` to apply our defaults in this use
kubectl get cert defaults-example-certificate-tls -o yaml | yq
```
Example output:
This command should return some output similar to this example:
```yaml
apiVersion: cert-manager.io/v1
Expand Down Expand Up @@ -472,7 +472,7 @@ Let's see how we can still use `ClusterPolicy` to apply our defaults in this use
kubectl logs -n kyverno-system $(kubectl get pod -n kyverno-system -l app.kubernetes.io/component=admission-controller -o jsonpath='{.items[0].metadata.name}') -c kyverno --tail 5
```
Example logs would look like:
This command should return some output similar to this example:
```log
I0109 10:43:43.554872 1 event_broadcaster.go:318] "Event occurred" object="0-mutate-certificate-defaults" kind="ClusterPolicy" apiVersion="kyverno.io/v1" type="Normal" reason="PolicyApplied" action="Resource Mutated" note="Certificate default/defaults-example-certificate-tls is successfully mutated"
Expand Down

This file was deleted.

0 comments on commit 72f3d9b

Please sign in to comment.