Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 11.0.0a1 #931

Merged
merged 12 commits into from
Sep 11, 2019
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@
- API requests won't have `Content-Type` specified in HTTP headers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this not cause problem? we use json, or proto.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I interpreted the change wrong. The code generator just omitted the content type if the request doesn't have a body. I removed this note from the changelog since it's not user-facing.

- The `swagger_types` attribute in all models is renamed to `openapi_types`

**API Change:**
- Introduce `ExtensionsV1beta1RuntimeClassStrategyOptions` and `PolicyV1beta1RuntimeClassStrategyOptions`. Add RuntimeClass restrictions & defaulting to PodSecurityPolicy [kubernetes/kubernetes#73795](https://github.com/kubernetes/kubernetes/pull/73795)
- Introduce `V1WindowsSecurityContextOptions`. Add Windows specific options in Pod Security Context and Container Security Context [kubernetes/kubernetes#77147](https://github.com/kubernetes/kubernetes/pull/77147)
- Split `V1beta1Webhook` into `V1beta1MutatingWebhook` and `V1beta1ValidatingWebhook` [kubernetes/kubernetes#78491](https://github.com/kubernetes/kubernetes/pull/78491)
- Introduce parameter `allow_watch_bookmarks` in list options for requesting watch bookmarks from apiserver. The implementation in apiserver is hidden behind feature gate `WatchBookmark` (currently in Alpha stage) [kubernetes/kubernetes#74074](https://github.com/kubernetes/kubernetes/pull/74074)
- Add `V1DeleteOptions` parameters (`dry_run`, `grace_period_seconds`, `orphan_dependents`, `propagation_policy`) to delete collection APIs [kubernetes/kubernetes#77843](https://github.com/kubernetes/kubernetes/pull/77843)
- Add ListMeta.RemainingItemCount. When responding a LIST request, if the server has more data available, and if the request does not contain label selectors or field selectors, the server sets the ListOptions.RemainingItemCount to the number of remaining objects [kubernetes/kubernetes#75993](https://github.com/kubernetes/kubernetes/pull/75993)
- Add `controller_expand_secret_ref` in `V1SecretReference` to store CSI volume expansion secrets [kubernetes/kubernetes#77516](https://github.com/kubernetes/kubernetes/pull/77516)
- Introduce `preemption_policy` field to V1PriorityClass [kubernetes/kubernetes#74614](https://github.com/kubernetes/kubernetes/pull/74614)
- Add `port` configuration to service reference in Admission webhook configuration, AuditSink webhook configuration, CRD Conversion webhook configuration and kube-aggregator [kubernetes/kubernetes#74855](https://github.com/kubernetes/kubernetes/pull/74855)
- Introduce `inline_volume_spec` to `V1PersistentVolumeSpec` [kubernetes/kubernetes#77703](https://github.com/kubernetes/kubernetes/pull/77703)
- Add fields `x_kubernetes_embedded_resource`, `x_kubernetes_int_or_string`, `x_kubernetes_preserve_unknown_fields` to V1beta1JSONSchemaProps [kubernetes/kubernetes#77207](https://github.com/kubernetes/kubernetes/pull/77207)

# v10.0.0
**Bug Fix:**
- Fix base64 padding for kube config [kubernetes-client/python-base#79](https://github.com/kubernetes-client/python-base/pull/79)
Expand Down
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,20 @@ supported versions of Kubernetes clusters.

#### Compatibility matrix

| | Kubernetes 1.5 | Kubernetes 1.6 | Kubernetes 1.7 | Kubernetes 1.8 | Kubernetes 1.9 | Kubernetes 1.10 | Kubernetes 1.11 | Kubernetes 1.12 | Kubernetes 1.13 | Kubernetes 1.14 |
|--------------------|----------------|----------------|----------------|----------------|----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
| client-python 1.0 | ✓ | - | - |- |- |- |- |- |- |- |
| client-python 2.0 | + | ✓ | - |- |- |- |- |- |- |- |
| client-python 3.0 | + | + | ✓ |- |- |- |- |- |- |- |
| client-python 4.0 | + | + | + |✓ |- |- |- |- |- |- |
| client-python 5.0 | + | + | + |+ |✓ |- |- |- |- |- |
| client-python 6.0 | + | + | + |+ |+ |✓ |- |- |- |- |
| client-python 7.0 | + | + | + |+ |+ |+ |✓ |- |- |- |
| client-python 8.0 | + | + | + |+ |+ |+ |+ |✓ |- |- |
| client-python 9.0 | + | + | + |+ |+ |+ |+ |+ |✓ |- |
| client-python 10.0 | + | + | + |+ |+ |+ |+ |+ |+ |✓ |
| client-python HEAD | + | + | + |+ |+ |+ |+ |+ |+ |✓ |
| | Kubernetes 1.5 | Kubernetes 1.6 | Kubernetes 1.7 | Kubernetes 1.8 | Kubernetes 1.9 | Kubernetes 1.10 | Kubernetes 1.11 | Kubernetes 1.12 | Kubernetes 1.13 | Kubernetes 1.14 | Kubernetes 1.15 |
|--------------------|----------------|----------------|----------------|----------------|----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
| client-python 1.0 | ✓ | - | - |- |- |- |- |- |- |- |- |
| client-python 2.0 | + | ✓ | - |- |- |- |- |- |- |- |- |
| client-python 3.0 | + | + | ✓ |- |- |- |- |- |- |- |- |
| client-python 4.0 | + | + | + |✓ |- |- |- |- |- |- |- |
| client-python 5.0 | + | + | + |+ |✓ |- |- |- |- |- |- |
| client-python 6.0 | + | + | + |+ |+ |✓ |- |- |- |- |- |
| client-python 7.0 | + | + | + |+ |+ |+ |✓ |- |- |- |- |
| client-python 8.0 | + | + | + |+ |+ |+ |+ |✓ |- |- |- |
| client-python 9.0 | + | + | + |+ |+ |+ |+ |+ |✓ |- |- |
| client-python 10.0 | + | + | + |+ |+ |+ |+ |+ |+ |✓ |- |
| client-python 11.0 | + | + | + |+ |+ |+ |+ |+ |+ |+ |✓ |
| client-python HEAD | + | + | + |+ |+ |+ |+ |+ |+ |+ |✓ |

Key:

Expand Down Expand Up @@ -130,6 +131,7 @@ between client-python versions.
| 9.0 | Kubernetes main repo, 1.13 branch | ✓ |
| 10.0 Alpha/Beta | Kubernetes main repo, 1.14 branch | ✗ |
| 10.0 | Kubernetes main repo, 1.14 branch | ✓ |
| 11.0 Alpha/Beta | Kubernetes main repo, 1.15 branch | ✓ |

Key:

Expand Down
4 changes: 2 additions & 2 deletions kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github

```sh
pip install git+https://github.com/kubernetes-kubernetes.client/python.git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so it was not working before? what caused this change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an old issue. Filed #952 to track the fix.

pip install git+https://github.com/kubernetes-client/python.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/kubernetes-kubernetes.client/python.git`)
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/kubernetes-client/python.git`)

Then import the package:
```python
Expand Down