python
python copied to clipboard
Official Python client library for kubernetes
**What is the feature and why do you need it**: Kubernetes 1.30.0 has been released. **Describe the solution you'd like to see**: Starting the 30.0 release train.
**What happened (please include outputs or screenshots)**: A python script watching the existence of a set of configmaps gets notified that a CM got deleted when this is not the...
When I use the examples in the document to execute, I report an error **The code is as follows:** from kubernetes import client, config config.load_kube_config(config_file='config/config_14b') apps_api = client.AppsV1Api() deployment =...
**What happened (please include outputs or screenshots)**: Cannot list endpoint slices using the kubernetes python library in a cluster where one of the endpoint slices contains a null list of...
When I was experimenting with the Python client, I found a configuration that I didn't know what to fill in as follows: configuration.api_key['authorization'] = 'YOUR_API_KEY'
/kind documentation #### What this PR does / why we need it: #### Which issue(s) this PR fixes: Fixes # **I noticed that the part 'host configuration' was mistakenly repeated,...
We are facing this issue in airflow and think it's due to python kubernetes-client. Earlier repo issue : https://github.com/kubernetes-client/python-base/issues/190 Airflow issue : https://github.com/apache/airflow/issues/39267 Error log : ``` [2024-04-26, 00:21:32 IST]...
/kind cleanup six was only needed to _also_ support Python2 with the same codebase. https://wiki.debian.org/Python3-six-removal I will continue if this first one succeeds. ``` grep 'six.iteritems(self.openapi_types)' -rl | while read...
**What is the feature and why do you need it**: We are using the method stream of object Watch https://github.com/kubernetes-client/python/blob/94e42113a1fe5c580917decacdde879eab7406b3/kubernetes/base/watch/watch.py#L129. Let say i use this method with v1.list_namespace with no...
#### What type of PR is this? /kind feature #### What this PR does / why we need it: PR adds a `utils.format_quantity`, which converts a decimal number into a...