Skip to content

Commit

Permalink
feat: sidecar scraper (#258)
Browse files Browse the repository at this point in the history
* feat: sidecar scraper option

* fix: sidecar scraper for test workflow
  • Loading branch information
vsukhin authored May 20, 2024
1 parent 6e48b6c commit 07a4da8
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/testexecution/v1/testexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ type ArtifactRequest struct {
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
// whether to use default storage class name
UseDefaultStorageClassName bool `json:"useDefaultStorageClassName,omitempty"`
// run scraper as pod sidecar container
SidecarScraper bool `json:"sidecarScraper,omitempty"`
}

// running context for test or test suite execution
Expand Down
2 changes: 2 additions & 0 deletions api/tests/v3/test_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ type ArtifactRequest struct {
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
// whether to use default storage class name
UseDefaultStorageClassName bool `json:"useDefaultStorageClassName,omitempty"`
// run scraper as pod sidecar container
SidecarScraper bool `json:"sidecarScraper,omitempty"`
}

type RunningContext commonv1.RunningContext
Expand Down
2 changes: 2 additions & 0 deletions api/testsuiteexecution/v1/testsuiteexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ type ArtifactRequest struct {
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
// whether to use default storage class name
UseDefaultStorageClassName bool `json:"useDefaultStorageClassName,omitempty"`
// run scraper as pod sidecar container
SidecarScraper bool `json:"sidecarScraper,omitempty"`
}

// TestContent defines test content
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/tests.testkube.io_testexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -461,6 +464,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/tests.testkube.io_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ spec:
description: whether to share volume between
pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -894,6 +897,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
18 changes: 18 additions & 0 deletions config/crd/bases/testworkflows.testkube.io_testworkflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -949,6 +952,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -4716,6 +4722,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -5097,6 +5106,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -7306,6 +7318,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -7687,6 +7702,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -949,6 +952,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -4622,6 +4628,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -5003,6 +5012,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -7138,6 +7150,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -7519,6 +7534,9 @@ spec:
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
sidecarScraper:
description: run scraper as pod sidecar container
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down

0 comments on commit 07a4da8

Please sign in to comment.