Compare commits

...

22 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
f6758324e2
Merge pull request #1655 from yliaog/update-21-base-2
Some checks failed
Kubernetes Python Client - Validation / build (3.10) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.6) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.7) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.8) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.9) (push) Has been cancelled
Update submodule to the same version as master branch
2021-12-15 11:47:51 -08:00
Yu Liao
e080f4c948 Update submodule to the same version as master branch 2021-12-15 11:38:05 -08:00
Kubernetes Prow Robot
65674148e7
Merge pull request #1653 from yliaog/automated-release-of-21.7.0-upstream-release-21.0-1639590783
Automated release of 21.7.0 upstream release 21.0 1639590783
2021-12-15 10:27:51 -08:00
Yu Liao
f565720f8a updated compatibility matrix and maintenance status 2021-12-15 10:22:35 -08:00
Yu Liao
359e3e3358 generated client change 2021-12-15 10:22:35 -08:00
Yu Liao
2388c8a076 update version constants for 21.7.0 release 2021-12-15 10:22:35 -08:00
Yu Liao
375eb9bbb4 update changelog with release notes from master branch 2021-12-15 10:22:31 -08:00
Aurélien Gasser
025c67fb84 add comment 2021-12-15 09:54:59 -08:00
Aurélien Gasser
b215de5aff test: WSClient.returncode idempotence 2021-12-15 09:54:59 -08:00
John Sun
85a71f21c1 generated python-base update 2021-12-15 09:54:59 -08:00
Kubernetes Prow Robot
51b53d5712
Merge pull request #1644 from yliaog/automated-release-of-21.7.0b1-upstream-release-21.0-1638829098
Automated release of 21.7.0b1 upstream release 21.0 1638829098
2021-12-06 14:29:33 -08:00
Yu Liao
64aaf43ead updated compatibility matrix for 21.7.0b1 2021-12-06 14:22:24 -08:00
Yu Liao
796d1455e0 generated client change 2021-12-06 14:20:38 -08:00
Yu Liao
872baa0a0d update changelog 2021-12-06 14:20:38 -08:00
Yu Liao
c155fd794b update version constants for 21.7.0b1 release 2021-12-06 14:20:38 -08:00
Ping He
5c3bc4437e Fix leaderelection.resourcelock not found
Signed-off-by: Ping He <tdihp@hotmail.com>
2021-12-06 14:20:38 -08:00
dependabot[bot]
7428cebde0 Bump actions/setup-python from 2.3.0 to 2.3.1
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 14:20:38 -08:00
Kubernetes Prow Robot
81bb7e10da
Merge pull request #1639 from yliaog/automated-release-of-21.7.0a1-upstream-release-21.0-1638232914
Automated release of 21.7.0a1 upstream release 21.0 1638232914
2021-11-29 17:00:57 -08:00
Yu Liao
e00f4db3f5 updated README 2021-11-29 16:47:23 -08:00
Yu Liao
7fd040876e generated client change 2021-11-29 16:42:36 -08:00
Yu Liao
5d26fce3c7 update changelog 2021-11-29 16:41:56 -08:00
Yu Liao
13b4b89858 update version constants for 21.7.0a1 release 2021-11-29 16:41:56 -08:00
17 changed files with 38 additions and 19 deletions

View File

@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.18.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.0
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

View File

@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.15.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.0
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

View File

@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.16.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.0
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

View File

@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.17.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.0
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

View File

@ -30,7 +30,7 @@ jobs:
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.18.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.0
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

View File

@ -15,7 +15,7 @@ jobs:
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.0
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

View File

