-
Notifications
You must be signed in to change notification settings - Fork 38.9k
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
[Federation] Implement kubefed
command.
#35495
[Federation] Implement kubefed
command.
#35495
Conversation
Jenkins GCI GCE e2e failed for commit 0dc50b23bd9f9b43c068e9da0ced0e5c559c4b82. Full PR test history. The magic incantation to run this job again is |
0dc50b2
to
74fb6c2
Compare
Jenkins GCI GKE smoke e2e failed for commit 74fb6c2. Full PR test history. The magic incantation to run this job again is |
Looked at the last commit only. LGTM |
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.
Minor nits, then LGTM. Feel free to apply the label once addressed.
"os" | ||
|
||
"k8s.io/kubernetes/federation/pkg/kubefed" | ||
_ "k8s.io/kubernetes/pkg/client/metrics/prometheus" // for client metric registration |
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.
Do prometheus client metrics apply for federation? It's not clear to me that you need this import here?
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.
It is a client metric, nothing specific to federation. It measures how long a request takes as seen by the client. I put it there because I thought it would be useful when it is necessary.
_ "k8s.io/kubernetes/pkg/client/metrics/prometheus" // for client metric registration | ||
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util" | ||
"k8s.io/kubernetes/pkg/util/logs" | ||
_ "k8s.io/kubernetes/pkg/version/prometheus" // for version metric registration |
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.
Same comment as above.
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.
Same as above :)
Also, add unit tests for `kubefed unjoin`.
74fb6c2
to
8d540ac
Compare
8d540ac
to
0299024
Compare
Jenkins verification failed for commit 02990249ace4bc7ab9eb0927668cf7dafa9001cd. Full PR test history. The magic incantation to run this job again is |
0299024
to
2b78a48
Compare
Also: 1. Add it to the client build targets list. 2. Register `kubefed join` and `kubefed unjoin` commands.
2b78a48
to
3c692eb
Compare
Adding |
Automatic merge from submit-queue [Federation][(Un)join-01] Refactor common functions and structs into a util package. Please review only the last commit here. This is based on PR #35495 which will be reviewed independently. Design Doc: PR #34484 cc @kubernetes/sig-cluster-federation @quinton-hoole @nikhiljindal
Supersedes PR #35154.
Please review only the last commit here. This is based on PR #35494 which will be reviewed independently.
I will add a release note separately for this entire feature, so please don't worry too much about the release note here in the PR.
Design Doc: PR #34484
cc @kubernetes/sig-cluster-federation @quinton-hoole @mwielgus
This change is![Reviewable](https://camo.githubusercontent.com/2d899f4291d07d3cd2fa4aaae1e3b243f164c23fce87d30a589ace0d496a444c/68747470733a2f2f72657669657761626c652e6b756265726e657465732e696f2f7265766965775f627574746f6e2e737667)