Skip to content

Commit

Permalink
feat(testworkflows): add option for pausing steps (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored Apr 25, 2024
1 parent 14301b5 commit 32189cd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
3 changes: 3 additions & 0 deletions api/testworkflows/v1/step_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ type StepBase struct {
// is the step optional, so its failure won't affect the TestWorkflow result
Optional bool `json:"optional,omitempty"`

// pause the step initially
Paused bool `json:"paused,omitempty" expr:"ignore"`

// policy for retrying the step
Retry *RetryPolicy `json:"retry,omitempty" expr:"include"`

Expand Down
14 changes: 7 additions & 7 deletions api/testworkflows/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions config/crd/bases/testworkflows.testkube.io_testworkflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,9 @@ spec:
description: is the step optional, so its failure won't affect
the TestWorkflow result
type: boolean
paused:
description: pause the step initially
type: boolean
retry:
description: policy for retrying the step
properties:
Expand Down Expand Up @@ -5425,6 +5428,9 @@ spec:
description: is the step optional, so its failure won't affect
the TestWorkflow result
type: boolean
paused:
description: pause the step initially
type: boolean
retry:
description: policy for retrying the step
properties:
Expand Down Expand Up @@ -7128,6 +7134,9 @@ spec:
description: is the step optional, so its failure won't affect
the TestWorkflow result
type: boolean
paused:
description: pause the step initially
type: boolean
retry:
description: policy for retrying the step
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,9 @@ spec:
description: is the step optional, so its failure won't affect
the TestWorkflow result
type: boolean
paused:
description: pause the step initially
type: boolean
retry:
description: policy for retrying the step
properties:
Expand Down Expand Up @@ -5387,6 +5390,9 @@ spec:
description: is the step optional, so its failure won't affect
the TestWorkflow result
type: boolean
paused:
description: pause the step initially
type: boolean
retry:
description: policy for retrying the step
properties:
Expand Down Expand Up @@ -7052,6 +7058,9 @@ spec:
description: is the step optional, so its failure won't affect
the TestWorkflow result
type: boolean
paused:
description: pause the step initially
type: boolean
retry:
description: policy for retrying the step
properties:
Expand Down

0 comments on commit 32189cd

Please sign in to comment.