diff --git a/api/executor/v1/executor_types.go b/api/executor/v1/executor_types.go index 8b2991c4..5cc0c064 100644 --- a/api/executor/v1/executor_types.go +++ b/api/executor/v1/executor_types.go @@ -63,6 +63,9 @@ type ExecutorSpec struct { // Slaves data to run test in distributed environment Slaves *SlavesMeta `json:"slaves,omitempty"` + + // use data dir as working dir for executor + UseDataDirAsWorkingDir bool `json:"useDataDirAsWorkingDir,omitempty"` } type SlavesMeta struct { diff --git a/config/crd/bases/executor.testkube.io_executors.yaml b/config/crd/bases/executor.testkube.io_executors.yaml index ffdc3781..5fad9b78 100644 --- a/config/crd/bases/executor.testkube.io_executors.yaml +++ b/config/crd/bases/executor.testkube.io_executors.yaml @@ -125,6 +125,9 @@ spec: uri: description: URI for rest based executors type: string + useDataDirAsWorkingDir: + description: use data dir as working dir for executor + type: boolean type: object status: description: ExecutorStatus defines the observed state of Executor