1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 01:16:55 +00:00
kyverno/test/conformance/kuttl/aaa_template_resources/01-assert.yaml
Charles-Edouard Brétéché 1899938f05
chore: use conditions in kuttl tests to check ready policies (#5252)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2022-11-07 18:34:29 +00:00

11 lines
404 B
YAML

# An assert file can be a partial representation of an object. What is specified MUST be present for the check to pass and the test to proceed.
# If the specified timeout is reached and the assert does not evaluate to true, the test fails and halts.
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: add-labels
status:
conditions:
- reason: Succeeded
status: "True"
type: Ready