Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4bc9b01
Update constants to reflect Client release 17.14.0a1
Nov 13, 2020
69b439b
Generate client 17.14.0a1
Nov 13, 2020
e8b6e09
Fix custom objects API to preserve backward compatibility
Jun 22, 2020
5388d29
Add kubernetes.client.apis as an alias to kubernetes.client.api
Jun 22, 2020
8d0ad4b
Add test to ensure kubernetes client threadpool is cleaned up
Feb 6, 2020
8e9d345
add a test for default configuration behavior
Nov 4, 2020
0e3e4c9
Update CHANGELOG with v17.14.0a1
Nov 13, 2020
b067ea5
Merge pull request #1317 from palnabarun/release-17.0
Nov 13, 2020
46a5c52
Refactor the format of compatibitility matrix
Nov 13, 2020
898601f
Add v17.14.0a1 to the compatibility matrix
Nov 16, 2020
8abc217
Add a note about the change in client versioning schema
Nov 16, 2020
ae4f93f
Merge pull request #1323 from palnabarun/release-17.0
Nov 17, 2020
06e228e
Merge branch 'master' of github.com:kubernetes-client/python into pul…
Apr 30, 2021
76057d2
changelog for pulling master and corresponding submodule changes
Apr 30, 2021
7f22d6b
Merge pull request #1447 from roycaihw/pull-master-into-release-17.0
Apr 30, 2021
439bfcb
Beta release of 1.17
May 1, 2021
edb5034
Merge pull request #1449 from scottilee/release-17.0
May 3, 2021
214249f
Merge branch 'master' of github.com:kubernetes-client/python into pul…
May 11, 2021
b351605
Merge pull request #1460 from roycaihw/pull-master-into-release-17
May 11, 2021
a1fb63c
GA release of 1.17
May 12, 2021
09da62f
Update CHANGELOG and README
May 12, 2021
0028fa8
Merge pull request #1464 from scottilee/release-17.0
May 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v17.0.0-snapshot
# v17.17.0

Kubernetes API Version: 1.17.17

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ supported versions of Kubernetes clusters.

#### Compatibility matrix of supported client versions

- [client 9.y.z](https://pypi.org/project/kubernetes/9.0.1/): Kubernetes 1.12 or below (+-), Kubernetes 1.13 (✓), Kubernetes 1.14 or above (+-)
- [client 10.y.z](https://pypi.org/project/kubernetes/10.1.0/): Kubernetes 1.13 or below (+-), Kubernetes 1.14 (✓), Kubernetes 1.14 or above (+-)
- [client 11.y.z](https://pypi.org/project/kubernetes/11.0.0/): Kubernetes 1.14 or below (+-), Kubernetes 1.15 (✓), Kubernetes 1.16 or above (+-)
- [client 12.y.z](https://pypi.org/project/kubernetes/12.0.1/): Kubernetes 1.15 or below (+-), Kubernetes 1.16 (✓), Kubernetes 1.17 or above (+-)
- [client 17.y.z](https://pypi.org/project/kubernetes/17.14.0a1/): Kubernetes 1.16 or below (+-), Kubernetes 1.17 (✓), Kubernetes 1.18 or above (+-)
Expand Down Expand Up @@ -119,12 +117,13 @@ between client-python versions.
| 9.0 Alpha/Beta | Kubernetes main repo, 1.13 branch | ✗ |
| 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 | |
| 10.0 | Kubernetes main repo, 1.14 branch | |
| 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 | ✓ |
| 17.0 Alpha/Beta | Kubernetes main repo, 1.17 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 | ✓ |

> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explaination of why there is no v13-v16 release.
Expand Down
33 changes: 33 additions & 0 deletions kubernetes/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# ref: https://docs.gitlab.com/ee/ci/README.html

stages:
- test

.nosetest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=client

nosetest-2.7:
extends: .nosetest
image: python:2.7-alpine
nosetest-3.3:
extends: .nosetest
image: python:3.3-alpine
nosetest-3.4:
extends: .nosetest
image: python:3.4-alpine
nosetest-3.5:
extends: .nosetest
image: python:3.5-alpine
nosetest-3.6:
extends: .nosetest
image: python:3.6-alpine
nosetest-3.7:
extends: .nosetest
image: python:3.7-alpine
nosetest-3.8:
extends: .nosetest
image: python:3.8-alpine
2 changes: 1 addition & 1 deletion kubernetes/.openapi-generator/swagger.json.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
04859ba873ac89c62207ee4a60256edc321314c7d8521c5fd7fba41a1290d637
7efcb256011a28b93d9484abc205afaa57150cdcd8d375e04330fcb51cef64db
2 changes: 1 addition & 1 deletion kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.17
- Package version: 17.0.0-snapshot
- Package version: 17.17.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

__project__ = 'kubernetes'
# The version is auto-updated. Please do not edit.
__version__ = "17.0.0-snapshot"
__version__ = "17.17.0"

import kubernetes.client
import kubernetes.config
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from __future__ import absolute_import

__version__ = "17.0.0-snapshot"
__version__ = "17.17.0"

# import apis into sdk package
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
Expand Down
20 changes: 20 additions & 0 deletions kubernetes/client/api/custom_objects_api.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion kubernetes/client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/17.0.0-snapshot/python'
self.user_agent = 'OpenAPI-Generator/17.17.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: release-1.17\n"\
"SDK Package Version: 17.0.0-snapshot".\
"SDK Package Version: 17.17.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
16 changes: 12 additions & 4 deletions kubernetes/docs/CustomObjectsApi.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions kubernetes/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length=99
4 changes: 2 additions & 2 deletions scripts/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
KUBERNETES_BRANCH = "release-1.17"

# client version for packaging and releasing.
CLIENT_VERSION = "17.0.0-snapshot"
CLIENT_VERSION = "17.17.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
Expand Down
28 changes: 28 additions & 0 deletions scripts/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -108705,6 +108705,13 @@
],
"description": "list or watch namespace scoped custom objects",
"parameters": [
{
"uniqueItems": true,
"type": "boolean",
"description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.",
"name": "allowWatchBookmarks",
"in": "query"
},
{
"uniqueItems": true,
"in": "query",
Expand Down Expand Up @@ -108740,6 +108747,13 @@
"description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.",
"name": "resourceVersion"
},
{
"uniqueItems": true,
"type": "string",
"description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
"name": "resourceVersionMatch",
"in": "query"
},
{
"uniqueItems": true,
"in": "query",
Expand Down Expand Up @@ -108931,6 +108945,13 @@
],
"description": "list or watch cluster scoped custom objects",
"parameters": [
{
"uniqueItems": true,
"type": "boolean",
"description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.",
"name": "allowWatchBookmarks",
"in": "query"
},
{
"uniqueItems": true,
"in": "query",
Expand Down Expand Up @@ -108966,6 +108987,13 @@
"description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.",
"name": "resourceVersion"
},
{
"uniqueItems": true,
"type": "string",
"description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
"name": "resourceVersionMatch",
"in": "query"
},
{
"uniqueItems": true,
"in": "query",
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

# Do not edit these constants. They will be updated automatically
# by scripts/update-client.sh.
CLIENT_VERSION = "17.0.0-snapshot"
CLIENT_VERSION = "17.17.0"
PACKAGE_NAME = "kubernetes"
DEVELOPMENT_STATUS = "3 - Alpha"
DEVELOPMENT_STATUS = "5 - Production/Stable"

# To install the library, run the following
#
Expand Down