Skip to content
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

Bump dependencies in kpt and porch #3035

Merged
merged 2 commits into from
Apr 21, 2022
Merged

Bump dependencies in kpt and porch #3035

merged 2 commits into from
Apr 21, 2022

Conversation

mengqiy
Copy link
Contributor

@mengqiy mengqiy commented Apr 21, 2022

The 1st commit vendor some packages from cli-utils to the thirdparty directory.
The 2nd commit update the dependencies for kpt and porch.

Comment on lines +41 to +45
k8s.io/api v0.24.0-rc.0
k8s.io/apimachinery v0.24.0-rc.0
k8s.io/apiserver v0.24.0-rc.0
k8s.io/client-go v0.24.0-rc.0
k8s.io/component-base v0.24.0-rc.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what drives the change to take dependency on RC build?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an expert on k8s lib release versions. But the RC release contains the right version which will resolve the dependency conflicts that blocks bumping builtin functions in Porch, and blocks bumping kyaml in kpt.

The former is needed for the next fishfooding and the RC seems the most stable version we can use. @mengqiy correct me if I'm wrong.

More context is here: kubernetes/client-go#1075

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to include a kyaml change (kubernetes-sigs/kustomize#4568) which contains a performance improvement for both kpt and porch. This change requires kubernetes/kube-openapi#283 which is merged after breaking change kubernetes/kube-openapi#285.
The kube-openapi breaking change was imported to k8s after v0.24.0 (kubernetes/kubernetes#108644). It means that NO 0.23.X k8s packages (including apimachinery and client-go) work with our desired kyaml change.

According to k8s 1.24 release schedule, 0.24.0-rc.1 is expected on 04/26 and 0.24.0 is expected on 05/03.

@mengqiy mengqiy requested a review from droot April 21, 2022 17:04
if !meta.MaybeResetRESTMapper(mapper) {
return fmt.Errorf("failed to reset RESTMapper: %T", mapper)
}
meta.MaybeResetRESTMapper(mapper)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this doesn't throw any errors anymore ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't throw error any more.

@mengqiy mengqiy merged commit d7a385a into kptdev:main Apr 21, 2022
@mengqiy mengqiy deleted the bumpdeps branch April 21, 2022 20:13
@yuwenma
Copy link
Contributor

yuwenma commented Apr 21, 2022

SWEEEET!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants