Skip to content

Commit 449a6af

Browse files
authored
Merge pull request #561 from chmouel/add-better-template-comment-for-cluster-tasks
Add better comment in the default generated tmpl
2 parents 8040da0 + 29ced5f commit 449a6af

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 want 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 now 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)