-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What would you like to be added:
The ability to choose a shell for commands in TestAssert. For example:
---
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 600
commands:
- shell: bash # runs bash -c instead of sh -c
script: |
set -euo pipefail
...
- shell: bash -euo pipefail # runs bash -euo pipefail -c instead of sh -c
script: |
...
Why is this needed:
- Currently
sh -cis hard coded for shell invocations, and without options like-eto ensure failures before the last command get picked up. shdoesn't support setting-o pipefailto fail on errors in a pipeline.
Maleware
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request