Skip to content

Commit

Permalink
docs: document template level variable inheritance
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Jan 13, 2025
1 parent bc8bd52 commit b2afe4a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/docs/35-references/30-promotion-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,29 @@ spec:
value: feature-branch
```

When the Promotion Template defines a
[`vars` section](../30-how-to-guides/14-working-with-stages.md#promotion-templates)
the variables are inherited by the `PromotionTask` and do not require redefinition
unless they need to be overridden.

```yaml
apiVersion: kargo.akuity.io/v1alpha1
kind: Stage
# ...omitted for brevity
spec:
promotionTemplate:
spec:
vars:
- name: repoURL
value: https://github.com/example/repository.git
steps:
- task:
name: my-promotion-task
vars:
- name: sourceBranch
value: feature-branch
```

### Promotion Task Steps

The `spec.steps` section of a `PromotionTask` define the sequence of steps that
Expand Down

0 comments on commit b2afe4a

Please sign in to comment.