-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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] Generate the secret name in kubefed join. #42513
Conversation
Hi @perotinus. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with 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. |
@madhusudancs Ping? Hopefully this shouldn't be too hard to review. |
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
827e0bb
to
a7f2b43
Compare
a7f2b43
to
61e46ec
Compare
@madhusudancs Can you review this when you get a chance? One question: since kubefed is now beta, do we need to keep supporting the |
@perotinus I think deprecation policy's rule #5b applies to our case here since kubefed is an admin-facing CLI element and it's in beta. So we need to mark |
@k8s-bot ok to test |
@perotinus mostly minor nits. Please ping me once they are addressed. Reviewed 4 of 4 files at r1. federation/pkg/kubefed/join.go, line 80 at r1 (raw file):
Just leaving a note to mark this as deprecated. federation/pkg/kubefed/join.go, line 125 at r1 (raw file):
Note to bring it back for the deprecated flag. federation/pkg/kubefed/join.go, line 137 at r1 (raw file):
We generally use a federation/pkg/kubefed/join_test.go, line 201 at r1 (raw file):
Feel free to ignore: Too implementation dependent, but this is a unit test. So instead check if the federation/pkg/kubefed/join_test.go, line 306 at r1 (raw file):
Same here. Comments from Reviewable |
Review status: all files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. federation/pkg/kubefed/join.go, line 80 at r1 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/join.go, line 125 at r1 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/join_test.go, line 201 at r1 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
I've done something similar: I think the key thing that we care about in re the generated secret name is that it's not zero length, so I'm testing that. Comments from Reviewable |
61e46ec
to
3120898
Compare
@perotinus I have one open question. Reviewed 2 of 3 files at r2. federation/pkg/kubefed/join.go, line 81 at r2 (raw file):
Can we also say "DEPRECATED" in the string somewhere here? Or is that auto-generated by the flags library? Comments from Reviewable |
Review status: 3 of 4 files reviewed at latest revision, 3 unresolved discussions. federation/pkg/kubefed/join.go, line 81 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
The flags library deals with that: Flag --secret-name has been deprecated, kubefed now generates a secret name, and this flag will be removed in a future release. Comments from Reviewable |
/approve Reviewed 1 of 3 files at r2. federation/pkg/kubefed/join.go, line 81 at r2 (raw file): Previously, perotinus (Jonathan MacMillan) wrote…
Awesome! Comments from Reviewable |
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
1 similar comment
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
Review status: all files reviewed at latest revision, 4 unresolved discussions. federation/cluster/federation-up.sh, line 110 at r2 (raw file):
@perotinus Federation presubmit failed - https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/42513/pull-kubernetes-federation-e2e-gce/2697/?log#log Sorry, I wasn't paying attention. But I am so happy that we have presubmits now! Trailing Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions. federation/cluster/federation-up.sh, line 110 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
D'oh! Fixed. Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions. federation/pkg/kubefed/join.go, line 137 at r1 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/join_test.go, line 306 at r1 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. Comments from Reviewable |
3120898
to
3eb1db3
Compare
@perotinus: The following test(s) failed:
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. |
3eb1db3
to
77e71a8
Compare
@madhusudancs Can you rerun the Federation e2e tests when you get a chance? |
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
1 similar comment
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
/lgtm Reviewed 1 of 1 files at r3. Comments from Reviewable |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: madhusudancs, perotinus
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 45100, 45152, 42513, 44796, 45222) |
Addresses part of #42324. A follow-up PR will address annotating Federation resources.