Skip to content

Commit

Permalink
feat: artifact enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Dec 11, 2023
1 parent 9c1a0e0 commit bb90f63
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/testexecution/v1/testexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ type ArtifactRequest struct {
VolumeMountPath string `json:"volumeMountPath"`
// artifact directories for scraping
Dirs []string `json:"dirs,omitempty"`
// regexp to filter scraped artifacts, single or comma separated
Masks []string `json:"masks,omitempty"`
// artifact bucket storage
StorageBucket string `json:"storageBucket,omitempty"`
// don't use a separate folder for execution artifacts
OmitFolderPerExecution bool `json:"omitFolderPerExecution,omitempty"`
// whether to share volume between pods
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
}

// running context for test or test suite execution
Expand Down
5 changes: 5 additions & 0 deletions api/testexecution/v1/zz_generated.deepcopy.go

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

4 changes: 4 additions & 0 deletions api/tests/v3/test_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,14 @@ type ArtifactRequest struct {
VolumeMountPath string `json:"volumeMountPath,omitempty"`
// artifact directories for scraping
Dirs []string `json:"dirs,omitempty"`
// regexp to filter scraped artifacts, single or comma separated
Masks []string `json:"masks,omitempty"`
// artifact bucket storage
StorageBucket string `json:"storageBucket,omitempty"`
// don't use a separate folder for execution artifacts
OmitFolderPerExecution bool `json:"omitFolderPerExecution,omitempty"`
// whether to share volume between pods
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
}

// RunningContext for test or test suite execution
Expand Down
5 changes: 5 additions & 0 deletions api/tests/v3/zz_generated.deepcopy.go

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

4 changes: 4 additions & 0 deletions api/testsuiteexecution/v1/testsuiteexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,14 @@ type ArtifactRequest struct {
VolumeMountPath string `json:"volumeMountPath"`
// artifact directories for scraping
Dirs []string `json:"dirs,omitempty"`
// regexp to filter scraped artifacts, single or comma separated
Masks []string `json:"masks,omitempty"`
// artifact bucket storage
StorageBucket string `json:"storageBucket,omitempty"`
// don't use a separate folder for execution artifacts
OmitFolderPerExecution bool `json:"omitFolderPerExecution,omitempty"`
// whether to share volume between pods
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
}

// TestContent defines test content
Expand Down
6 changes: 6 additions & 0 deletions api/testsuiteexecution/v1/zz_generated.deepcopy.go

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

18 changes: 18 additions & 0 deletions config/crd/bases/tests.testkube.io_testexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,18 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts, single or
comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -431,9 +440,18 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts, single or
comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/tests.testkube.io_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,18 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts, single or
comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
19 changes: 19 additions & 0 deletions config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,20 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts,
single or comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for
execution artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between
pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -860,10 +870,19 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts,
single or comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution
artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down

0 comments on commit bb90f63

Please sign in to comment.