Skip to content

Commit

Permalink
feat: add lookup operation
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly committed Mar 9, 2024
1 parent 11fe12f commit d8da3b3
Show file tree
Hide file tree
Showing 24 changed files with 2,426 additions and 76 deletions.
68 changes: 68 additions & 0 deletions .crds/chainsaw.kyverno.io_configurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,74 @@ spec:
timeout set in the Configuration.
type: string
type: object
lookup:
description: Lookup determines the resource lookup to execute.
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.
pattern: ^(?:\w+|\(.+\))$
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
cluster:
description: Cluster defines the target cluster (default
cluster will be used if not specified and/or overridden).
type: string
file:
description: File is the path to the referenced file. This
can be a direct path to a file or an expression that matches
multiple files, such as "manifest/*.yaml" for all YAML
files within the "manifest" directory.
type: string
outputs:
description: Outputs defines output bindings.
items:
description: Output represents an output binding with
a match to determine if the binding must be considered
or not.
properties:
match:
description: Match defines the matching statement.
type: object
x-kubernetes-preserve-unknown-fields: true
name:
description: Name the name of the binding.
pattern: ^(?:\w+|\(.+\))$
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
resource:
description: Resource provides a resource to be applied.
type: object
x-kubernetes-embedded-resource: true
x-kubernetes-preserve-unknown-fields: true
template:
description: Template determines whether resources should
be considered for templating.
type: boolean
timeout:
description: Timeout for the operation. Overrides the global
timeout set in the Configuration.
type: string
type: object
podLogs:
description: PodLogs determines the pod logs collector to execute.
properties:
Expand Down
275 changes: 275 additions & 0 deletions .crds/chainsaw.kyverno.io_tests.yaml

Large diffs are not rendered by default.

204 changes: 204 additions & 0 deletions .crds/chainsaw.kyverno.io_teststeps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,74 @@ spec:
timeout set in the Configuration.
type: string
type: object
lookup:
description: Lookup determines the resource lookup to execute.
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.
pattern: ^(?:\w+|\(.+\))$
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
cluster:
description: Cluster defines the target cluster (default
cluster will be used if not specified and/or overridden).
type: string
file:
description: File is the path to the referenced file. This
can be a direct path to a file or an expression that matches
multiple files, such as "manifest/*.yaml" for all YAML
files within the "manifest" directory.
type: string
outputs:
description: Outputs defines output bindings.
items:
description: Output represents an output binding with
a match to determine if the binding must be considered
or not.
properties:
match:
description: Match defines the matching statement.
type: object
x-kubernetes-preserve-unknown-fields: true
name:
description: Name the name of the binding.
pattern: ^(?:\w+|\(.+\))$
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
resource:
description: Resource provides a resource to be applied.
type: object
x-kubernetes-embedded-resource: true
x-kubernetes-preserve-unknown-fields: true
template:
description: Template determines whether resources should
be considered for templating.
type: boolean
timeout:
description: Timeout for the operation. Overrides the global
timeout set in the Configuration.
type: string
type: object
podLogs:
description: PodLogs determines the pod logs collector to execute.
properties:
Expand Down Expand Up @@ -801,6 +869,74 @@ spec:
timeout set in the Configuration.
type: string
type: object
lookup:
description: Lookup determines the resource lookup to execute.
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.
pattern: ^(?:\w+|\(.+\))$
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
cluster:
description: Cluster defines the target cluster (default
cluster will be used if not specified and/or overridden).
type: string
file:
description: File is the path to the referenced file. This
can be a direct path to a file or an expression that matches
multiple files, such as "manifest/*.yaml" for all YAML
files within the "manifest" directory.
type: string
outputs:
description: Outputs defines output bindings.
items:
description: Output represents an output binding with
a match to determine if the binding must be considered
or not.
properties:
match:
description: Match defines the matching statement.
type: object
x-kubernetes-preserve-unknown-fields: true
name:
description: Name the name of the binding.
pattern: ^(?:\w+|\(.+\))$
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
resource:
description: Resource provides a resource to be applied.
type: object
x-kubernetes-embedded-resource: true
x-kubernetes-preserve-unknown-fields: true
template:
description: Template determines whether resources should
be considered for templating.
type: boolean
timeout:
description: Timeout for the operation. Overrides the global
timeout set in the Configuration.
type: string
type: object
podLogs:
description: PodLogs determines the pod logs collector to execute.
properties:
Expand Down Expand Up @@ -1486,6 +1622,74 @@ spec:
timeout set in the Configuration.
type: string
type: object
lookup:
description: Lookup determines the resource lookup to execute.
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.
pattern: ^(?:\w+|\(.+\))$
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
cluster:
description: Cluster defines the target cluster (default
cluster will be used if not specified and/or overridden).
type: string
file:
description: File is the path to the referenced file. This
can be a direct path to a file or an expression that matches
multiple files, such as "manifest/*.yaml" for all YAML
files within the "manifest" directory.
type: string
outputs:
description: Outputs defines output bindings.
items:
description: Output represents an output binding with
a match to determine if the binding must be considered
or not.
properties:
match:
description: Match defines the matching statement.
type: object
x-kubernetes-preserve-unknown-fields: true
name:
description: Name the name of the binding.
pattern: ^(?:\w+|\(.+\))$
type: string
value:
description: Value value of the binding.
x-kubernetes-preserve-unknown-fields: true
required:
- name
- value
type: object
type: array
resource:
description: Resource provides a resource to be applied.
type: object
x-kubernetes-embedded-resource: true
x-kubernetes-preserve-unknown-fields: true
template:
description: Template determines whether resources should
be considered for templating.
type: boolean
timeout:
description: Timeout for the operation. Overrides the global
timeout set in the Configuration.
type: string
type: object
patch:
description: Patch represents a patch operation.
properties:
Expand Down
Loading

0 comments on commit d8da3b3

Please sign in to comment.