Skip to content

Commit

Permalink
feat: [TKC-1854] add read only flag for test workflows (#5429) (#5430)
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv authored May 14, 2024
1 parent 25eb9ff commit 1e1e037
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7462,6 +7462,9 @@ components:
example: "2022-07-30T06:54:15Z"
spec:
$ref: "#/components/schemas/TestWorkflowSpec"
readOnly:
type: boolean
description: if test workflow is offline and cannot be executed

TestWorkflowExecutionRequest:
type: object
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/v1/testkube/model_test_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ type TestWorkflow struct {
Annotations map[string]string `json:"annotations,omitempty"`
Created time.Time `json:"created,omitempty"`
Spec *TestWorkflowSpec `json:"spec,omitempty"`
// if test workflow is offline and cannot be executed
ReadOnly bool `json:"readOnly,omitempty"`
}

0 comments on commit 1e1e037

Please sign in to comment.