Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add lookup operation #1089

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading