-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
Hi,
it would be helpful to expose the timeouts as bindings. Let's say I do a helm install
as part of my test:
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: should-install
spec:
timeouts:
exec: 1m
steps:
- try:
- command:
entrypoint: helm
env:
- name: NAMESPACE
value: ($namespace)
args:
- install
- my-test
- ../helm/test-chart
- --namespace
- $NAMESPACE
- --wait
- --timeout
- 1m
I have to set the correct timeout twice which is error prone.
Solution Description
Exposing the timeouts as bindings would help simplify the example from above:
spec:
timeouts:
exec: 1m
steps:
- try:
- command:
entrypoint: helm
env:
- name: NAMESPACE
value: ($namespace)
- name: TIMEOUT
value: ($timeout-exec)
args:
- install
- my-test
- ../helm/test-chart
- --namespace
- $NAMESPACE
- --wait
- --timeout
- $TIMEOUT
Alternatives
No response
Additional Context
No response
Slack discussion
No response
Research
- I have searched other issues in this repository and mine is not recorded.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request