-
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
Fail fast on invalid image #6982
Conversation
@@ -2314,65 +2314,36 @@ status: | |||
} | |||
} | |||
|
|||
func TestReconcilePodFailuresStepImagePullFailed(t *testing.T) { |
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.
I turned the next test into a matrix test, and the two cases in here are included in the next test now.
@chmouel FYI |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Example
|
The kubernets pod treats an invallid image failures as potentially ephemeral errors, because even if the format of the image reference is not syntactically correct, users may update image without recreating the Pod. Tekton, however, uses Pod to provide workloads that run to completion, and users are not allowed to change the specification of steps during execution. This commits changes the handling of the InvalidImageName pod reason, so that the TaskRun is marked as failed and the Pod deleted. Fixes: tektoncd#6105 Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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.
Thanks! Changes look good to me
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.
Thanks @afrittoli , very nit in the commit message for kubernetes
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JeromeJu, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@JeromeJu @vdemeester can I get an lgtm? |
/lgtm |
Changes
The kubernets pod treats an invallid image failures as potentially ephemeral errors, because even if the format of the image reference is not syntactically correct, users may update image without recreating the Pod.
Tekton, however, uses Pod to provide workloads that run to completion, and users are not allowed to change the specification of steps during execution.
This commits changes the handling of the InvalidImageName pod reason, so that the TaskRun is marked as failed and the Pod deleted.
Fixes: #6105
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes
/kind bug