1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/test/cli/test-generate/sync-multiple-resources/kyverno-test.yaml
Charles-Edouard Brétéché a43a20adb9
feat: add cli api schemas (#8422)
* feat: add cli values schema

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

* docs

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

* makefile

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

* v1alpha1

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

* codegen

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

* nits

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

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-17 23:50:17 +03:00

25 lines
570 B
YAML

apiVersion: cli.kyverno.io/v1alpha1
kind: Test
metadata:
name: kyverno-test.yaml
policies:
- policy.yaml
resources:
- deployment.yaml
results:
- cloneSourceResource: cm.yaml
generatedResource: gen-cm.yaml
kind: Deployment
policy: sync-controller-data
resources:
- kubernetes-cluster-controller
result: pass
rule: sync-controller-configmap
- cloneSourceResource: secret.yaml
generatedResource: gen-secret.yaml
kind: Deployment
policy: sync-controller-data
resources:
- kubernetes-cluster-controller
result: pass
rule: sync-controller-secret