Skip to content

Commit 5e5ba29

Browse files
committed
RHOAIENG-18400: chore(konflux): restrict triggering only for the opendatahub-io/notebooks repository
Without this, we'd have a failed pipeline on red-hat-data-services/notebooks fork > There was an error creating the PipelineRun: *jupyter-minimal-ubi9-python-3-11-on-pull-request-* > > creating pipelinerun jupyter-minimal-ubi9-python-3-11-on-pull-request- in namespace rhoai-tenant has failed. > > Tekton Controller has reported this error: `the namespace of the provided object does not match the namespace sent on the request`
1 parent a0c7cd7 commit 5e5ba29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.tekton/jupyter-minimal-ubi9-python-3-11-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
pipelinesascode.tekton.dev/cancel-in-progress: "true"
1111
pipelinesascode.tekton.dev/max-keep-runs: "3"
1212
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
13-
== "main"
13+
== "main" && has(body.repository) && body.repository.full_name == "opendatahub-io/notebooks"
1414
creationTimestamp: null
1515
labels:
1616
appstudio.openshift.io/application: notebooks

.tekton/jupyter-minimal-ubi9-python-3-11-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
pipelinesascode.tekton.dev/cancel-in-progress: "false"
1010
pipelinesascode.tekton.dev/max-keep-runs: "3"
1111
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
12-
== "main"
12+
== "main" && has(body.repository) && body.repository.full_name == "opendatahub-io/notebooks"
1313
creationTimestamp: null
1414
labels:
1515
appstudio.openshift.io/application: notebooks

0 commit comments

Comments
 (0)