-
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
TaskRun is failing to run/complete in some cases (on different namespace, …) #3310
Comments
I'm not sure what difference the namespace makes, that might be a red herring. In any case, the issue seems to be that we should update annotations with a Patch instead of an Update, to prevent errors from concurrent updates. Is that correct? |
I can take a look at this if no one else is |
I think some namespaces had LimitRange and some did not (in the cluster it happened).
@imjasonh exactly 👍 |
Thanks @ywluogg and possibly replace one more pipeline/pkg/pod/entrypoint.go Lines 210 to 212 in 9c37fea
|
|
@mattmoor if I remember correctly using |
The reactor logic around generation handling won't work properly. This is mainly relevant for "primary key" types IIRC, so patching a child resource might be alright. |
Expected Behavior
OpenShift Pipelines 1.0.1 installed on OpenShift 4.4.17 is failing to run the below
TaskRun
in some specific namespaces. While it's working on some namespaces it's failing in specific with the following error reported intekton-pipelines-controller
:Actual Behavior
It always work.
Steps to Reproduce the Problem
Additional Info
The error is coming from the validation of the PodSpec, which is supposed to not change because we only add or update an annotation.
Looking into
pipeline/pkg/pod/entrypoint.go
Line 163 in 9c37fea
Patch
instead to make sure we just update the annotations./kind bug
The text was updated successfully, but these errors were encountered: