Skip to content

Commit 6f00dab

Browse files
committed
initial commit based on official python client library
0 parents  commit 6f00dab

File tree

1,827 files changed

+473422
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,827 files changed

+473422
-0
lines changed

CHANGELOG.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# v6.0.0b1
2+
- Update to Kubernetes 1.10 cluster
3+
- Config loader now raises exception on duplicated name in kubeconfig [kubernetes-client/python-base#47](https://github.com/kubernetes-client/python-base/pull/47)
4+
5+
**API change:**
6+
- CustomObjectsApi: Add PATCH to CustomObjectsApi [kubernetes-client/gen#53](https://github.com/kubernetes-client/gen/pull/53)
7+
- Promoting the apiregistration.k8s.io (aggregation) to GA (ApiregistrationV1Api) [kubernetes/kubernetes#58393](https://github.com/kubernetes/kubernetes/pull/58393)
8+
- CoreV1Api: remove /proxy legacy API (deprecated since kubernetes v1.2). Use the /proxy subresources on objects that support HTTP proxying [kubernetes/kubernetes#59884](https://github.com/kubernetes/kubernetes/pull/59884)
9+
- The `PodSecurityPolicy` API has been moved to the `policy/v1beta1` API group. The `PodSecurityPolicy` API in the `extensions/v1beta1` API group is deprecated and will be removed in a future release. Authorizations for using pod security policy resources should change to reference the `policy` API group after upgrading to 1.11 [kubernetes/kubernetes#54933](https://github.com/kubernetes/kubernetes/pull/54933)
10+
- StorageV1beta1Api: Introduce new `VolumeAttachment` API Object [kubernetes/kubernetes#54463](https://github.com/kubernetes/kubernetes/pull/54463)
11+
- V1FlexPersistentVolumeSource: PersistentVolume flexVolume sources can now reference secrets in a namespace other than the PersistentVolumeClaim's namespace [kubernetes/kubernetes#56460](https://github.com/kubernetes/kubernetes/pull/56460)
12+
- ACTION REQUIRED: VolumeScheduling and LocalPersistentVolume features are beta and enabled by default. The PersistentVolume NodeAffinity alpha annotation is deprecated and will be removed in a future release [kubernetes/kubernetes#59391](https://github.com/kubernetes/kubernetes/pull/59391)
13+
- Allows HorizontalPodAutoscaler to use global metrics not associated with any Kubernetes object (for example metrics from a hoster service running outside of Kubernetes cluster) [kubernetes/kubernetes#60096](https://github.com/kubernetes/kubernetes/pull/60096)
14+
- v1.Pod now has a field to configure whether a single process namespace should be shared between all containers in a pod. This feature is in alpha preview. [kubernetes/kubernetes#58716](https://github.com/kubernetes/kubernetes/pull/58716)
15+
- delete_namespaced_service() now takes an required body (delete option) parameter. Refactor service storage to remove registry wrapper [kubernetes/kubernetes#59510](https://github.com/kubernetes/kubernetes/pull/59510)
16+
17+
**Documentation update:**
18+
- Never let cluster-scoped resources skip webhooks [kubernetes/kubernetes#58185](https://github.com/kubernetes/kubernetes/pull/58185)
19+
- Clarify that ListOptions.Timeout is not conditional on inactivity [kubernetes/kubernetes#58562](https://github.com/kubernetes/kubernetes/pull/58562)
20+
- Indicate endpoint subsets are an optional field [kubernetes/kubernetes#59434](https://github.com/kubernetes/kubernetes/pull/59434)
21+
22+
# v5.0.0
23+
- No changes. The same as `v5.0.0b1`.
24+
25+
# v5.0.0b1
26+
- Update to Kubernetes 1.9 cluster
27+
- Label selector for pods is now required and must match the pod template's labels for v1beta2 StatefulSetSpec, ReplicaSetSpec, DaemonSetSpec and DeploymentSpec kubernetes/kubernetes#55357
28+
- The dynamic admission webhook is split into two kinds, mutating and validating. The kinds have changed completely and old code must be ported to admissionregistration.k8s.io/v1beta1 - MutatingWebhookConfiguration and ValidatingWebhookConfiguration kubernetes/kubernetes#55282
29+
- DaemonSet, Deployment, ReplicaSet, and StatefulSet have been promoted to GA and are available in the apps/v1 group version kubernetes/kubernetes#53679
30+
- Introduce new storage.k8s.io/v1alpha1 VolumeAttachment object kubernetes/kubernetes#54463
31+
- Introduce core/v1 RBDPersistentVolumeSource kubernetes/kubernetes#54302
32+
- StatefulSet status now has support for conditions kubernetes/kubernetes#55268
33+
- DaemonSet status now has support for conditions kubernetes/kubernetes#55272
34+
35+
# v4.0.0
36+
- api change V1PersistentVolumeSpec to V1ScaleIOPersistentVolumeSource #397.
37+
38+
# v4.0.0b1
39+
- Make sure PyPI source distribution is complete with all files from the root directory
40+
41+
# v4.0.0a1
42+
- Update to Kubernetes 1.8 cluster
43+
- IntOrString is now object thus it can be int or string. #18 #359
44+
- Adding stream package to support calls like exec. The old way of calling them is deprecated. See [Troubleshooting](README.md#why-execattach-calls-doesnt-work)).
45+
- config.http_proxy_url is deprecated. use configuration.proxy instead.
46+
- Configuration is not a singleton object anymore. Please use Configuraion.set_default to change default configuration.
47+
- Configuration class does not support `ws_streaming_protocol` anymore. In ApiClient.set_default_header set `sec-websocket-protocol` to the preferred websocket protocol.
48+
49+
# v3.0.0
50+
- Fix Operation names for subresources kubernetes/kubernetes#49357
51+
52+
# v3.0.0b1
53+
- Add proper GCP config loader and refresher kubernetes-client/python-base#22
54+
- Add ws_streaming_protocol and use v4 by default kubernetes-client/python-base#20
55+
- Respect the KUBECONFIG environment variable if set kubernetes-client/python-base#19
56+
- Allow setting maxsize for PoolManager kubernetes-client/python-base#18
57+
- Restricting the websocket-client to <=0.40 #299
58+
59+
# v3.0.0a1
60+
- Update client to kubernetes 1.7
61+
- Support ThirdPartyResources (TPR) and CustomResourceDefinitions (CRD). Note that TPR is deprecated in kubernetes #251 #201
62+
- Better dependency management #136
63+
- Add support for python3.6 #244
64+
65+
# v1.0.2
66+
- Bugfix: support RFC6902 'json-patch' operations #187
67+
68+
# v2.0.0
69+
- No changes. The same as `v2.0.0b1`.
70+
71+
# v2.0.0b2
72+
- Bugfix: support RFC6902 'json-patch' operations #187
73+
74+
# v1.0.1
75+
- Bugfix: urllib3 1.21 fails tests, Excluding version 1.21 from dependencies #197
76+
77+
# v2.0.0b1
78+
- Add support for attach API calls #180
79+
- Bugfix: token file should not be decoded #182
80+
- Inline primitive models (e.g. v1.Time and resource.Quantity) #179
81+
- Bugfix: urllib3 1.21 fails tests, Excluding version 1.21 from dependencies #197
82+
83+
# v2.0.0a1
84+
- Update to kubernetes 1.6 spec #169
85+
86+
# v1.0.0
87+
- Bugfix: blocking exec call should remove channel metadata #140
88+
- Add close method to websocket api of interactive exec #145
89+
90+
# v1.0.0b3
91+
- Bugfix: Missing websocket-client dependency #131
92+
93+
# v1.0.0b2
94+
- Support exec calls in both interactive and non-interactive mode #58
95+
96+
# v1.0.0b1
97+
98+
- Support insecure-skip-tls-verify config flag #99
99+
- Added example for using yaml files as models #63
100+
- Added end to end tests #41, #94
101+
- Bugfix: Fix ValueError in list_namespaced_config_map #104
102+
- Bugfix: Export missing models #101
103+
- Bugfix: Patch operations #93
104+
105+
# v1.0.0a5
106+
107+
- Bugfix: Missing fields in some models #85, kubernetes/kubernetes#39465
108+
109+
# v1.0.0a4
110+
111+
- Bugfix: Fixed broken config loader #77
112+
113+
# v1.0.0a3
114+
115+
- Add context switch to kube config loader #46
116+
- Add default kube config location #64
117+
- Add suport for accessing multiple clusters #7
118+
- Bugfix: Python client does not resolve relative paths in kubeconfig #68
119+
- Bugfix: `read_namespaced_pod_log` get None response #57
120+
- Improved test coverage #54
121+
- Improved client generator #49
122+
123+
# v1.0.0-alpha2
124+
125+
- auto-generated client from K8s OpenAPI spec
126+
- kube-config support
127+
- in-cluster config support: Run scripts inside kubernetes cluster
128+
- watch support
129+
130+
# v1.0.0-alpha1
131+
Skipped because of a failed initial release.
132+

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing guidelines
2+
3+
## How to become a contributor and submit your own code
4+
5+
### Contributor License Agreements
6+
7+
We'd love to accept your patches! Before we can take them, we have to jump a couple of legal hurdles.
8+
9+
Please fill out either the individual or corporate Contributor License Agreement (CLA).
10+
11+
* If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an [individual CLA](https://identity.linuxfoundation.org/node/285/node/285/individual-signup).
12+
* If you work for a company that wants to allow you to contribute your work, then you'll need to sign a [corporate CLA](https://identity.linuxfoundation.org/node/285/organization-signup).
13+
14+
Follow either of the two links above to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll be able to accept your pull requests.
15+
16+
### Contributing A Patch
17+
18+
1. Submit an issue describing your proposed change to the repo in question.
19+
1. The [repo owners](OWNERS) will respond to your issue promptly.
20+
1. If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above).
21+
1. Fork the desired repo, develop and test your code changes.
22+
1. Submit a pull request.
23+
24+
### Adding dependencies
25+
26+
If your patch depends on new packages, add those packages to [requirements.txt](requirements.txt) and [setup.py](setup.py).

0 commit comments

Comments
 (0)