Skip to content

Commit 0775cec

Browse files
committed
Add better comment in the default generated tmpl
explaining how to use remote tasks when using ClusterTasks Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent f057ac4 commit 0775cec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/cmd/tknpac/generate/templates/pipelinerun.yaml.tmpl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ metadata:
1111
# The branch or tag we are targeting (ie: main, refs/tags/*)
1212
pipelinesascode.tekton.dev/on-target-branch: "<< .event.BaseBranch >>"
1313
<< if .use_cluster_task >>
14-
# If we want to use the git-clone task from hub we can simply grab it with this annotations.
15-
# and referencing in the taskRef. Pipelines as Code will grab it from hub and automatically use the latest version.
14+
# If we wanted to use the git-clone task from hub we could specify the
15+
# annotation `pipelinesascode.tekton.dev/task annotation` and reference it
16+
# in the taskRef. Pipelines as Code when it sees this will grab it from hub
17+
# and automatically use the latest version. right know by default we will
18+
# use the `git-clone` ClusterTasks as shipped on this cluster.
19+
#
1620
# pipelinesascode.tekton.dev/task: "git-clone"
1721

1822
<<- else >>

0 commit comments

Comments
 (0)