Skip to content

Commit

Permalink
Ensure wait_conditions starts with specific pattern
Browse files Browse the repository at this point in the history
This ensures we're really facing a wait_condition, by checking we're
starting the command by either `oc ` or `kubectl ` (yes, with a space
after the command).
  • Loading branch information
cjeanner committed Apr 4, 2024
1 parent b81d0be commit 31ba8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/automation-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _hook:
---
_stage:
path: str()
wait_conditions: list(min=1)
wait_conditions: list(str(matches='^(oc|kubectl) .*'), min=1)
values: list(include('_values'), min=1)
build_output: str()
pre_stage_run: list(include('_hook'), required=False)
Expand Down

0 comments on commit 31ba8f7

Please sign in to comment.