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 env vars support in command and script #963

Merged
merged 2 commits into from
Feb 24, 2024
Merged
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
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
Loading