Hi,
I'm facing a crash when trying to get a deployment, have a more detailed info about the problem:
If your ~/.kube/config file does not have the fields client-certificate-data and client-key-data under user, the program crash everytime we try to call the method request in K8sObject.py since our config will not have cert_data field.
Hi, I'm facing a crash when trying to get a deployment, have a more detailed info about the problem:
If your ~/.kube/config file does not have the fields client-certificate-data and client-key-data under user, the program crash everytime we try to call the method request in K8sObject.py since our config will not have cert_data field.
Steps to reproduce: cfg_default = kubernetes_py.K8sConfig() deployment = kubernetes_py.K8sDeployment(config=cfg_default, name='test') deployment.get()
Proposed fix: In K8sConfig.py add the following line in K8sConfig class constructor:
Thanks.