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
Prune literally all kube-apiserver internal client #71136
Prune literally all kube-apiserver internal client #71136
Conversation
9941d97
to
2d8b6ab
Compare
d36a8ac
to
fac5503
Compare
@@ -46,8 +47,7 @@ import ( | |||
"k8s.io/kubernetes/pkg/api/legacyscheme" | |||
"k8s.io/kubernetes/pkg/api/testapi" | |||
api "k8s.io/kubernetes/pkg/apis/core" | |||
rbacapi "k8s.io/kubernetes/pkg/apis/rbac" |
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.
fac5503
to
15d899b
Compare
b43003a
to
e2e985b
Compare
:) :) |
/cc @yliaog |
bcc679c
to
16b941d
Compare
/test pull-kubernetes-integration |
2bfe523
to
27e0fe2
Compare
27e0fe2
to
8f601d3
Compare
@yue9944882: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/retest |
@@ -106,7 +107,12 @@ func AddSystemPriorityClasses() genericapiserver.PostStartHookFunc { | |||
_, err := schedClientSet.PriorityClasses().Get(pc.Name, metav1.GetOptions{}) | |||
if err != nil { | |||
if apierrors.IsNotFound(err) { | |||
_, err := schedClientSet.PriorityClasses().Create(pc) | |||
// TODO: Remove this explicit conversion after scheduling api move to v1 |
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.
these are v1 in #73557
scheduling.SystemPriorityClasses() should probably return versioned objects (and the method might need to move to a different package to be able to do that)
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.
fixing in this thread #76362
@@ -30,12 +31,12 @@ import ( | |||
"k8s.io/apiserver/pkg/registry/rest" | |||
genericapiserver "k8s.io/apiserver/pkg/server" | |||
serverstorage "k8s.io/apiserver/pkg/server/storage" | |||
schedulingclient "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" |
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.
use the v1 client
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.
fixing in this thread #76362
ditto
@@ -71,7 +71,6 @@ INTERNAL_DIRS_CSV=$(IFS=',';echo "${INTERNAL_DIRS[*]// /,}";IFS=$) | |||
|
|||
# This can be called with one flag, --verify-only, so it works for both the | |||
# update- and verify- scripts. | |||
${clientgen} --input-base="k8s.io/kubernetes/pkg/apis" --input="${INTERNAL_DIRS_CSV}" "$@" |
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.
drop INTERNAL_DIRS_CSV?
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.
fixing here #76363
a couple nits, but since this is a rebase magnet, we can take those in follow-up PRs /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, yue9944882 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 |
good to see this done. /lgtm |
…rune-internal-client-codegen-scripts Follow-up of kubernetes#71136: Clean up unused vars in codegen scripts
…nal-client-scheduling-v1-api Follow-up of #71136: Switch system priority class usage to versioned (v1) api
i dont think this will get into v1.13, so for now, it's just experimental.
/sig api-machienery
/kind cleanup
Does this PR introduce a user-facing change?: