Skip to content

Commit

Permalink
feat: add outputs support to command and script (#1031)
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 authored Mar 4, 2024
1 parent ffde0e8 commit f4dab47
Show file tree
Hide file tree
Showing 49 changed files with 1,488 additions and 179 deletions.
34 changes: 34 additions & 0 deletions .crds/chainsaw.kyverno.io_configurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down Expand Up @@ -371,6 +388,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down
136 changes: 136 additions & 0 deletions .crds/chainsaw.kyverno.io_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down Expand Up @@ -387,6 +404,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down Expand Up @@ -590,6 +624,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from
the command. Useful for sensitive logs or to reduce
Expand Down Expand Up @@ -881,6 +932,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from
the command. Useful for sensitive logs or to reduce
Expand Down Expand Up @@ -1038,6 +1106,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from
the command. Useful for sensitive logs or to reduce
Expand Down Expand Up @@ -1329,6 +1414,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from
the command. Useful for sensitive logs or to reduce
Expand Down Expand Up @@ -1631,6 +1733,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from
the command. Useful for sensitive logs or to reduce
Expand Down Expand Up @@ -1975,6 +2094,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from
the command. Useful for sensitive logs or to reduce
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 @@ -112,6 +112,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down Expand Up @@ -387,6 +404,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down Expand Up @@ -539,6 +573,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down Expand Up @@ -814,6 +865,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down Expand Up @@ -1105,6 +1173,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down Expand Up @@ -1437,6 +1522,23 @@ spec:
- value
type: object
type: array
outputs:
description: Outputs defines output bindings.
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
skipLogOutput:
description: SkipLogOutput removes the output from the command.
Useful for sensitive logs or to reduce noise.
Expand Down
Loading

0 comments on commit f4dab47

Please sign in to comment.