kubernetes-client / kubernetes-client/python
kubelogin not found error while client reading kubeconfig file
- Dominant language
- Python
- Stars
- 7.7k
- Forks
- 3.5k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 18
Description
On using python client in azure function to do custom operation on k8s object in azure cluster and
Azure cluster config is configured to use kubelogin for auth via service principal.
"kubelogin" not found error thrown post using standard python client for doing custom operation.
Is there any fix for using python client using kubeconfig having kubelogin as auth mechanism via service principal ?
or there are separate apis for that ?
Kubernetes version (kubectl version): 1.26
OS (e.g., MacOS 10.13.6): linux
Python version (python --version): 3.10
Contributor guide
Research direction
Start with the standard Python client's kubeconfig loading path and reproduce the Azure Function case using a kubeconfig configured for kubelogin and a service principal. Investigate why the client reports that kubelogin is not found, then verify that a custom Kubernetes object operation succeeds without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, kubernetes, python
- Domain
- api, authentication, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100