python
python copied to clipboard
Official Python client library for kubernetes
**What is the feature and why do you need it**: When loading the kube config, if any ConfigException is thrown it's caught and simply printed as an error message. This...
**What happened (please include outputs or screenshots)**: A pod is created from the manifest below, but the `volume` meant to target a persistent_volume_claim is instead created as EmptyDir, and container...
**What is the feature and why do you need it**: There is [`parse_quantity`](https://github.com/kubernetes-client/python/blob/master/kubernetes/utils/quantity.py) to convert a canonical K8s quantity into a `Decimal` value. However, an opposite function, like `format_quantity` is...
Title(标题): Support for Ephemeral Containers in Running Pods via Python Kubernetes Client 通过Python Kubernetes客户端在运行中的Pods里支持临时容器 Background(背景): In the current Kubernetes Python client library, there seems to be no straightforward method to...
Fixed a bug that allows an empty string for a node name when calling the `delete_node`/`delete_node_with_http_info` method. #### What type of PR is this? /kind bug #### What this PR...
**What happened (please include outputs or screenshots)**: **The python client library allows deletion of all nodes in a cluster when passing in an empty string. THIS IS BAD!!** As part...
**What happened (please include outputs or screenshots)**: configuraa = client.Configuration() configuraa.retries = 1 client.Configuration.set_default(configuraa) Here, I am trying to override retries value from 3 to 1. This is from the...
#### What type of PR is this? /kind bug /kind api-change #### What this PR does / why we need it: Gracefully ignore named-arguments to `load_incluster_config` which have a value...
similar to #2038 **What happened (please include outputs or screenshots)**: passing `context` as an argument to `load_config` -- even if that argument is `None` does not work because `load_incluster_config` does...
`client.CoreV1Api.read_namespaced_pod(pod_name, pod_namespace)` returns incomplete data for several minutes after pod is deployed if it is queried as soon as pod is deployed. A bit more detail ... I am deploying...