Skip to content

Commit

Permalink
feat: add env vars support in command and script (#963)
Browse files Browse the repository at this point in the history
* feat: add env vars support in command and script

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* feat: add env vars support in command and script

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly authored Feb 24, 2024
1 parent 1fd0ae4 commit 8cbf418
Show file tree
Hide file tree
Showing 18 changed files with 920 additions and 37 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 @@ -136,6 +136,23 @@ spec:
description: Entrypoint is the command entry point
to run.
type: string
env:
description: Env defines additional environment variables.
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 @@ -385,6 +402,23 @@ spec:
description: Content defines a shell script (run with
"sh -c ...").
type: string
env:
description: Env defines additional environment variables.
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 @@ -442,6 +476,23 @@ spec:
description: Entrypoint is the command entry point
to run.
type: string
env:
description: Env defines additional environment variables.
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 @@ -691,6 +742,23 @@ spec:
description: Content defines a shell script (run with
"sh -c ...").
type: string
env:
description: Env defines additional environment variables.
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 @@ -893,6 +961,23 @@ spec:
description: Entrypoint is the command entry point
to run.
type: string
env:
description: Env defines additional environment variables.
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 @@ -1203,6 +1288,23 @@ spec:
description: Content defines a shell script (run with
"sh -c ...").
type: string
env:
description: Env defines additional environment variables.
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 @@ -78,6 +78,23 @@ spec:
entrypoint:
description: Entrypoint is the command entry point to run.
type: string
env:
description: Env defines additional environment variables.
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 @@ -311,6 +328,23 @@ spec:
description: Content defines a shell script (run with "sh
-c ...").
type: string
env:
description: Env defines additional environment variables.
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 @@ -365,6 +399,23 @@ spec:
entrypoint:
description: Entrypoint is the command entry point to run.
type: string
env:
description: Env defines additional environment variables.
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 @@ -598,6 +649,23 @@ spec:
description: Content defines a shell script (run with "sh
-c ...").
type: string
env:
description: Env defines additional environment variables.
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 @@ -791,6 +859,23 @@ spec:
entrypoint:
description: Entrypoint is the command entry point to run.
type: string
env:
description: Env defines additional environment variables.
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 @@ -1089,6 +1174,23 @@ spec:
description: Content defines a shell script (run with "sh
-c ...").
type: string
env:
description: Env defines additional environment variables.
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 8cbf418

Please sign in to comment.