python
python copied to clipboard
Official Python client library for kubernetes
Minimal example for ControllerRevision (requires an active kubernetes cluster with working kubeconfig): ```python from kubernetes import client, config config.load_kube_config() apps_v1beta1_api = client.AppsV1beta1Api() controller_revisions = apps_v1beta1_api.list_controller_revision_for_all_namespaces() ``` Issue seems to be...
according to new [kubernetes client guidelines](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/csi-new-client-library-procedure.md#client-capabilities) python client is beta support and has silver capabilities. We are almost there to have gold capabilities and stable support. missing parts are: Gold:...
This is a feature request. Most of the Kubernetes objects have a set of fields in common: * kind * apiVersion * metadata * spec Currently the various model classes...
**What happened (please include outputs or screenshots)**: Install from [release zip](https://github.com/kubernetes-client/python/archive/v11.0.0b2.zip) fails with message "error: package directory 'kubernetes/config' does not exist". Looking at the exploded zip the `kubernetes/config` link is...
Release branches in client-python are following a release branch in kubernetes main repo. If there is a patch for main repo's branch, we should figure out a way to at...
release process explained here: https://github.com/kubernetes-incubator/client-python/blob/master/devel/release.md only remaining task is before making fully automated process is to pass `~/.pypirc` values in command line.
#### What type of PR is this? /kind feature #### What this PR does / why we need it: Allows `utils.create_from_yaml` functions to optionally use server side apply. This is...
When I set assert_hostname of client configuration as true, ``` configuration = client.Configuration() configuration.assert_hostname = True ``` I got the following error ``` Traceback (most recent call last): File "/usr/src/app/my_portal/common/k8sapi.py",...
**What is the feature and why do you need it**: Currently `utils.create_from_yaml` will only create resources. If the resource already exists then it throws an error. **Describe the solution you'd...
**What happened (please include outputs or screenshots)**: In documentation, the example given for api create_namespaced_service_account is not working due to: body = kubernetes.client.V1ServiceAccount() Traceback (most recent call last): File "t.py",...