mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
* feat(validation-webhook): validate global context reference Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> * fix(validation-webhook): global reference name Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> * test(globalcontext): fix tests after valdiation Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> * fix(policycache): dont add NotReady Policies Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> * chore(globalcontext): rename e2e tests Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> * chore(globalcontext): add entry errors Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> * test(globalcontext): fix chainsaw test Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> --------- Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
22 lines
430 B
YAML
Executable file
22 lines
430 B
YAML
Executable file
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: gctxentry-not-exist
|
|
spec:
|
|
steps:
|
|
- name: setup
|
|
try:
|
|
- apply:
|
|
file: namespace.yaml
|
|
- apply:
|
|
file: main-deployment.yaml
|
|
- apply:
|
|
file: gctxentry.yaml
|
|
- name: negative
|
|
try:
|
|
- apply:
|
|
expect:
|
|
- check:
|
|
($error != null): true
|
|
file: clusterpolicy.yaml
|