Skip to content

Commit

Permalink
feat: add bindings support in script and command (#969)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly authored Feb 24, 2024
1 parent e69a603 commit 6e0768f
Show file tree
Hide file tree
Showing 11 changed files with 770 additions and 0 deletions.
102 changes: 102 additions & 0 deletions .crds/chainsaw.kyverno.io_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,23 @@ spec:
items:
type: string
type: array
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set
as a binding in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate
the operation outcome.
Expand Down Expand Up @@ -389,6 +406,23 @@ spec:
script:
description: Script defines a script to run.
properties:
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set
as a binding in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate
the operation outcome.
Expand Down Expand Up @@ -463,6 +497,23 @@ spec:
items:
type: string
type: array
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set
as a binding in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate
the operation outcome.
Expand Down Expand Up @@ -729,6 +780,23 @@ spec:
script:
description: Script defines a script to run.
properties:
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set
as a binding in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate
the operation outcome.
Expand Down Expand Up @@ -948,6 +1016,23 @@ spec:
items:
type: string
type: array
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set
as a binding in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate
the operation outcome.
Expand Down Expand Up @@ -1275,6 +1360,23 @@ spec:
script:
description: Script defines a script to run.
properties:
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set
as a binding in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate
the operation outcome.
Expand Down
102 changes: 102 additions & 0 deletions .crds/chainsaw.kyverno.io_teststeps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,23 @@ spec:
items:
type: string
type: array
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set as a binding
in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate the
operation outcome.
Expand Down Expand Up @@ -315,6 +332,23 @@ spec:
script:
description: Script defines a script to run.
properties:
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set as a binding
in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate the
operation outcome.
Expand Down Expand Up @@ -387,6 +421,23 @@ spec:
items:
type: string
type: array
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set as a binding
in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate the
operation outcome.
Expand Down Expand Up @@ -636,6 +687,23 @@ spec:
script:
description: Script defines a script to run.
properties:
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set as a binding
in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate the
operation outcome.
Expand Down Expand Up @@ -847,6 +915,23 @@ spec:
items:
type: string
type: array
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set as a binding
in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate the
operation outcome.
Expand Down Expand Up @@ -1161,6 +1246,23 @@ spec:
script:
description: Script defines a script to run.
properties:
bindings:
description: Bindings defines additional binding key/values.
items:
description: Binding represents a key/value set as a binding
in an executing test.
properties:
name:
description: Name the name of the binding.
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
check:
description: Check is an assertion tree to validate the
operation outcome.
Expand Down
Loading

0 comments on commit 6e0768f

Please sign in to comment.