-
Notifications
You must be signed in to change notification settings - Fork 706
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
Conversation
9fc5308
to
e595fa1
Compare
e595fa1
to
ade332d
Compare
ade332d
to
cf8fe26
Compare
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
cf8fe26
to
d830c63
Compare
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{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The source.Kind{}
typed. was replaced with source.Kind()
function:
OwnerType: &kubeflowv1.MPIJob{}, | ||
}, predicate.Funcs{ | ||
// eventHandler for owned objects | ||
eventHandler := handler.EnqueueRequestForOwner(mgr.GetScheme(), mgr.GetRESTMapper(), &kubeflowv1.MPIJob{}, handler.OnlyControllerOwner()) |
There was a problem hiding this comment.
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:
/assign @johnugeorge |
friendly ping @johnugeorge :) |
Sorry for late review. Thanks @tenzen-y for adding 1.27 support /lgtm |
[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 |
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: