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

Upgrade the kubernetes dependencies to v1.27 #1834

Merged
merged 1 commit into from
Jun 25, 2023

Conversation

tenzen-y
Copy link
Member

@tenzen-y tenzen-y commented Jun 17, 2023

What this PR does / why we need it:
I upgraded kubernetes dependencies to v1.27.

Note: the latest controller-runtime has huge breaking changes without backward compatibility. So I modified the SetupWithManager in all controllers.

ref: https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0

Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Fixes #1803

Checklist:

  • Docs included if any changes are user facing

@google-oss-prow google-oss-prow bot requested review from jinchihe and kuizhiqing June 17, 2023 11:35
@tenzen-y tenzen-y marked this pull request as ready for review June 17, 2023 11:35
@tenzen-y tenzen-y force-pushed the upgrade-k8s-1.27 branch 2 times, most recently from 9fc5308 to e595fa1 Compare June 17, 2023 11:38
@coveralls
Copy link

coveralls commented Jun 17, 2023

Pull Request Test Coverage Report for Build 5305129563

  • 69 of 120 (57.5%) changed or added relevant lines in 6 files are covered.
  • 27 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.05%) to 33.892%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controller.v1/paddlepaddle/paddlepaddle_controller.go 19 21 90.48%
pkg/controller.v1/pytorch/pytorchjob_controller.go 17 19 89.47%
pkg/controller.v1/tensorflow/tfjob_controller.go 17 19 89.47%
pkg/controller.v1/mpi/mpijob_controller.go 16 20 80.0%
pkg/controller.v1/xgboost/xgboostjob_controller.go 0 19 0.0%
pkg/controller.v1/mxnet/mxjob_controller.go 0 22 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/controller.v1/xgboost/xgboostjob_controller.go 1 0%
pkg/controller.v1/pytorch/pytorchjob_controller.go 2 59.79%
pkg/controller.v1/tensorflow/tfjob_controller.go 2 70.74%
pkg/controller.v1/paddlepaddle/paddlepaddle_controller.go 10 56.03%
pkg/controller.v1/mpi/mpijob_controller.go 12 77.17%
Totals Coverage Status
Change from base Build 5304912459: 0.05%
Covered Lines: 3297
Relevant Lines: 9728

💛 - Coveralls

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
if err != nil {
return err
}

// using onOwnerCreateFunc is easier to set defaults
if err = c.Watch(&source.Kind{Type: &kubeflowv1.MPIJob{}}, &handler.EnqueueRequestForObject{},
if err = c.Watch(source.Kind(mgr.GetCache(), &kubeflowv1.MPIJob{}), &handler.EnqueueRequestForObject{},
Copy link
Member Author

@tenzen-y tenzen-y Jun 18, 2023

Choose a reason for hiding this comment

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

OwnerType: &kubeflowv1.MPIJob{},
}, predicate.Funcs{
// eventHandler for owned objects
eventHandler := handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &kubeflowv1.MPIJob{}, handler.OnlyControllerOwner())
Copy link
Member Author

@tenzen-y tenzen-y Jun 18, 2023

Choose a reason for hiding this comment

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

The handler.EnqueueRequestForOwner{} typed was replaced with handler.EnqueueRequestForOwner() function:

https://github.com/kubernetes-sigs/controller-runtime/blob/116a1b831fffe7ccc3c8145306c3e1a3b1b14ffa/pkg/handler/enqueue_owner.go#L50-L62

@tenzen-y
Copy link
Member Author

/assign @johnugeorge

@tenzen-y
Copy link
Member Author

friendly ping @johnugeorge :)

@johnugeorge
Copy link
Member

Sorry for late review.

Thanks @tenzen-y for adding 1.27 support

/lgtm
/approve

@google-oss-prow google-oss-prow bot added the lgtm label Jun 25, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnugeorge, tenzen-y

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 9ffcd36 into kubeflow:master Jun 25, 2023
@tenzen-y tenzen-y deleted the upgrade-k8s-1.27 branch June 25, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubernetes versions to be supported in the next training operator release
3 participants