-
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
Remove error when converting Finally field to alpha1 #3757
Conversation
Prior to this commit pipelines returned an error when converting from a v1beta1 pipeline to a v1alpha1 pipeline if that pipeline had a Finally section in it. As a result of this error the kubeapi would repeatedly request v1alpha1 pipelines every second, filling up our webhook logs with these errors. This commit removes the error when downgrading a beta1 resource to alpha1. I actually have no idea if this is the correct thing to do and I can't find any docs explaining the dos and donts of conversion. This stops the spam though.
[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.
|
I'm happy to be convinced otherwise, but as far as I understand the problem, I think this approach is not an option. |
Capturing all the ideas that have been generated during a lengthy Slack discussion on this topic:
|
Closing this in favor of #3779 |
Changes
Fixes #3206
/hold
I'm posting this PR because I don't know what the right thing to do here is. Looking for feedback from anyone who knows the conversion webhook stuff better than me.
Prior to this commit pipelines returned an error when converting from
a v1beta1 pipeline to a v1alpha1 pipeline if that pipeline had a Finally
section in it. As a result of this error the kubeapi would repeatedly
request v1alpha1 pipelines every second, filling up our webhook logs
with these errors.
This is the place that kubernetes is repeatedly hitting us with conversion attempts.
This commit removes the error when downgrading a beta1 resource to alpha1.
I actually have no idea if this is the correct thing to do and I can't find
any docs explaining the dos and donts of conversion. This stops the spam
though.
/kind bug
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Double check this list of stuff that's easy to miss:
cmd
dir, please updatethe release Task to build and release this image.
Release Notes