@ -1,4 +1,18 @@
# v21.0.0-snapshot
# v21.7.0
Kubernetes API Version: v1.21.7
### Bug or Regression
- Fixed kubernetes-client/python#741, an issue which prevented Kubernetes cluster api-tokens from exec-plugin auth providers from being refreshed after expiry. (#250, @emenendez)
- Use select.poll() for exec on linux/darwin to improve scalability of WSClient (#268, @jsun-splunk)
# v21.7.0b1
Kubernetes API Version: v1.21.7
# v21.7.0a1
Kubernetes API Version: v1.21.7

View File

@ -90,6 +90,7 @@ supported versions of Kubernetes clusters.
- [client 18.y.z](https://pypi.org/project/kubernetes/18.20.0/): Kubernetes 1.17 or below (+-), Kubernetes 1.18 (✓), Kubernetes 1.19 or above (+-)
- [client 19.y.z](https://pypi.org/project/kubernetes/19.15.0/): Kubernetes 1.18 or below (+-), Kubernetes 1.19 (✓), Kubernetes 1.20 or above (+-)
- [client 20.y.z](https://pypi.org/project/kubernetes/20.13.0/): Kubernetes 1.19 or below (+-), Kubernetes 1.20 (✓), Kubernetes 1.21 or above (+-)
- [client 21.y.z](https://pypi.org/project/kubernetes/21.7.0/): Kubernetes 1.20 or below (+-), Kubernetes 1.21 (✓), Kubernetes 1.22 or above (+-)
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explaination of why there is no v13-v16 release.
@ -125,7 +126,7 @@ between client-python versions.
| 11.0 Alpha/Beta | Kubernetes main repo, 1.15 branch | ✗ |
| 11.0 | Kubernetes main repo, 1.15 branch | ✗ |
| 12.0 Alpha/Beta | Kubernetes main repo, 1.16 branch | ✗ |
| 12.0 | Kubernetes main repo, 1.16 branch | |
| 12.0 | Kubernetes main repo, 1.16 branch | |
| 17.0 Alpha/Beta | Kubernetes main repo, 1.17 branch | ✗ |
| 17.0 | Kubernetes main repo, 1.17 branch | ✓ |
| 18.0 Alpha/Beta | Kubernetes main repo, 1.18 branch | ✗ |
@ -134,6 +135,8 @@ between client-python versions.
| 19.0 | Kubernetes main repo, 1.19 branch | ✓ |
| 20.0 Alpha/Beta | Kubernetes main repo, 1.20 branch | ✗ |
| 20.0 | Kubernetes main repo, 1.20 branch | ✓ |
| 21.0 Alpha/Beta | Kubernetes main repo, 1.21 branch | ✗ |
| 21.0 | Kubernetes main repo, 1.21 branch | ✓ |
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explaination of why there is no v13-v16 release.

View File

@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: release-1.21
- Package version: 21.0.0-snapshot
- Package version: 21.7.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
## Requirements.

View File

@ -14,7 +14,7 @@
__project__ = 'kubernetes'
# The version is auto-updated. Please do not edit.
__version__ = "21.0.0-snapshot"
__version__ = "21.7.0"
import kubernetes.client
import kubernetes.config

@ -1 +1 @@
Subproject commit a66f8df1dfc0e4f4a17093c7da273b9e485a55a0
Subproject commit 06191d321491abd87caaf0d049030dc87720684a

View File

@ -14,7 +14,7 @@
from __future__ import absolute_import
__version__ = "21.0.0-snapshot"
__version__ = "21.7.0"
# import apis into sdk package
from kubernetes.client.api.well_known_api import WellKnownApi

View File

@ -78,7 +78,7 @@ class ApiClient(object):
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/21.0.0-snapshot/python'
self.user_agent = 'OpenAPI-Generator/21.7.0/python'
self.client_side_validation = configuration.client_side_validation
def __enter__(self):

View File

@ -350,7 +350,7 @@ class Configuration(object):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: release-1.21\n"\
"SDK Package Version: 21.0.0-snapshot".\
"SDK Package Version: 21.7.0".\
format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self):

View File

@ -221,6 +221,7 @@ class TestClient(unittest.TestCase):
self.assertIsNone(client.returncode)
client.run_forever(timeout=10)
self.assertEqual(client.returncode, value)
self.assertEqual(client.returncode, value) # check idempotence
resp = api.delete_namespaced_pod(name=name, body={},
namespace='default')

View File

@ -18,13 +18,13 @@ import sys
KUBERNETES_BRANCH = "release-1.21"
# client version for packaging and releasing.
CLIENT_VERSION = "21.0.0-snapshot"
CLIENT_VERSION = "21.7.0"
# Name of the release package
PACKAGE_NAME = "kubernetes"
# Stage of development, mainly used in setup.py's classifiers.
DEVELOPMENT_STATUS = "3 - Alpha"
DEVELOPMENT_STATUS = "5 - Production/Stable"
# If called directly, return the constant value given

View File

@ -16,9 +16,9 @@ from setuptools import setup
# Do not edit these constants. They will be updated automatically
# by scripts/update-client.sh.
CLIENT_VERSION = "21.0.0-snapshot"
CLIENT_VERSION = "21.7.0"
PACKAGE_NAME = "kubernetes"
DEVELOPMENT_STATUS = "3 - Alpha"
DEVELOPMENT_STATUS = "5 - Production/Stable"
# To install the library, run the following
#
@ -61,7 +61,8 @@ setup(
'kubernetes.watch', 'kubernetes.client.api',
'kubernetes.stream', 'kubernetes.client.models',
'kubernetes.utils', 'kubernetes.client.apis',
'kubernetes.dynamic', 'kubernetes.leaderelection'],
'kubernetes.dynamic', 'kubernetes.leaderelection',
'kubernetes.leaderelection.resourcelock'],
include_package_data=True,
long_description="Python client for kubernetes http://kubernetes.io/",
python_requires='>=3.6',