mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
* chore: improve a couple kuttl tests Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * more Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * more Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * readme Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * Update test/conformance/kuttl/cleanup/validation/cron-format/README.md Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
20 lines
409 B
YAML
20 lines
409 B
YAML
apiVersion: kyverno.io/v2alpha1
|
|
kind: ClusterCleanupPolicy
|
|
metadata:
|
|
name: cleanup-pod
|
|
spec:
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
conditions:
|
|
all:
|
|
- key: "{{ target.metadata.name }}"
|
|
operator: Equals
|
|
value: example
|
|
- key: "{{ target.metadata.namespace }}"
|
|
operator: Equals
|
|
value: default
|
|
## execute every minute
|
|
schedule: "*/1 * * * *"
|