Skip to content

Commit

Permalink
Merge pull request #174 from lokanandaprabhu/feature/using-task-resolver
Browse files Browse the repository at this point in the history
SRVKP-6463: Use Tasks from the `openshift-pipelines` namespace instead of ClusterTask
  • Loading branch information
openshift-merge-bot[bot] authored Nov 8, 2024
2 parents 3831426 + 8bb1ad2 commit 2408b0c
Show file tree
Hide file tree
Showing 50 changed files with 555 additions and 804 deletions.
60 changes: 0 additions & 60 deletions console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,20 +433,6 @@
"required": ["HIDE_STATIC_PIPELINE_PLUGIN_TASKRUNS_LIST"]
}
},
{
"type": "console.page/resource/list",
"properties": {
"model": {
"group": "tekton.dev",
"version": "v1beta1",
"kind": "ClusterTask"
},
"component": { "$codeRef": "tasksComponent.ClusterTaskListPage" }
},
"flags": {
"required": ["HIDE_STATIC_PIPELINE_PLUGIN_CLUSTERTASKS_LIST"]
}
},
{
"type": "console.page/resource/list",
"properties": {
Expand Down Expand Up @@ -475,20 +461,6 @@
"required": ["HIDE_STATIC_PIPELINE_PLUGIN_TASKRUNS_LIST"]
}
},
{
"type": "console.page/resource/list",
"properties": {
"model": {
"group": "tekton.dev",
"version": "v1",
"kind": "ClusterTask"
},
"component": { "$codeRef": "tasksComponent.ClusterTaskListPage" }
},
"flags": {
"required": ["HIDE_STATIC_PIPELINE_PLUGIN_CLUSTERTASKS_LIST"]
}
},
{
"type": "console.tab/horizontalNav",
"properties": {
Expand Down Expand Up @@ -828,38 +800,6 @@
"column": "right"
}
},
{
"type": "console.resource/details-item",
"properties": {
"id": "clustertasks-workspaces",
"model": {
"group": "tekton.dev",
"version": "v1",
"kind": "ClusterTask"
},
"component": {
"$codeRef": "tasksComponent.WorkspaceDefinitionList"
},
"sortWeight": 1,
"column": "right"
}
},
{
"type": "console.resource/details-item",
"properties": {
"id": "clustertasks-workspaces",
"model": {
"group": "tekton.dev",
"version": "v1beta1",
"kind": "ClusterTask"
},
"component": {
"$codeRef": "tasksComponent.WorkspaceDefinitionList"
},
"sortWeight": 1,
"column": "right"
}
},
{
"type": "console.page/resource/details",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ Feature: Create the pipeline from builder page
And user clicks Create Pipeline button
And user clicks Add task button under Tasks section
And user types 'git'
Then user will see Task, clusterTask only
Then user will see Task only


@regression @manual
Expand Down
38 changes: 28 additions & 10 deletions integration-tests/cypress/testData/customNodeDeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ spec:
- name: revision
value: $(params.GIT_REVISION)
- name: subdirectory
value: ''
value: ""
- name: deleteExisting
value: 'true'
value: "true"
taskRef:
kind: ClusterTask
name: git-clone
resolver: cluster
params:
- name: kind
value: task
- name: name
value: git-clone
- name: namespace
value: openshift-pipelines
workspaces:
- name: output
workspace: workspace
Expand All @@ -44,16 +50,22 @@ spec:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: TLSVERIFY
value: 'false'
value: "false"
- name: PATH_CONTEXT
value: $(params.PATH_CONTEXT)
- name: VERSION
value: $(params.VERSION)
runAfter:
- fetch-repository
taskRef:
kind: ClusterTask
name: s2i-nodejs
resolver: cluster
params:
- name: kind
value: task
- name: name
value: s2i-nodejs
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: workspace
Expand All @@ -64,7 +76,13 @@ spec:
runAfter:
- build
taskRef:
kind: ClusterTask
name: openshift-client
resolver: cluster
params:
- name: kind
value: task
- name: name
value: openshift-client
- name: namespace
value: openshift-pipelines
workspaces:
- name: workspace
- name: workspace
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ spec:
- name: revision
value: $(params.GIT_REVISION)
- name: subdirectory
value: ''
value: ""
- name: deleteExisting
value: 'true'
value: "true"
taskRef:
kind: ClusterTask
name: git-clone
resolver: cluster
params:
- name: kind
value: task
- name: name
value: git-clone
- name: namespace
value: openshift-pipelines
workspaces:
- name: output
workspace: workspace
Expand All @@ -44,16 +50,22 @@ spec:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: TLSVERIFY
value: 'false'
value: "false"
- name: PATH_CONTEXT
value: $(params.PATH_CONTEXT)
- name: VERSION
value: $(params.VERSION)
runAfter:
- fetch-repository
taskRef:
kind: ClusterTask
name: s2i-python
resolver: cluster
params:
- name: kind
value: task
- name: name
value: s2i-python
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: workspace
Expand All @@ -64,7 +76,13 @@ spec:
runAfter:
- build
taskRef:
kind: ClusterTask
name: openshift-client
resolver: cluster
params:
- name: kind
value: task
- name: name
value: openshift-client
- name: namespace
value: openshift-pipelines
workspaces:
- name: workspace
16 changes: 11 additions & 5 deletions integration-tests/cypress/testData/petclinic-pipeline-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,16 @@ spec:
- name: revision
value: $(params.APP_GIT_REVISION)
- name: deleteExisting
value: 'true'
value: "true"
taskRef:
kind: ClusterTask
name: git-clone
resolver: cluster
params:
- name: kind
value: task
- name: name
value: git-clone
- name: namespace
value: openshift-pipelines
workspaces:
- name: output
workspace: app-source
Expand All @@ -427,7 +433,7 @@ spec:
- name: build-image
params:
- name: TLSVERIFY
value: 'false'
value: "false"
- name: OUTPUT_IMAGE_STREAM
value: $(params.APP_IMAGE_STREAM)
runAfter:
Expand Down Expand Up @@ -518,7 +524,7 @@ spec:
description: The location of the path to run s2i from
name: PATH_CONTEXT
type: string
- default: 'false'
- default: "false"
description: Verify the TLS on the registry endpoint (for push/pull to a non-TLS registry)
name: TLSVERIFY
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,26 @@ metadata:
spec:
params:
- name: param1
description: ''
description: ""
default:
- foo
- bar
- name: param2
description: ''
description: ""
default: default1
resources: []
workspaces: []
tasks:
- name: kn
taskRef:
kind: ClusterTask
name: kn
resolver: cluster
params:
- name: kind
value: task
- name: name
value: kn
- name: namespace
value: openshift-pipelines
params:
- name: kn-image
value: >-
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2408b0c

Please sign in to comment.