Skip to content

Commit

Permalink
Added slaves field in executor CRD to add slaves configuration (#177)
Browse files Browse the repository at this point in the history
* Added slaves field in executor CRD to add slaves configuration

Signed-off-by: hiteshwani <hitesh.wani@infracloud.io>

* Discard changes

Signed-off-by: hiteshwani <hitesh.wani@infracloud.io>

* Fixed trivial review comments

Signed-off-by: Aman Parauliya <aman@infracloud.io>

---------

Signed-off-by: hiteshwani <hitesh.wani@infracloud.io>
Signed-off-by: Aman Parauliya <aman@infracloud.io>
Co-authored-by: Aman Parauliya <aman@infracloud.io>
  • Loading branch information
hiteshwani and Aman Parauliya authored Sep 26, 2023
1 parent 4d087b2 commit fe2d1f9
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 9 deletions.
7 changes: 7 additions & 0 deletions apis/executor/v1/executor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ type ExecutorSpec struct {

// Meta data about executor
Meta *ExecutorMeta `json:"meta,omitempty"`

// Slaves data to run test in distributed environment
Slaves *SlavesMeta `json:"slaves,omitempty"`
}

type SlavesMeta struct {
Image string `json:"image"`
}

// +kubebuilder:validation:Enum=artifacts;junit-report
Expand Down
21 changes: 21 additions & 0 deletions apis/executor/v1/zz_generated.deepcopy.go

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

1 change: 1 addition & 0 deletions apis/template/v1/zz_generated.deepcopy.go

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

20 changes: 20 additions & 0 deletions apis/tests/v3/zz_generated.deepcopy.go

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

20 changes: 20 additions & 0 deletions apis/testsuite/v2/zz_generated.deepcopy.go

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

26 changes: 22 additions & 4 deletions apis/testsuite/v3/zz_generated.deepcopy.go

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

2 changes: 1 addition & 1 deletion apis/testtriggers/v1/testtrigger_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type TestTriggerSpec struct {
// TestSelector identifies on which Testkube Kubernetes Objects an Action should be taken
TestSelector TestTriggerSelector `json:"testSelector"`
// ConcurrencyPolicy defines concurrency policy for selected Execution
ConcurrencyPolicy TestTriggerConcurrencyPolicy `json:"concurrencyPolicy, omitEmpty"`
ConcurrencyPolicy TestTriggerConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
// Delay is a duration string which specifies how long should the test be delayed after a trigger is matched
// +kubebuilder:validation:Type:=string
// +kubebuilder:validation:Format:=duration
Expand Down
2 changes: 1 addition & 1 deletion apis/testtriggers/v1/zz_generated.deepcopy.go

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

8 changes: 8 additions & 0 deletions config/crd/bases/executor.testkube.io_executors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ spec:
description: executor tooltips
type: object
type: object
slaves:
description: Slaves data to run test in distributed environment
properties:
image:
type: string
required:
- image
type: object
types:
description: Types defines what types can be handled by executor e.g.
"postman/collection", ":curl/command" etc
Expand Down
3 changes: 1 addition & 2 deletions config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,7 @@ spec:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution
artifacts
description: don't use a separate folder for execution artifacts
type: boolean
storageBucket:
description: artifact bucket storage
Expand Down
1 change: 0 additions & 1 deletion config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down

0 comments on commit fe2d1f9

Please sign in to comment.