forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit closes tektoncd#6682. When apiversion and kind are both set for taskref, the task is considered to ba a custom task. For v1beta1 cluster task, it is also considered to be a custom task. This commit fixes this. Signed-off-by: Yongxuan Zhang [email protected]
- Loading branch information
1 parent
96212a1
commit 45569eb
Showing
6 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Pipeline | ||
metadata: | ||
name: dummy-pipeline | ||
namespace: default | ||
spec: | ||
tasks: | ||
- name: init | ||
params: | ||
- name: resource | ||
value: resouce | ||
taskRef: | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: ClusterTask | ||
name: init | ||
workspaces: | ||
- name: output | ||
workspace: shared | ||
workspaces: | ||
- description: Main workspace that is shared across each task in the build pipeline | ||
name: shared | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: ClusterTask | ||
metadata: | ||
name: init | ||
spec: | ||
workspaces: | ||
- name: output | ||
params: | ||
- name: resource | ||
type: string | ||
steps: | ||
- name: hello | ||
image: registry.access.redhat.com/ubi9-micro:latest | ||
args: ["$(params.resource)"] | ||
command: ["echo"] | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
name: dummy | ||
spec: | ||
pipelineRef: | ||
name: dummy-pipeline | ||
workspaces: | ||
- name: shared | ||
volumeClaimTemplate: | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 10Mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters