Skip to content

Commit

Permalink
chore: more renaming (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
mowies authored Aug 3, 2023
1 parent 97a2d25 commit f2d5bdd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/content/en/docs/yaml-crd-ref/taskdefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -612,11 +612,11 @@ 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

See the [operator/config/samples](https://github.com/keptn/lifecycle-toolkit/tree/main/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
Expand Down

0 comments on commit f2d5bdd

Please sign in to comment.