Skip to content

Commit

Permalink
fix: add workingDir to artifacts step (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored Mar 14, 2024
1 parent 07cd5e8 commit 03a6d2d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/testworkflows/v1/step_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ type StepExecuteWorkflow struct {
}

type StepArtifacts struct {
// working directory to override, so it will be used as a base dir
WorkingDir *string `json:"workingDir,omitempty" expr:"template"`
// compression options for the artifacts
Compress *ArtifactCompression `json:"compress,omitempty" expr:"include"`
// paths to fetch from the container
Expand Down
5 changes: 5 additions & 0 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.

12 changes: 12 additions & 0 deletions config/crd/bases/testworkflows.testkube.io_testworkflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ spec:
items:
type: string
type: array
workingDir:
description: working directory to override, so it will be
used as a base dir
type: string
type: object
condition:
description: 'expression to declare under which conditions the
Expand Down Expand Up @@ -3778,6 +3782,10 @@ spec:
items:
type: string
type: array
workingDir:
description: working directory to override, so it will be
used as a base dir
type: string
type: object
condition:
description: 'expression to declare under which conditions the
Expand Down Expand Up @@ -5072,6 +5080,10 @@ spec:
items:
type: string
type: array
workingDir:
description: working directory to override, so it will be
used as a base dir
type: string
type: object
condition:
description: 'expression to declare under which conditions the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ spec:
items:
type: string
type: array
workingDir:
description: working directory to override, so it will be
used as a base dir
type: string
type: object
condition:
description: 'expression to declare under which conditions the
Expand Down Expand Up @@ -3740,6 +3744,10 @@ spec:
items:
type: string
type: array
workingDir:
description: working directory to override, so it will be
used as a base dir
type: string
type: object
condition:
description: 'expression to declare under which conditions the
Expand Down Expand Up @@ -4996,6 +5004,10 @@ spec:
items:
type: string
type: array
workingDir:
description: working directory to override, so it will be
used as a base dir
type: string
type: object
condition:
description: 'expression to declare under which conditions the
Expand Down

0 comments on commit 03a6d2d

Please sign in to comment.