-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🏃 Add auth providers support to clusterctl #2684
🏃 Add auth providers support to clusterctl #2684
Conversation
Hi @dippynark. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
03cea2e
to
5df16c0
Compare
/assign @vincepri |
cmd/clusterctl/main.go
Outdated
@@ -17,6 +17,7 @@ limitations under the License. | |||
package main | |||
|
|||
import ( | |||
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" |
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.
In the interest of improving UX, would it be better to import all of the auth providers provider in the client-go auth package rather than just GCP? (This may cause issues with dependencies for the Azure provider, dep
regularly had problems resolving this in the past, not sure if this is solved with go mod
)
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" | |
_ "k8s.io/client-go/plugin/pkg/client/auth" |
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.
done, seem to have had more luck with go mod
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.
ah actually, spoke too soon - CI seems to have the issue you described
In the past we've imported all auth providers rather than just one, +1 on @JoelSpeed's suggestion |
/ok-to-test |
/milestone v0.3.2 @dippynark might need to run |
/retitle 🏃 Add auth providers support to clusterctl |
/assign @fabriziopandini |
@dippynark do you have time to run |
LGTM pending squash & make modules as suggested by @vincepri |
/milestone v0.3.x |
0b1be88
to
e5b0ffd
Compare
@vincepri sorry for the slow response - have done |
Signed-off-by: Luke Addison <[email protected]>
e5b0ffd
to
7058fa6
Compare
/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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dippynark, vincepri 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 |
What this PR does / why we need it:
Running
clusterctl
against GKE clusters gives:This PR adds support for the GCP auth provider.
kubernetes/client-go#242 (comment)