Skip to content

Commit

Permalink
feat: execution namespace field (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin authored Mar 1, 2024
1 parent 6a9821b commit c1e3dd2
Show file tree
Hide file tree
Showing 6 changed files with 25 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 @@ -136,6 +136,8 @@ type ExecutionRequest struct {
EnvSecrets []EnvReference `json:"envSecrets,omitempty"`
RunningContext *RunningContext `json:"runningContext,omitempty"`
SlavePodRequest *PodRequest `json:"slavePodRequest,omitempty"`
// namespace for test execution (Pro edition only)
ExecutionNamespace string `json:"executionNamespace,omitempty"`
}

// ArgsModeType defines args mode type
Expand Down Expand Up @@ -262,6 +264,8 @@ type Execution struct {
// shell used in container executor
ContainerShell string `json:"containerShell,omitempty"`
SlavePodRequest *PodRequest `json:"slavePodRequest,omitempty"`
// namespace for test execution (Pro edition only)
ExecutionNamespace string `json:"executionNamespace,omitempty"`
}

// TestContent defines test content
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 @@ -238,6 +238,8 @@ type ExecutionRequest struct {
EnvSecrets []EnvReference `json:"envSecrets,omitempty"`
RunningContext *RunningContext `json:"-"`
SlavePodRequest *PodRequest `json:"slavePodRequest,omitempty"`
// namespace for test execution (Pro edition only)
ExecutionNamespace string `json:"executionNamespace,omitempty"`
}

// ArgsModeType defines args mode type
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 @@ -282,6 +282,8 @@ type Execution struct {
// test execution name started the test execution
TestExecutionName string `json:"testExecutionName,omitempty"`
SlavePodRequest *PodRequest `json:"slavePodRequest,omitempty"`
// namespace for test execution (Pro edition only)
ExecutionNamespace string `json:"executionNamespace,omitempty"`
}

// artifact request body with test artifacts
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 @@ -169,6 +169,9 @@ spec:
type: string
description: test execution labels
type: object
executionNamespace:
description: namespace for test execution (Pro edition only)
type: string
httpProxy:
description: http proxy for executor containers
type: string
Expand Down Expand Up @@ -585,6 +588,9 @@ spec:
description: execute post run script before scraping (prebuilt
executor only)
type: boolean
executionNamespace:
description: namespace for test execution (Pro edition only)
type: string
executionResult:
description: execution result returned from executor
properties:
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 @@ -567,6 +567,9 @@ spec:
type: string
description: test execution labels
type: object
executionNamespace:
description: namespace for test execution (Pro edition only)
type: string
httpProxy:
description: http proxy for executor containers
type: string
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ spec:
description: execute post run script before scraping
(prebuilt executor only)
type: boolean
executionNamespace:
description: namespace for test execution (Pro
edition only)
type: string
executionResult:
description: execution result returned from executor
properties:
Expand Down Expand Up @@ -1019,6 +1023,10 @@ spec:
description: execute post run script before scraping
(prebuilt executor only)
type: boolean
executionNamespace:
description: namespace for test execution (Pro edition
only)
type: string
executionResult:
description: execution result returned from executor
properties:
Expand Down

0 comments on commit c1e3dd2

Please sign in to comment.