-
Notifications
You must be signed in to change notification settings - Fork 3.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
Port exec-based client auth provider to Python client #514
Comments
Link to the credential plugin feature: https://kubernetes.io/docs/admin/authentication#client-go-credential-plugins The feature is in alpha state which means the API may change and support may be dropped in future. Python client auth is happening in kubeconfig loader class in python base repo: https://github.com/kubernetes-client/python-base/tree/master/config. cc @Lawouach |
With AWS EKS going GA, this seems to be a pretty important feature. @dbenhur any chance you guys are already working on this? It's currently blocking us from moving to EKS. |
Hi, Can the client communicate with EKS clusters at this point of time? |
Subscribe and hope , that this feature will be implemented asap) ill try to investigate it by myself and do my best in help-offer |
Hi, I am looking for this feature as well. Is anyone working on it? I'm willing to do work on it if not. Phil |
Hi I've implemented it here: kubernetes-client/python-base#75. |
experiencing the same thing
The result is bad request 400. There is only one context on the machine. |
A release that includes #619 should fix this |
Any plans for a release that includes this fix? |
@jw-maynard We usually align the python client release with main kubernetes release. The python client v8 release procedure will start after kubernetes 1.12.0 is cut. |
@roycaihw Cool, this is currently a blocker to getting our tooling working with EKS. I was hoping to you guys could do something like a 7.0.1 release that adds this feature since it's v1beta1 in 1.11. If not, do you know the rough time frame for 1.12 and then getting a release of the client from that? Thanks! |
@roycaihw I'd be interested in learning how I can get notified about releases of this client! @jw-maynard I don't know if this is helpful, but we've written a python package that uses EKS, and our current solution is to have a wrapper class that calls subprocess.Popen(
pargs=['kubectl', ...],
env=dict(KUBECONFIG=<config_file_path>, PATH=<path_to_kubectl>),
...
) It's not the prettiest, but it works for now. We're planning to swap out the subprocess code for the python client once EKS is supported 😄 |
@jw-maynard Currently the planned date for 1.12.0 cut is Sep. 27th. Ideally I'd like to do an 8.0.0a1 release on Sep. 28th. @alexandraj777 We send announcements about python client releases to kubernetes-dev mailing list. You could join the google group via https://groups.google.com/forum/#!forum/kubernetes-dev |
@roycaihw Awesome! I think we can just wait for that. @alexandraj777 Thanks! Trying to avoid wrapping kubectl if we can but if push comes to shove this will definitely help. |
@roycaihw Hey, just wondering if you guys were hoping to get an 8.0.0a1 build out sometime this week? Thanks! |
Yes, we've generated the client and collected release notes last Friday #631. Hopefully we will push the release to pypi today :) |
Hi folks, the 8.0.0a1 release has been uploaded to pypi https://pypi.org/project/kubernetes/8.0.0a1/. I will create a github release page and send a notification to kubernetes-dev mailing list shortly. Thanks for your patience, and please give it a try and file any issue to let us know :) Closing this issue as the feature has been released in 8.0.0a1... |
You folks rock! |
Hi I'm using the 8.0.0a1 issue and I'm doing
and this seems to pass almost always but every now and then I get an error from the python client
which seems to be getting triggered here in the exec_provider in python-base. When I try to use the same kubeconfig file with I'm using EKS with Update: Opened an issue #678. |
With 1.10, this exec-based client auth credential provider alpha feature was introduced kubernetes/features#541 for client-go. Exec-based auth plugin should be supported by this Python client in addition to client-go. Umbrella issue: kubernetes#62185
/kind feature
/sig api-machinery
The text was updated successfully, but these errors were encountered: