-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: When pipelineRun failed to create taskRun then should mark pipelineRun failed #5887
Conversation
Hi @yuzp1996. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
8bbcd29
to
a4e6d46
Compare
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuzp1996 thanks for the contribution, and welcome to tekton!
/meow
please add tests - it is not clear how the validation for taskref fails pipelineruns when taskrun is not created
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
also please rebase, and remove the WIP so that folks can review the change |
OK thanks for your reminder and I will finish it this week. |
f3ee8f2
to
7debba0
Compare
7debba0
to
e1c3001
Compare
e1c3001
to
a723dbe
Compare
…TaskRef is invalid. So add taskRef validation in webhook.
a723dbe
to
f4c8c64
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The following is the coverage report on the affected files.
|
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Changes
Mark pipelineRun failed when create Taskrun failed & Add validation for pipeline.spec.task.taskRef
It will be successed when create pipeline even Pipeline.Spec.Tasks[].TaskRef is invalid.
So add taskRef validation in webhook.
If pielineRun create taskRun failed then pipelineRun will freeze in a status and not change. It is
confused for users.
And now it will mark pipelineRun as failed and return a permanent error.
Related issue: #5673
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes