Skip to content

Commit dd5b7a2

Browse files
authored
Merge pull request #931 from roycaihw/release-10.0.0a1
Release 11.0.0a1
2 parents 2e3b50e + e6fd7de commit dd5b7a2

File tree

1,806 files changed

+116514
-110148
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,806 files changed

+116514
-110148
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
# v11.0.0a1
2+
**New Feature:**
3+
- Add dynamic client [kubernetes-client/python-base#56](https://github.com/kubernetes-client/python-base/pull/56)
4+
- `create_from_yaml` supports creation from dict and namespace option [kubernetes-client/python#795](https://github.com/kubernetes-client/python/pull/795)
5+
6+
**Breaking Change:**
7+
- The Python client will be generated by openapi-generator, with the following breaking changes [kubernetes-client/gen#97](https://github.com/kubernetes-client/gen/pull/97)
8+
- `kubernetes.client.apis` package is renamed to `kubernetes.client.api`
9+
- `kubernetes` package code now uses absolute import instead of relative import
10+
- The `swagger_types` attribute in all models is renamed to `openapi_types`
11+
- Python3.4 is no longer supported [kubernetes-client/python#807](https://github.com/kubernetes-client/python/pull/807)
12+
13+
**API Change:**
14+
- Introduce `ExtensionsV1beta1RuntimeClassStrategyOptions` and `PolicyV1beta1RuntimeClassStrategyOptions`. Add RuntimeClass restrictions & defaulting to PodSecurityPolicy [kubernetes/kubernetes#73795](https://github.com/kubernetes/kubernetes/pull/73795)
15+
- Introduce `V1WindowsSecurityContextOptions`. Add Windows specific options in Pod Security Context and Container Security Context [kubernetes/kubernetes#77147](https://github.com/kubernetes/kubernetes/pull/77147)
16+
- Split `V1beta1Webhook` into `V1beta1MutatingWebhook` and `V1beta1ValidatingWebhook` [kubernetes/kubernetes#78491](https://github.com/kubernetes/kubernetes/pull/78491)
17+
- 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)
18+
- 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)
19+
- 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)
20+
- Add `controller_expand_secret_ref` in `V1SecretReference` to store CSI volume expansion secrets [kubernetes/kubernetes#77516](https://github.com/kubernetes/kubernetes/pull/77516)
21+
- Introduce `preemption_policy` field to V1PriorityClass [kubernetes/kubernetes#74614](https://github.com/kubernetes/kubernetes/pull/74614)
22+
- 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)
23+
- Introduce `inline_volume_spec` to `V1PersistentVolumeSpec` [kubernetes/kubernetes#77703](https://github.com/kubernetes/kubernetes/pull/77703)
24+
- 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)
25+
26+
**Bug Fix:**
27+
- Update `_load_azure_token` to handle str and int [kubernetes-client/python-base#141](https://github.com/kubernetes-client/python-base/pull/141)
28+
- Correct regex to properly parse rfc3339 microseconds [kubernetes-client/python-base#150](https://github.com/kubernetes-client/python-base/pull/150)
29+
30+
# v10.0.1
31+
**Bug Fix:**
32+
- Fix content type regression in custom object patch API [kubernetes-client/python#866](https://github.com/kubernetes-client/python/issues/866)
33+
34+
**Security Fix:**
35+
- Bump urllib3 version to pick up security fix for CVE-2019-11324 [kubernetes-client/python#897](https://github.com/kubernetes-client/python/pull/897)
36+
137
# v10.0.0
238
**Bug Fix:**
339
- Fix base64 padding for kube config [kubernetes-client/python-base#79](https://github.com/kubernetes-client/python-base/pull/79)

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,20 @@ supported versions of Kubernetes clusters.
8282

8383
#### Compatibility matrix
8484

85-
| | 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 |
86-
|--------------------|----------------|----------------|----------------|----------------|----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
87-
| client-python 1.0 || - | - |- |- |- |- |- |- |- |
88-
| client-python 2.0 | + || - |- |- |- |- |- |- |- |
89-
| client-python 3.0 | + | + ||- |- |- |- |- |- |- |
90-
| client-python 4.0 | + | + | + ||- |- |- |- |- |- |
91-
| client-python 5.0 | + | + | + |+ ||- |- |- |- |- |
92-
| client-python 6.0 | + | + | + |+ |+ ||- |- |- |- |
93-
| client-python 7.0 | + | + | + |+ |+ |+ ||- |- |- |
94-
| client-python 8.0 | + | + | + |+ |+ |+ |+ ||- |- |
95-
| client-python 9.0 | + | + | + |+ |+ |+ |+ |+ ||- |
96-
| client-python 10.0 | + | + | + |+ |+ |+ |+ |+ |+ ||
97-
| client-python HEAD | + | + | + |+ |+ |+ |+ |+ |+ ||
85+
| | 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 |
86+
|--------------------|----------------|----------------|----------------|----------------|----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
87+
| client-python 1.0 || - | - |- |- |- |- |- |- |- |- |
88+
| client-python 2.0 | + || - |- |- |- |- |- |- |- |- |
89+
| client-python 3.0 | + | + ||- |- |- |- |- |- |- |- |
90+
| client-python 4.0 | + | + | + ||- |- |- |- |- |- |- |
91+
| client-python 5.0 | + | + | + |+ ||- |- |- |- |- |- |
92+
| client-python 6.0 | + | + | + |+ |+ ||- |- |- |- |- |
93+
| client-python 7.0 | + | + | + |+ |+ |+ ||- |- |- |- |
94+
| client-python 8.0 | + | + | + |+ |+ |+ |+ ||- |- |- |
95+
| client-python 9.0 | + | + | + |+ |+ |+ |+ |+ ||- |- |
96+
| client-python 10.0 | + | + | + |+ |+ |+ |+ |+ |+ ||- |
97+
| client-python 11.0 | + | + | + |+ |+ |+ |+ |+ |+ |+ ||
98+
| client-python HEAD | + | + | + |+ |+ |+ |+ |+ |+ |+ ||
9899

99100
Key:
100101

@@ -130,6 +131,7 @@ between client-python versions.
130131
| 9.0 | Kubernetes main repo, 1.13 branch ||
131132
| 10.0 Alpha/Beta | Kubernetes main repo, 1.14 branch ||
132133
| 10.0 | Kubernetes main repo, 1.14 branch ||
134+
| 11.0 Alpha/Beta | Kubernetes main repo, 1.15 branch ||
133135

134136
Key:
135137

examples/exec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from kubernetes import config
44
from kubernetes.client import Configuration
5-
from kubernetes.client.apis import core_v1_api
5+
from kubernetes.client.api import core_v1_api
66
from kubernetes.client.rest import ApiException
77
from kubernetes.stream import stream
88

kubernetes/.openapi-generator/COMMIT

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Requested Commit: v3.3.4
2+
Actual Commit: 2353d71d4b02be6dbabe25aac1a9e56eb3b812a2

kubernetes/.openapi-generator/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.3.4
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
13dd3a9ef095dcd47f3cc79490daec7bcfc20fbbb1090175445b386bee67b3ba

kubernetes/README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# kubernetes.client
2-
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
33

4-
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
4+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: v1.14.4
7-
- Package version: 10.0.0-snapshot
8-
- Build package: io.swagger.codegen.languages.PythonClientCodegen
6+
- API version: v1.15.3
7+
- Package version: 11.0.0a1
8+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
1111

@@ -52,11 +52,13 @@ from kubernetes.client.rest import ApiException
5252
from pprint import pprint
5353

5454
# Configure API key authorization: BearerToken
55-
kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY'
55+
configuration = kubernetes.client.Configuration()
56+
configuration.api_key['authorization'] = 'YOUR_API_KEY'
5657
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
57-
# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer'
58+
# configuration.api_key_prefix['authorization'] = 'Bearer'
59+
5860
# create an instance of the API class
59-
api_instance = kubernetes.client.AdmissionregistrationApi()
61+
api_instance = kubernetes.client.AdmissionregistrationApi(kubernetes.client.ApiClient(configuration))
6062

6163
try:
6264
api_response = api_instance.get_api_group()
@@ -68,7 +70,7 @@ except ApiException as e:
6870

6971
## Documentation for API Endpoints
7072

71-
All URIs are relative to *https://localhost*
73+
All URIs are relative to *http://localhost*
7274

7375
Class | Method | HTTP request | Description
7476
------------ | ------------- | ------------- | -------------
@@ -1019,6 +1021,7 @@ Class | Method | HTTP request | Description
10191021
- [ExtensionsV1beta1RollingUpdateDeployment](docs/ExtensionsV1beta1RollingUpdateDeployment.md)
10201022
- [ExtensionsV1beta1RunAsGroupStrategyOptions](docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md)
10211023
- [ExtensionsV1beta1RunAsUserStrategyOptions](docs/ExtensionsV1beta1RunAsUserStrategyOptions.md)
1024+
- [ExtensionsV1beta1RuntimeClassStrategyOptions](docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md)
10221025
- [ExtensionsV1beta1SELinuxStrategyOptions](docs/ExtensionsV1beta1SELinuxStrategyOptions.md)
10231026
- [ExtensionsV1beta1Scale](docs/ExtensionsV1beta1Scale.md)
10241027
- [ExtensionsV1beta1ScaleSpec](docs/ExtensionsV1beta1ScaleSpec.md)
@@ -1044,6 +1047,7 @@ Class | Method | HTTP request | Description
10441047
- [PolicyV1beta1PodSecurityPolicySpec](docs/PolicyV1beta1PodSecurityPolicySpec.md)
10451048
- [PolicyV1beta1RunAsGroupStrategyOptions](docs/PolicyV1beta1RunAsGroupStrategyOptions.md)
10461049
- [PolicyV1beta1RunAsUserStrategyOptions](docs/PolicyV1beta1RunAsUserStrategyOptions.md)
1050+
- [PolicyV1beta1RuntimeClassStrategyOptions](docs/PolicyV1beta1RuntimeClassStrategyOptions.md)
10471051
- [PolicyV1beta1SELinuxStrategyOptions](docs/PolicyV1beta1SELinuxStrategyOptions.md)
10481052
- [PolicyV1beta1SupplementalGroupsStrategyOptions](docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md)
10491053
- [RuntimeRawExtension](docs/RuntimeRawExtension.md)
@@ -1344,6 +1348,7 @@ Class | Method | HTTP request | Description
13441348
- [V1VsphereVirtualDiskVolumeSource](docs/V1VsphereVirtualDiskVolumeSource.md)
13451349
- [V1WatchEvent](docs/V1WatchEvent.md)
13461350
- [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md)
1351+
- [V1WindowsSecurityContextOptions](docs/V1WindowsSecurityContextOptions.md)
13471352
- [V1alpha1AggregationRule](docs/V1alpha1AggregationRule.md)
13481353
- [V1alpha1AuditSink](docs/V1alpha1AuditSink.md)
13491354
- [V1alpha1AuditSinkList](docs/V1alpha1AuditSinkList.md)
@@ -1436,6 +1441,7 @@ Class | Method | HTTP request | Description
14361441
- [V1beta1LeaseList](docs/V1beta1LeaseList.md)
14371442
- [V1beta1LeaseSpec](docs/V1beta1LeaseSpec.md)
14381443
- [V1beta1LocalSubjectAccessReview](docs/V1beta1LocalSubjectAccessReview.md)
1444+
- [V1beta1MutatingWebhook](docs/V1beta1MutatingWebhook.md)
14391445
- [V1beta1MutatingWebhookConfiguration](docs/V1beta1MutatingWebhookConfiguration.md)
14401446
- [V1beta1MutatingWebhookConfigurationList](docs/V1beta1MutatingWebhookConfigurationList.md)
14411447
- [V1beta1NetworkPolicy](docs/V1beta1NetworkPolicy.md)
@@ -1492,6 +1498,7 @@ Class | Method | HTTP request | Description
14921498
- [V1beta1TokenReviewSpec](docs/V1beta1TokenReviewSpec.md)
14931499
- [V1beta1TokenReviewStatus](docs/V1beta1TokenReviewStatus.md)
14941500
- [V1beta1UserInfo](docs/V1beta1UserInfo.md)
1501+
- [V1beta1ValidatingWebhook](docs/V1beta1ValidatingWebhook.md)
14951502
- [V1beta1ValidatingWebhookConfiguration](docs/V1beta1ValidatingWebhookConfiguration.md)
14961503
- [V1beta1ValidatingWebhookConfigurationList](docs/V1beta1ValidatingWebhookConfigurationList.md)
14971504
- [V1beta1VolumeAttachment](docs/V1beta1VolumeAttachment.md)
@@ -1500,7 +1507,6 @@ Class | Method | HTTP request | Description
15001507
- [V1beta1VolumeAttachmentSpec](docs/V1beta1VolumeAttachmentSpec.md)
15011508
- [V1beta1VolumeAttachmentStatus](docs/V1beta1VolumeAttachmentStatus.md)
15021509
- [V1beta1VolumeError](docs/V1beta1VolumeError.md)
1503-
- [V1beta1Webhook](docs/V1beta1Webhook.md)
15041510
- [V1beta2ControllerRevision](docs/V1beta2ControllerRevision.md)
15051511
- [V1beta2ControllerRevisionList](docs/V1beta2ControllerRevisionList.md)
15061512
- [V1beta2DaemonSet](docs/V1beta2DaemonSet.md)
@@ -1589,3 +1595,4 @@ Class | Method | HTTP request | Description
15891595

15901596

15911597

1598+

kubernetes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
__project__ = 'kubernetes'
1616
# The version is auto-updated. Please do not edit.
17-
__version__ = "10.0.0-snapshot"
17+
__version__ = "11.0.0a1"
1818

1919
import kubernetes.client
2020
import kubernetes.config

0 commit comments

Comments
 (0)