1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

chore: run codegen-fix-tests (#9942)

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
This commit is contained in:
Mariam Fahmy 2024-03-26 17:18:08 +01:00 committed by GitHub
parent 67dee8d331
commit 8369ab6ee1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 14 deletions

View file

@ -3,15 +3,15 @@ kind: Test
metadata:
name: kyverno-test.yaml
policies:
- policy.yaml
- policy.yaml
resources:
- resource.yaml
- resource.yaml
results:
- policy: clone-list-secrets
rule: clone-list-labelled-secrets
resources:
- hello-world-namespace
cloneSourceResource: cloneSourceResources.yaml
generatedResource: generatedResource.yaml
kind: Namespace
result: pass
- cloneSourceResource: cloneSourceResources.yaml
generatedResource: generatedResource.yaml
kind: Namespace
policy: clone-list-secrets
resources:
- hello-world-namespace
result: pass
rule: clone-list-labelled-secrets

View file

@ -6,4 +6,3 @@ policies:
- name: test-delete
values:
request.operation: DELETE

View file

@ -1,7 +1,7 @@
apiVersion: cli.kyverno.io/v1alpha1
globalValues:
request.oldObject.metadata.labels.existing-label: foo
request.operation: UPDATE
kind: Value
metadata:
name: values
globalValues:
request.operation: UPDATE
request.oldObject.metadata.labels.existing-label: foo