Skip to content

Commit

Permalink
docs: Add note on the requirements of resource templates. Fixes #5566 (
Browse files Browse the repository at this point in the history
…#6125)

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored Jun 10, 2021
1 parent b5bd024 commit 44dc1aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,9 @@ spec:
backoffLimit: 4
```
**Note:**
Currently only a single resource can be managed by a resource template so either a `generateName` or `name` must be provided in the resource's metadata.

Resources created in this way are independent of the workflow. If you want the resource to be deleted when the workflow is deleted then you can use [Kubernetes garbage collection](https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/) with the workflow resource as an owner reference ([example](./k8s-owner-reference.yaml)).

**Note:**
Expand Down

0 comments on commit 44dc1aa

Please sign in to comment.