1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/conformance/chainsaw/rbac/mutate-policy-with-clusterrole/chainsaw-test.yaml
Charles-Edouard Brétéché fa36573f85
feat: use more chainsaw test templates (#11285)
* feat: use more chainsaw test templates

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-10-02 15:25:04 +00:00

24 lines
557 B
YAML

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: mutate-policy-with-clusterrole
spec:
steps:
- name: step-01
try:
- apply:
file: clusterrole.yaml
- name: create policy
use:
template: ../../_step-templates/create-policy.yaml
with:
bindings:
- name: file
value: policy.yaml
- name: wait policy ready
use:
template: ../../_step-templates/cluster-policy-ready.yaml
with:
bindings:
- name: name
value: policy-reload-on-secret-update