Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02ef5be

Browse files
authored
Merge pull request kubernetes-client#995 from roycaihw/11.0.0-snapshot
Generate 11.0.0-snapshot client
2 parents 3739db0 + b316493 commit 02ef5be

File tree

1,801 files changed

+116406
-110084
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,801 files changed

+116406
-110084
lines changed

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
# v11.0.0b1
2+
**Bug Fix:**
3+
- Fix a bug in kubeconfig loader where NoneType gets iterated [kubernetes-client/python-base#158](https://github.com/kubernetes-client/python-base/pull/158)
4+
- Fix a bug in kubeconfig loader that False value gets treated as absence [kubernetes-client/python-base#161](https://github.com/kubernetes-client/python-base/pull/161)
5+
- Fix a bug in kubeconfig loader where merging valid configs fails if fields are missing [kubernetes-client/python-base#163](https://github.com/kubernetes-client/python-base/pull/163)
6+
- Fix azure refresh token apiserver id [kubernetes-client/python-base#170](https://github.com/kubernetes-client/python-base/pull/170)
7+
- Support chunked listing to custom object API [kubernetes-client/gen#130](https://github.com/kubernetes-client/gen/pull/130)
8+
9+
**New Feature:**
10+
- Add returncode method to WSClient [kubernetes-client/python-base#160](https://github.com/kubernetes-client/python-base/pull/160)
11+
- Add proxy support to WSClient [kubernetes-client/python-base#157](https://github.com/kubernetes-client/python-base/pull/157)
12+
- Add util function to parse canonical quantities [kubernetes-client/python#855](https://github.com/kubernetes-client/python/pull/855)
13+
14+
# v11.0.0a1
15+
**New Feature:**
16+
- Add dynamic client [kubernetes-client/python-base#56](https://github.com/kubernetes-client/python-base/pull/56)
17+
- `create_from_yaml` supports creation from dict and namespace option [kubernetes-client/python#795](https://github.com/kubernetes-client/python/pull/795)
18+
19+
**Breaking Change:**
20+
- 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)
21+
- `kubernetes.client.apis` package is renamed to `kubernetes.client.api`
22+
- `kubernetes` package code now uses absolute import instead of relative import
23+
- The `swagger_types` attribute in all models is renamed to `openapi_types`
24+
- Python3.4 is no longer supported [kubernetes-client/python#807](https://github.com/kubernetes-client/python/pull/807)
25+
26+
**API Change:**
27+
- Introduce `ExtensionsV1beta1RuntimeClassStrategyOptions` and `PolicyV1beta1RuntimeClassStrategyOptions`. Add RuntimeClass restrictions & defaulting to PodSecurityPolicy [kubernetes/kubernetes#73795](https://github.com/kubernetes/kubernetes/pull/73795)
28+
- Introduce `V1WindowsSecurityContextOptions`. Add Windows specific options in Pod Security Context and Container Security Context [kubernetes/kubernetes#77147](https://github.com/kubernetes/kubernetes/pull/77147)
29+
- Split `V1beta1Webhook` into `V1beta1MutatingWebhook` and `V1beta1ValidatingWebhook` [kubernetes/kubernetes#78491](https://github.com/kubernetes/kubernetes/pull/78491)
30+
- 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)
31+
- 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)
32+
- 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)
33+
- Add `controller_expand_secret_ref` in `V1SecretReference` to store CSI volume expansion secrets [kubernetes/kubernetes#77516](https://github.com/kubernetes/kubernetes/pull/77516)
34+
- Introduce `preemption_policy` field to V1PriorityClass [kubernetes/kubernetes#74614](https://github.com/kubernetes/kubernetes/pull/74614)
35+
- 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)
36+
- Introduce `inline_volume_spec` to `V1PersistentVolumeSpec` [kubernetes/kubernetes#77703](https://github.com/kubernetes/kubernetes/pull/77703)
37+
- 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)
38+
39+
**Bug Fix:**
40+
- Update `_load_azure_token` to handle str and int [kubernetes-client/python-base#141](https://github.com/kubernetes-client/python-base/pull/141)
41+
- Correct regex to properly parse rfc3339 microseconds [kubernetes-client/python-base#150](https://github.com/kubernetes-client/python-base/pull/150)
42+
143
# v10.0.0
244
**Bug Fix:**
345
- Fix base64 padding for kube config [kubernetes-client/python-base#79](https://github.com/kubernetes-client/python-base/pull/79)

examples/pod_exec.py

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

2121
from kubernetes import config
2222
from kubernetes.client import Configuration
23-
from kubernetes.client.apis import core_v1_api
23+
from kubernetes.client.api import core_v1_api
2424
from kubernetes.client.rest import ApiException
2525
from kubernetes.stream import stream
2626

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+
c7fcb583e32ecfaf5dc5b62974dac24d4a849bea6a6ebd917b440411a29193c7

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.6
7+
- Package version: 11.0.0-snapshot
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.0-snapshot"
1818

1919
import kubernetes.client
2020
import kubernetes.config

kubernetes/base

Submodule base updated 1 file

0 commit comments

Comments
 (0)