1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 18:06:55 +00:00
kyverno/test/conformance/kuttl/validate/clusterpolicy/standard/subresource
Charles-Edouard Brétéché 861776d50c
fix: policy cache use GVR instead of kind (#6543)
* fix: policy cache use GVR instead of kind

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

* unit tests

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

* unit tests

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

* GVRS

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>

* ephemeralcontainers

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>

* kuttl

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

* nit

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

* fix kuttl

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-03-13 14:44:39 +00:00
..
01-policies.yaml fix: policy cache use GVR instead of kind (#6543) 2023-03-13 14:44:39 +00:00
02-resources.yaml fix: policy cache use GVR instead of kind (#6543) 2023-03-13 14:44:39 +00:00
03-scale.yaml fix: policy cache use GVR instead of kind (#6543) 2023-03-13 14:44:39 +00:00
policies-assert.yaml fix: policy cache use GVR instead of kind (#6543) 2023-03-13 14:44:39 +00:00
policies.yaml fix: policy cache use GVR instead of kind (#6543) 2023-03-13 14:44:39 +00:00
README.md fix: policy cache use GVR instead of kind (#6543) 2023-03-13 14:44:39 +00:00
resources.yaml fix: policy cache use GVR instead of kind (#6543) 2023-03-13 14:44:39 +00:00

Description

This test create two policies:

  • one that denies Deployment/scale in Audit mode
  • one that denies StatefulSet/scale in Enforce mode

It then create a statefulset and a deployment.

Finally it tries to create the statefulset and expects failure, the, scales the deployment and expects success.