From de9b84512ea0cf7e94a16db7a4215fd8e2c6be3c Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Thu, 3 Aug 2023 11:06:27 +0200 Subject: [PATCH 1/3] fix link Signed-off-by: Moritz Wiesinger --- docs/content/en/docs/yaml-crd-ref/taskdefinition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/en/docs/yaml-crd-ref/taskdefinition.md b/docs/content/en/docs/yaml-crd-ref/taskdefinition.md index 6dec77a8a1..78764a9c77 100644 --- a/docs/content/en/docs/yaml-crd-ref/taskdefinition.md +++ b/docs/content/en/docs/yaml-crd-ref/taskdefinition.md @@ -616,7 +616,7 @@ which prints the help message for the python3 interpreter: ## More examples -See the [operator/config/samples](https://github.com/keptn/lifecycle-toolkit/tree/main/operator/config/samples/function_execution) +See the [operator/config/samples](https://github.com/keptn/lifecycle-toolkit/tree/main/lifecycle-operator/config/samples/function_execution) directory for more example `KeptnTaskDefinition` YAML files. ## Files From 1c5f55ef8790c37d34be8bfc9040c8d4304de546 Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Thu, 3 Aug 2023 11:47:34 +0200 Subject: [PATCH 2/3] fix links Signed-off-by: Moritz Wiesinger --- docs/content/en/docs/yaml-crd-ref/taskdefinition.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/content/en/docs/yaml-crd-ref/taskdefinition.md b/docs/content/en/docs/yaml-crd-ref/taskdefinition.md index 78764a9c77..0c86ff2360 100644 --- a/docs/content/en/docs/yaml-crd-ref/taskdefinition.md +++ b/docs/content/en/docs/yaml-crd-ref/taskdefinition.md @@ -574,7 +574,7 @@ then spawns a shell and runs the `sleep 30` command. You can embed python code directly in the task definition. This example prints data stored in the parameters map: -{{< embed path="/operator/config/samples/python_execution/taskdefinition_pyfunction_inline.yaml" >}} +{{< embed path="/lifecycle-operator/config/samples/python_execution/taskdefinition_pyfunction_inline.yaml" >}} ### Example 2: httpRef for a python-runtime runner @@ -584,25 +584,25 @@ For example, we have a few examples available in the tree. Consider the following: -{{< embed path="/operator/config/samples/python_execution/taskdefinition_pyfunction_configmap.yaml" >}} +{{< embed path="/lifecycle-operator/config/samples/python_execution/taskdefinition_pyfunction_configmap.yaml" >}} ### Example 3: functionRef for a python-runtime runner You can refer to an existing `KeptnTaskDefinition`. This example calls the inline example but overrides the data printed with what is specified in the task: -{{< embed path="/operator/config/samples/python_execution/taskdefinition_pyfunction_recursive.yaml" >}} +{{< embed path="/lifecycle-operator/config/samples/python_execution/taskdefinition_pyfunction_recursive.yaml" >}} ### Example 4: ConfigMapRef for a python-runtime runner -{{< embed path="/operator/config/samples/python_execution/taskdefinition_pyfunction_configmap.yaml" >}} +{{< embed path="/lifecycle-operator/config/samples/python_execution/taskdefinition_pyfunction_configmap.yaml" >}} ### Allowed libraries for the python-runtime runner The following example shows how to use some of the allowed packages, namely: requests, json, git, and yaml: -{{< embed path="/operator/config/samples/python_execution/taskdefinition_pyfunction_inline_printargs_py.yaml">}} +{{< embed path="/lifecycle-operator/config/samples/python_execution/taskdefinition_pyfunction_inline_printargs_py.yaml">}} ### Passing secrets, environment variables and modifying the python command @@ -612,7 +612,7 @@ and how to modify the python command. In this case the container runs with the `-h` option, which prints the help message for the python3 interpreter: -{{< embed path="/operator/config/samples/python_execution/taskdefinition_pyfunction_use_envvars.yaml" >}} +{{< embed path="/lifecycle-operator/config/samples/python_execution/taskdefinition_pyfunction_use_envvars.yaml" >}} ## More examples From f9abce9d8938dc079ef48863ab2be9be252de0f8 Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Thu, 3 Aug 2023 11:48:52 +0200 Subject: [PATCH 3/3] fix links Signed-off-by: Moritz Wiesinger --- docs/content/en/docs/yaml-crd-ref/taskdefinition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/en/docs/yaml-crd-ref/taskdefinition.md b/docs/content/en/docs/yaml-crd-ref/taskdefinition.md index 0c86ff2360..c89ddd256e 100644 --- a/docs/content/en/docs/yaml-crd-ref/taskdefinition.md +++ b/docs/content/en/docs/yaml-crd-ref/taskdefinition.md @@ -616,7 +616,7 @@ which prints the help message for the python3 interpreter: ## More examples -See the [operator/config/samples](https://github.com/keptn/lifecycle-toolkit/tree/main/lifecycle-operator/config/samples/function_execution) +See the [lifecycle-operator/config/samples](https://github.com/keptn/lifecycle-toolkit/tree/main/lifecycle-operator/config/samples/function_execution) directory for more example `KeptnTaskDefinition` YAML files. ## Files