-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Use unversioned client in scheduledjobs and set group version to batch/v2alpha1 #30327
Use unversioned client in scheduledjobs and set group version to batch/v2alpha1 #30327
Conversation
I'll start with fixing this with #25442. The change itself LGTM. |
@@ -128,6 +129,7 @@ func Run(s *options.CMServer) error { | |||
} | |||
|
|||
kubeconfig.ContentConfig.ContentType = s.ContentType | |||
kubeconfig.ContentConfig.GroupVersion = &unversioned.GroupVersion{Group: batch.GroupName, Version: "v2alpha1"} |
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.
On second thought, can you move this piece and initiate the kubeclient with this version only when batch/v2alpha1
is enabled?
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.
Iow. just before starting the controller, you do have access to kubeconfig at that point and should be able to create a new kubeclient easily.
As stated before LGTM, except for the single nit which when you fix you can apply the label. |
d718b45
to
04e8211
Compare
04e8211
to
5984f5e
Compare
Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion. cmd/kube-controller-manager/app/controllermanager.go, line 132 [r1] (raw file):
|
@soltysh looks like you need to accept the change in reviewable otherwise the bot won't merge this (see the |
LGTM Comments from Reviewable |
Reviewed 1 of 3 files at r1, 2 of 2 files at r2. Comments from Reviewable |
5984f5e
to
b948375
Compare
Rebased |
Hopefully this commit goes in soon...the Submit Queue is blocked due to the GKE failures from #26027 |
@girishkalele you're the buildcop, right? you can just merge it if you are satisfied it's good. |
(but maybe at least wait for passing PR Jenkins) |
b948375
to
e4269d4
Compare
GCE e2e build/test passed for commit e4269d4. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit e4269d4. |
Automatic merge from submit-queue |
Fixes #30323
This change is