python
python copied to clipboard
Official Python client library for kubernetes
**What happened (please include outputs or screenshots)**: from kubernetes import client, config config.load_kube_config('token//xxxx.conf') k8s_api = client.BatchV1beta1Api() AttributeError: module 'kubernetes.client' has no attribute 'BatchV1beta1Api' k8s version = 1.20 k8s sdk version...
**What happened (  )**: **Anything else we need to know?**:I have two versions of k8s here, one is version 1.24 and the other is version 1.26. When I call...
**What is the feature and why do you need it**: `google-auth` is a required dependency which seems to only be used for kubernetes running on GCP. **Describe the solution you'd...
#### What type of PR is this? /kind documentation #### What this PR does / why we need it: #### Which issue(s) this PR fixes: Fixes # #### Special notes...
**What happened (please include outputs or screenshots)**: For unit testing, I want to change the kubeconfig file at runtime and after the import of the config module. As my tests...
I'm new around here and I was exploring the configuration flow/data structures and I ran into the realization that when I have the following set of config files: ``` KUBECONFIG=~/.kube/config-1:~/.kube/config-2:~/.kube/config-3...
**What happened (please include outputs or screenshots)**: Sometimes the watch stream seems to be missing job completion events. This is not easy to reproduce as 2 executions of the same...
/kind feature Enhances the app as I have added Kubernetes packages. #### Does this PR introduce a user-facing change? NA
**What happened (please include outputs or screenshots)**: If I try to read the logs of a pod with the following: ``` from kubernetes import config, client config.load_incluster_config() k8s = client.CoreV1Api()...
#### What type of PR is this? /kind bug #### What this PR does / why we need it: The `test_load_kube_config_from_dict_with_temp_file_path` test calls `_cleanup_temp_files` without invoking it `_cleanup_temp_files()`. This PR...