Skip to content

Commit

Permalink
docs: update broken task file (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
RealAnna committed Feb 6, 2023
1 parent ce6b7f0 commit 082f091
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/content/en/docs/concepts/tasks/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ spec:
console.log("Deployment Task has been executed");
```
In the code section, it is possible to define a full-fletched Deno script. An example for that would be:
In the code section, it is possible to define a full-fletched Deno script.
```yaml
apiVersion: lifecycle.keptn.sh/v1alpha2
kind: KeptnTaskDefinition
Expand Down Expand Up @@ -68,6 +67,8 @@ spec:
url: <url>
```
An example is available [here](https://github.com/keptn-sandbox/lifecycle-toolkit-examples/blob/main/sample-app/version-1/app-pre-deploy.yaml).
Finally, `KeptnTaskDefinition` can build on top of other `KeptnTaskDefinition`s.
This is a common use case where a general function can be re-used in multiple places with different parameters.

Expand Down Expand Up @@ -99,4 +100,4 @@ Here, the `secret` value is the K8s secret name that will be mounted into the ru

A Task is responsible for executing the TaskDefinition of a workload.
The execution is done spawning a K8s Job to handle a single Task.
In its state, it keeps track of the current status of the K8s Job created.
In its state, it keeps track of the current status of the K8s Job created.

0 comments on commit 082f091

Please sign in to comment.