Skip to content

Commit a05fe9e

Browse files
authored
Merge pull request kubernetes-client#2599 from yliaog/automated-release-of-36.0.1-upstream-release-36.0-1779814018
Automated release of 36.0.1 upstream release 36.0 1779814018
2 parents 97290c4 + 33827fa commit a05fe9e

1,831 files changed

Lines changed: 11273 additions & 13051 deletions

File tree

Some content is hidden

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

.github/workflows/e2e-master.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
- name: Install package
4444
run: python -m pip install -e .
4545
- name: Run End to End tests
46-
run: pytest -vvv -s kubernetes/e2e_test -s kubernetes_asyncio/e2e_test
46+
run: pytest -vvv -s kubernetes/e2e_test -s kubernetes/aio/e2e_test

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Upload coverage to Codecov
4747
if: "matrix.use_coverage"
48-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2
48+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354
4949
with:
5050
fail_ci_if_error: false
5151
verbose: true

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# v36.0.1
2+
3+
Kubernetes API Version: v1.36.1
4+
5+
### Bug or Regression
6+
- Fix `load_incluster_config()` and `load_kube_config()` (sync and async, with a static token) so requests carry an `Authorization` header on `kubernetes-client/python` v36+. Without this fix, in-cluster pods upgrading to v36 silently send unauthenticated requests and the apiserver rejects them as `system:anonymous`. (#2585, @Jmacek)
7+
8+
### Deprecation
9+
- Support new exec v5 websocket subprotocol (#2486, @aojea)
10+
111
# v36.0.0
212

313
Kubernetes API Version: v1.36.1
@@ -231,7 +241,10 @@ Kubernetes API Version: v1.36.0
231241
- The `endpoints` field in discovery.k8s.io/v1 EndpointSlice is now correctly defined as optional in the OpenAPI specification, matching the server's behavior. ([kubernetes/kubernetes#136111](https://github.com/kubernetes/kubernetes/pull/136111), [@aojea](https://github.com/aojea)) [SIG Network]
232242
- Update API comments to reflect that stable state of Dynamic Resource Allocation ([kubernetes/kubernetes#136441](https://github.com/kubernetes/kubernetes/pull/136441), [@kannon92](https://github.com/kannon92)) [SIG API Machinery]
233243

234-
# Basic asyncio support
244+
# Basic asyncio support (Experimental)
245+
246+
- Asyncio package is experimental currently, breaking changes may be introduced
247+
in future releases.
235248

236249
- Basic asyncio with kube config, and in_cluster_config is added.
237250

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ list all pods using asyncio:
4646

4747
```python
4848
import asyncio
49-
from kubernetes_asyncio import client, config
50-
from kubernetes_asyncio.client.api_client import ApiClient
49+
from kubernetes.aio import client, config
50+
from kubernetes.aio.client.api_client import ApiClient
5151

5252

5353
async def main():
@@ -134,7 +134,7 @@ supported versions of Kubernetes clusters.
134134
- [client 33.y.z](https://pypi.org/project/kubernetes/33.1.0/): Kubernetes 1.32 or below (+-), Kubernetes 1.33 (✓), Kubernetes 1.34 or above (+-)
135135
- [client 34.y.z](https://pypi.org/project/kubernetes/34.1.0/): Kubernetes 1.33 or below (+-), Kubernetes 1.34 (✓), Kubernetes 1.35 or above (+-)
136136
- [client 35.y.z](https://pypi.org/project/kubernetes/35.0.0/): Kubernetes 1.34 or below (+-), Kubernetes 1.35 (✓), Kubernetes 1.36 or above (+-)
137-
- [client 36.y.z](https://pypi.org/project/kubernetes/36.0.0/): Kubernetes 1.35 or below (+-), Kubernetes 1.36 (✓), Kubernetes 1.37 or above (+-)
137+
- [client 36.y.z](https://pypi.org/project/kubernetes/36.0.1/): Kubernetes 1.35 or below (+-), Kubernetes 1.36 (✓), Kubernetes 1.37 or above (+-)
138138

139139

140140
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.

examples/cronjob_crud.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/python3
2-
# -*- coding:utf-8 -*-
32

43
import json
54
import time

examples/duration-gep2257.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/python3
2-
# -*- coding:utf-8 -*-
32

43
"""
54
This example uses kubernetes.utils.duration to parse and display

examples/pod_portforward.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
import select
2020
import socket
2121
import time
22-
23-
import six.moves.urllib.request as urllib_request
22+
from urllib import request as urllib_request
2423

2524
from kubernetes import config
2625
from kubernetes.client import Configuration

examples_asyncio/in_cluster_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
import sys
5454
import traceback
5555

56-
from kubernetes_asyncio import client, config
56+
from kubernetes.aio import client, config
5757

5858

5959
async def main():

examples_asyncio/list_pods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22

3-
from kubernetes_asyncio import client, config
4-
from kubernetes_asyncio.client.api_client import ApiClient
3+
from kubernetes.aio import client, config
4+
from kubernetes.aio.client.api_client import ApiClient
55

66

77
async def main():

examples_asyncio/patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22

3-
from kubernetes_asyncio import client, config
4-
from kubernetes_asyncio.client.api_client import ApiClient
3+
from kubernetes.aio import client, config
4+
from kubernetes.aio.client.api_client import ApiClient
55

66
SERVICE_NAME = "example-service"
77
SERVICE_NS = "default"

0 commit comments

Comments
 (0)