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

fix: conformance tests (#5118)

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

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-10-21 23:00:18 +02:00 committed by GitHub
parent a3c129f469
commit 3a8d26e17d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,8 @@ validate-fail:
stderr: >-
Error from server: error when creating "test/conformance/manifests/validate/fail/background-match-clusterroles.yaml":
admission webhook "validate-policy.kyverno.svc" denied the request: only select variables are allowed in background mode.
Set spec.background=false to disable background mode for this policy rule: variable {{request.roles}} is not allowed
Set spec.background=false to disable background mode for this policy rule:
invalid variable used at path: spec/rules[0]/match/any[0]/clusterRoles
- description: Policy with background enabled and referencing roles in match/exclude statements should be rejected
kubectl:
args:
@ -21,8 +22,7 @@ validate-fail:
exitcode: 1
stderr: >-
Error from server: error when creating "test/conformance/manifests/validate/fail/background-match-roles.yaml":
admission webhook "validate-policy.kyverno.svc" denied the request:
only select variables are allowed in background mode.
admission webhook "validate-policy.kyverno.svc" denied the request: only select variables are allowed in background mode.
Set spec.background=false to disable background mode for this policy rule:
invalid variable used at path: spec/rules[0]/match/any[0]/roles
- description: Policy with background enabled and referencing the var request.roles should be rejected.
@ -36,7 +36,7 @@ validate-fail:
stderr: >-
Error from server: error when creating "test/conformance/manifests/validate/fail/background-vars-roles.yaml":
admission webhook "validate-policy.kyverno.svc" denied the request: only select variables are allowed in background mode.
Set spec.background=false to disable background mode for this policy rule: variable "{{request.roles}} is not allowed
Set spec.background=false to disable background mode for this policy rule: variable {{request.roles}} is not allowed
- description: Policy with background enabled and referencing the var request.userInfo should be rejected.
kubectl:
args: