mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-12 10:56:54 +00:00
* refactor: migrate context loaders (part 1) from #7597 Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * refactor: migrate context loaders (part 2) from #7597 Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
21 lines
494 B
YAML
21 lines
494 B
YAML
name: test-registry
|
|
policies:
|
|
- image-example.yaml
|
|
resources:
|
|
- resources.yaml
|
|
results:
|
|
- policy: images
|
|
rule: only-allow-trusted-images
|
|
resource: test-pod-with-non-root-user-image
|
|
kind: Pod
|
|
status: pass
|
|
- policy: images
|
|
rule: only-allow-trusted-images
|
|
resource: test-pod-with-trusted-registry
|
|
kind: Pod
|
|
status: pass
|
|
- policy: check-image-base
|
|
rule: check-image-base-rule
|
|
resource: test-pod-with-trusted-registry
|
|
kind: Pod
|
|
status: pass
|