-
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
Patch vendor/ apimachinery to work on 1.22 #4164
Conversation
@vdemeester: GitHub didn't allow me to request PR reviews from the following users: core. Note that only tektoncd members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
/cc @tektoncd/core-maintainers |
I'm tempted to suggest that we only patch 0.27 and 0.26 and maybe 0.25, declaring anything less as incompatible with Kubernetes 1.22+. Whatever we decide I'm happy to perform the patches on the older release branches since I'll be doing it for 0.27 anyway. We might also want to apply docs-only patches to the older releases so that users can be informed of the platform incompatibility? What are you thinking with "patch management"? A shell script to apply the change with |
Right, I would have gone for 0.27 and 0.26 only initially, and document a larger set of others that there is an incompat. But there is one thing we need to figure out / document : "support" lifecycle, aka what is the lifecycle of a given release, when should we patch it, … I don't think we have this documented anywhere yet.
Downstream (OpenShift Pipelines), we are using a folder ( |
An alternative would be to do what knative did here, allowing unknown fields and get the validation through openapi schemas. But this needs main...vdemeester:schema-gen and as far as I tried, this only works with one version of CRD (trying this with multiple version and... it panics) |
Using /approve |
ping @tektoncd/core-maintainers it would be good to get input from one other person before we move ahead with this. We'd like to release as part of 0.27.3 so PTAL. |
I'll update the |
A new field is there in k8s 1.22, name subresource in the managedfields. This proves to make knative based types to not be valid on 1.22 and above, making tektoncd/pipeline as well as any other component using knative/pkg to be broken on 1.22 and above. Signed-off-by: Vincent Demeester <[email protected]>
This applies any patches that would be in `hack/patches` but not committing them as it would be repeating the same commit over and over. Signed-off-by: Vincent Demeester <[email protected]>
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbwsg 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 |
thanks for the fix @vdemeester! please add some release notes /lgtm also documenting here that, as discussed in owners' meeting, we plan to patch tekton pipelines 0.27 because it's the only one released after k8s 1.22 was released -- however, we will consider patching older tekton pipelines releases if many users are using them with k8s 1.22 |
Oh indeed.. |
0003-Patch-vendor-apimachinery-to-work-on-1.22.patch has become obsolete as tektoncd#4164 adds this change in upstream `vendor` directly Signed-off-by: Nikhil Thomas <[email protected]>
Changes
A new field is there in k8s 1.22, name subresource in the
managedfields. This proves to make knative based types to not be valid
on 1.22 and above, making tektoncd/pipeline as well as any other
component using knative/pkg to be broken on 1.22 and above.
Fixes #4158
Signed-off-by: Vincent Demeester [email protected]
/kind bug
Opening this PR to discuss what is the way forward, taking the following into account:
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes