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

Fix kubernetes client patch for RBAC #504

Closed
wants to merge 1 commit into from
Closed

Conversation

andyhd
Copy link
Contributor

@andyhd andyhd commented Jan 25, 2019

What

  • kubernetes python client has changed and the patch no longer applies, so I updated it
  • I haven't checked whether this patch is still necessary

@andyhd andyhd requested review from xoen and r4vi January 25, 2019 17:34
if ('name' not in provider
or 'config' not in provider
or provider['name'] != 'oidc'):
def load_token(self, provider):
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that provider was taken out from the self._user['auth-provider'] before but now it's a parameter of load_token() - I can't see the change to the client code calling this tho, what am I missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

load_token is a monkey patch for KubeConfigLoad._load_oid_token in the Python Kubernetes client library. They have a fix for the issue in a PR, but it has been waiting to be merged for months. Hopefully they will merge it soon and we can remove this patch.
In the meantime, they changed the signature of _load_oid_token to take the provider dict, so this change is to keep up.

@andyhd
Copy link
Contributor Author

andyhd commented Jan 29, 2019

Proper fix in another PR

@andyhd andyhd closed this Jan 29, 2019
@andyhd andyhd deleted the rbac-patch-fix branch June 19, 2019 16:57
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