Skip to content
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 kubectl client auth plugins #794

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

mgruener
Copy link

What issue type does this pull request address?
/kind enhancement

What is this pull request for? Which issues does it resolve?
Adds support for the different kubectl auth-provider plugins (for example OIDC). Without the plugins devspace fails with the following error during deployments (and other operations that require kubernetes access):

[fatal] Unable to create new kubectl client: new client: No Auth Provider found for name "XXX"

This PR fixes this problem, as suggested by kubernetes/kops#5513

Does this pull request has user-facing changes?
No

Does this pull request add new dependencies?
Yes, should be visible in the diff.

What else do we need to know?

The actual code change is only the added import in pkg/devspace/kubectl/client.go.

@FabianKramm FabianKramm self-requested a review November 11, 2019 15:54
Copy link
Collaborator

@FabianKramm FabianKramm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgruener thanks for opening this pull request! Looks good to me, however since you created this pull request we updated our kubernetes & helm version.

Could you merge the current devspace master into your branch and reexecute go mod vendor to be sure we have the correct dependencies needed for the 1.16.2 kubernetes version?

@mgruener
Copy link
Author

@FabianKramm done 🙂

Copy link
Collaborator

@FabianKramm FabianKramm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thank you @mgruener

@FabianKramm FabianKramm merged commit 47c4154 into devspace-sh:master Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants