From 31ba8f76e58294403ae6f39d778384db4ff5a2ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Jeanneret?= Date: Thu, 4 Apr 2024 19:43:04 +0200 Subject: [PATCH] Ensure wait_conditions starts with specific pattern 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). --- .ci/automation-schema.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/automation-schema.yaml b/.ci/automation-schema.yaml index eeb1d7610..9c7d0b629 100644 --- a/.ci/automation-schema.yaml +++ b/.ci/automation-schema.yaml @@ -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)