From 7fe6f1d8a10f719056038a5cb15a1d5630750a30 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Wed, 1 Nov 2023 16:49:11 +0300 Subject: [PATCH] feat: data dir as working dir --- api/executor/v1/executor_types.go | 3 +++ config/crd/bases/executor.testkube.io_executors.yaml | 3 +++ 2 files changed, 6 insertions(+) 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