kubernetes-client/python

kubelogin not found error while client reading kubeconfig file

開放

#2,093 建立於 2023年7月27日

 (4 則留言) (1 個反應) (0 位負責人)Python (3,323 個分叉)batch import
help wantedkind/feature

倉庫指標

星標
 (6,225 顆星)
PR 合併指標
 (平均合併 10天 3小時) (30 天內合併 2 個 PR)

描述

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

貢獻者指南