-
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
duplicate kube-apiserver to federated-apiserver #23509
duplicate kube-apiserver to federated-apiserver #23509
Conversation
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
2 similar comments
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Labelling this PR as size/XXL |
Am curious if you tried using the code as in https://github.com/kubernetes/kubernetes/blob/master/examples/apiserver/apiserver.go? Ref #21190 (comment) |
@nikhiljindal I'm aware of that piece of code, and I wouldn't mind starting a brand new ube-apiserver. I guess I didn't explain my self clearly, the problem is that ube-apiserver is meant to be compatible with kube-apiserver, which means in the end there has to be some kind of reuse/sync of these two apiservers. I prefer coping kube-apiserver for now is that I can focus on the api objects instead of getting distracted of all the details such as the options/configs of the apiserver it self. |
ok thats reasonable. I can work on reducing the code duplication while you can work on ubernetes API objects. ube-apiserver doesnt look like the right name. @kubernetes/sig-api-machinery @kubernetes/sig-cluster-federation |
@k8s-bot ok to test |
GCE e2e build/test failed for commit 442ca923d63e1b4f8ef8b00caf529cb06d8aba19. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
Thanks @nikhiljindal. |
In /cmd/ by convention in Go we name the directory the expected binary
name. That's the only place expected to have long names - shorter
names are fine in other places.
Is federated-apiserver really that long? Tab completion should make
it a non-issue in many environments.
|
GCE e2e build/test failed for commit 7ad455d1ad0f76a6948c16843afb5fe278053256. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
I would call it |
If long name is not a concern than |
it was |
Since we call the other binaries kube-* I'm not morally opposed to |
Since we're voting on names :-) I'm generally more in favor of semantic rather than brand names in code, because it reduces cognitive overhead. So "federated..." in preference to "ubernetes..." or "...ube". Regarding the name length concern, it seems that in most cases this can be addressed by importing it as a shorter name (e.g. "fed") where desired. So to cast my vote, I'm with Nikhil on "federated-apiserver". But I don't feel strongly enough about it to veto some other majority view. |
Thanks for renaming to federated-apiserver. |
GCE e2e build/test passed for commit ca72bba. |
@k8s-bot test this Tests are more than 48 hours old. Re-running tests. |
GCE e2e build/test passed for commit ca72bba. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit ca72bba. |
Automatic merge from submit-queue |
UPSTREAM: <carry>: UT that checks if ResourceQuota is before ClusterR… Origin-commit: 3e8d99cff3a4948fe6ef3bed4f077cc0c34962f2
duplicate the kube-apiserver source code to ube-apiserver and update references
cluster specific api objects will be in separate PRs
#19313, #21190
#21190 (comment)
@nikhiljindal