Solution for Incompatibility between python client and K8s v1.16

10/1/2019

We are using the k8s python client in our components and it was working properly but after trying to install our components on a K8s cluster which is running k8s 1.16 the client failed.

Based on the compatibility matrix of python client it supports just up to K8s 1.14 and there were some big changes in K8s API in v1.16. For example now read_namespaced_stateful_set_scale returns 'NoneType' object has no attribute 'status'.

My question is what is a workaround for this without waiting for the new client?

-- AVarf
kubernetes
kubernetes-python-client
python
python-3.x

0 Answers