1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/cli/test-mutate/karpenter-annotations-to-nodeselector/kyverno-test.yaml
Charles-Edouard Brétéché fb97629ab5
fix: kyverno test are applying previous mutation rules to subsequent test cases causing failures (#8363)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 20:19:14 +00:00

17 lines
No EOL
480 B
YAML

name: karpenter-annotations-to-nodeselector
policies:
- policy.yaml
resources:
- resource.yaml
results:
- policy: karpenter-annotations-to-nodeselector
rule: hard-nodeselector-lifecycle-on-demand
resource: soft-pod-antiaffinity-1
patchedResource: patched.yaml
kind: Pod
result: pass
- policy: karpenter-annotations-to-nodeselector
rule: hard-nodeselector-lifecycle-on-demand
resource: soft-pod-antiaffinity-1-copy
kind: Pod
result: pass