From 09fdc24802dcc649bac5abf895475479738df0f3 Mon Sep 17 00:00:00 2001 From: Oliver Sand Date: Fri, 28 May 2021 12:47:18 +0200 Subject: [PATCH] Improve documentation Signed-off-by: Oliver Sand --- docs/features/software-templates/writing-templates.md | 1 + .../catalog-model/src/schema/kinds/Template.v1beta2.schema.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/features/software-templates/writing-templates.md b/docs/features/software-templates/writing-templates.md index f58db3ae91..bb921bd54b 100644 --- a/docs/features/software-templates/writing-templates.md +++ b/docs/features/software-templates/writing-templates.md @@ -271,6 +271,7 @@ template. These follow the same standard format: ```yaml - id: fetch-base # A unique id for the step name: Fetch Base # A title displayed in the frontend + if: '{{ parameters.name }}' # Optional condition, skip the step if not truthy action: fetch:cookiecutter # an action to call input: # input that is passed as arguments to the action handler url: ./template diff --git a/packages/catalog-model/src/schema/kinds/Template.v1beta2.schema.json b/packages/catalog-model/src/schema/kinds/Template.v1beta2.schema.json index 0bf8522fa4..01a012e5aa 100644 --- a/packages/catalog-model/src/schema/kinds/Template.v1beta2.schema.json +++ b/packages/catalog-model/src/schema/kinds/Template.v1beta2.schema.json @@ -132,7 +132,7 @@ }, "if": { "type": ["string", "boolean"], - "description": "A templated condition that skips the step when evaluated to false. If the condition is true or not defined, the step is executed." + "description": "A templated condition that skips the step when evaluated to false. If the condition is true or not defined, the step is executed. The condition is true, if the input is not `false`, `undefined`, `null`, `\"\"`, `0`, or `[]`." } } }