mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
91021b65b6
* fix: Delete downstream objects on precondition fail When a rule fails the match in a generate rule, the downstream resource gets deleted. This will now also happen if the rule is skipped due to a precondition. Signed-off-by: Mike Bryant <mike.bryant@mettle.co.uk> * add debug command Signed-off-by: ShutingZhao <shuting@nirmata.com> * sync trigger updates to downstream Signed-off-by: ShutingZhao <shuting@nirmata.com> * fix bgscan fetching trigger Signed-off-by: ShutingZhao <shuting@nirmata.com> * fix: Move rbac change into tests for better isolation Signed-off-by: Mike Bryant <mike.bryant@mettle.co.uk> * fix unit test Signed-off-by: ShutingZhao <shuting@nirmata.com> --------- Signed-off-by: Mike Bryant <mike.bryant@mettle.co.uk> Signed-off-by: ShutingZhao <shuting@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
28 lines
1.2 KiB
YAML
28 lines
1.2 KiB
YAML
name: Kyverno logs
|
|
|
|
description: Show kyverno pods logs
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- shell: bash
|
|
run: |
|
|
kubectl get mutatingwebhookconfigurations
|
|
kubectl get validatingwebhookconfigurations
|
|
kubectl auth can-i --list --as system:serviceaccount:kyverno:kyverno-background-controller
|
|
- shell: bash
|
|
run: |
|
|
kubectl -n kyverno get pod
|
|
kubectl -n kyverno describe pod | grep -i events -A10
|
|
- shell: bash
|
|
run: |
|
|
kubectl -n kyverno logs deploy/kyverno-admission-controller --all-containers -p || true
|
|
kubectl -n kyverno logs deploy/kyverno-reports-controller --all-containers -p || true
|
|
kubectl -n kyverno logs deploy/kyverno-cleanup-controller --all-containers -p || true
|
|
kubectl -n kyverno logs deploy/kyverno-background-controller --all-containers -p || true
|
|
- shell: bash
|
|
run: |
|
|
kubectl -n kyverno logs deploy/kyverno-admission-controller --all-containers
|
|
kubectl -n kyverno logs deploy/kyverno-reports-controller --all-containers
|
|
kubectl -n kyverno logs deploy/kyverno-cleanup-controller --all-containers
|
|
kubectl -n kyverno logs deploy/kyverno-background-controller --all-containers
|