Skip to content

Commit f0ff60f

Browse files
authored
Merge pull request #1411 from roycaihw/release-18.0
Release v18.17.0a1
2 parents 7a0e799 + 2d9dbdf commit f0ff60f

24 files changed

+294
-34
lines changed

.travis.yml

+49-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: python
2-
dist: xenial
2+
dist: bionic
33
services:
44
- docker
55

@@ -13,9 +13,16 @@ jobs:
1313
include:
1414
- stage: verify-tag
1515
python: 3.7
16+
arch: ppc64le
1617
script: >
1718
[ "v$(python -c 'from scripts.constants import CLIENT_VERSION; print(CLIENT_VERSION)')" == "${TRAVIS_TAG}" ] &&
1819
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
20+
- stage: verify-tag
21+
python: 3.7
22+
script: >
23+
[ "v$(python -c 'from scripts.constants import CLIENT_VERSION; print(CLIENT_VERSION)')" == "${TRAVIS_TAG}" ] &&
24+
[[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(([ab]|dev|rc)[0-9]+)?$ ]]
25+
1926
- stage: test
2027
python: 2.7
2128
env: TOXENV=update-pycodestyle
@@ -56,6 +63,47 @@ jobs:
5663
repo: kubernetes-client/python
5764
distributions: sdist bdist_wheel
5865

66+
- stage: test
67+
python: 2.7
68+
env: TOXENV=update-pycodestyle
69+
arch: ppc64le
70+
- python: 3.7
71+
env: TOXENV=docs
72+
arch: ppc64le
73+
- python: 2.7
74+
env: TOXENV=coverage,codecov
75+
arch: ppc64le
76+
- python: 2.7
77+
env: TOXENV=py27
78+
arch: ppc64le
79+
- python: 3.5
80+
env: TOXENV=py35
81+
arch: ppc64le
82+
- python: 3.6
83+
env: TOXENV=py36
84+
arch: ppc64le
85+
- python: 3.7
86+
env: TOXENV=py37
87+
arch: ppc64le
88+
- python: 3.8
89+
env: TOXENV=py38
90+
- python: 3.9
91+
env: TOXENV=py39
92+
arch: ppc64le
93+
- stage: deploy
94+
script: skip
95+
arch: ppc64le
96+
deploy:
97+
provider: pypi
98+
user: __token__
99+
password:
100+
secure: gY5Rixj7mWHC9XP5qV5DfWGdX4ZVwCEUElnQA2OeIg235I3eMBqRFM4Q/SKwAG2DzgIWNKsXXVQsZHp7BAjWFMFVQloiU7zohuBRToJUim9U1RaqAjUIr4OU7JPtXenAl5zyyBdywvJiG8UZ4wmt1DBYtdpozQvOwDXvOxNTmElKh5mfDhiSsipmFr2198NtIhiRVC+CZliZsi6osUkt+G6yl9CW+SJU3otgzdaS+VBP26HO0kWHMJiDKvQoIl/Q50IqJUWieFhCLh7lSV71VNVEmM4bMcYK8cAv3zMZHo6REKHF7xrF5tzYMXqpmEGt6L798d2H4BISr6BIlYgiYCatjyE9hxih9iBzGs0XaGUUFD8u1iuzOQI76a5dapG/DixQrGD2o9Gn/Qw6Zp9USIuKZSWUn5hSobwxJUKVNy+afpaJNQUb2W9Hj+jMXAnBDodCzo3nu+QF8GN72cmk3uqVyKUVABtI4kNe3qcEx3DyKfoh7aqJrgydeaRwESKuZ41l5CA+vqXSbbNW8z1MYDYgVdwEyRFsLg6aQk5pPsxuiILaaGy13TUndhuC+GuKcW6wCDf6WpUAwwGAF8+sz4hZ1pfSUdE3F8nfDBW3Bv+G9cB/cKkWJ2vOd9httRrvir8qUc/xPP5aW4pacnfNCQ04Iep/k4PCAdYJDtVGhCY=
101+
skip_existing: true
102+
on:
103+
tags: true
104+
repo: kubernetes-client/python
105+
distributions: sdist bdist_wheel
106+
59107
stages:
60108
- name: verify-tag
61109
if: (tag is present) and (type = push)

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# v18
2+
3+
**New Feature:**
4+
- Support leader election. [kubernetes-client/python-base#206](https://github.com/kubernetes-client/python-base/pull/206)
5+
6+
**Bug Fix:**
7+
- Raise exception when an empty config file is passed to load_kube_config. [kubernetes-client/python-base#223](https://github.com/kubernetes-client/python-base/pull/223)
8+
- fix: load cache error when CacheDecoder object is not callable. [kubernetes-client/python-base#226](https://github.com/kubernetes-client/python-base/pull/226)
9+
- Fix Watch retries with 410 errors. [kubernetes-client/python-base#227](https://github.com/kubernetes-client/python-base/pull/227)
10+
- Automatically handles chunked or non-chunked responses. Fix ResponseNotChunked error from watch. [kubernetes-client/python-base#231](https://github.com/kubernetes-client/python-base/pull/231)
11+
12+
**API Change:**
13+
- Add allowWatchBookmarks, resoureVersionMatch parameters to custom objects. [kubernetes-client/gen#180](https://github.com/kubernetes-client/gen/pull/180)
14+
15+
116
# v18.0.0-snapshot
217

318
Kubernetes API Version: 1.18.12

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ supported versions of Kubernetes clusters.
8787
- [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 (+-)
8888
- [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 (+-)
8989
- [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 (+-)
90+
- [client 18.y.z](https://pypi.org/project/kubernetes/18.17.0a1/): Kubernetes 1.17 or below (+-), Kubernetes 1.18 (✓), Kubernetes 1.19 or above (+-)
9091

9192
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explaination of why there is no v13-v16 release.
9293
@@ -124,6 +125,7 @@ between client-python versions.
124125
| 12.0 Alpha/Beta | Kubernetes main repo, 1.16 branch ||
125126
| 12.0 | Kubernetes main repo, 1.16 branch ||
126127
| 17.0 Alpha/Beta | Kubernetes main repo, 1.17 branch ||
128+
| 18.0 Alpha/Beta | Kubernetes main repo, 1.18 branch ||
127129

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

examples/pod_exec.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,11 @@ def exec_commands(api_instance):
117117

118118
def main():
119119
config.load_kube_config()
120-
c = Configuration()
121-
c.assert_hostname = False
120+
try:
121+
c = Configuration().get_default_copy()
122+
except AttributeError:
123+
c = Configuration()
124+
c.assert_hostname = False
122125
Configuration.set_default(c)
123126
core_v1 = core_v1_api.CoreV1Api()
124127

kubernetes/.gitlab-ci.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ref: https://docs.gitlab.com/ee/ci/README.html
2+
3+
stages:
4+
- test
5+
6+
.nosetest:
7+
stage: test
8+
script:
9+
- pip install -r requirements.txt
10+
- pip install -r test-requirements.txt
11+
- pytest --cov=client
12+
13+
nosetest-2.7:
14+
extends: .nosetest
15+
image: python:2.7-alpine
16+
nosetest-3.3:
17+
extends: .nosetest
18+
image: python:3.3-alpine
19+
nosetest-3.4:
20+
extends: .nosetest
21+
image: python:3.4-alpine
22+
nosetest-3.5:
23+
extends: .nosetest
24+
image: python:3.5-alpine
25+
nosetest-3.6:
26+
extends: .nosetest
27+
image: python:3.6-alpine
28+
nosetest-3.7:
29+
extends: .nosetest
30+
image: python:3.7-alpine
31+
nosetest-3.8:
32+
extends: .nosetest
33+
image: python:3.8-alpine
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
34917ac9d54d8de86d5a7dd1a299f2025a107c83e986bcc196b4fa451927918e
1+
41ab0a9642178691aaed89bbcc78c2f94bc1169e5adac931630ad2758e98294d

kubernetes/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: release-1.18
7-
- Package version: 18.0.0-snapshot
7+
- Package version: 18.17.0a1
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

kubernetes/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

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

1919
import kubernetes.client
2020
import kubernetes.config
2121
import kubernetes.dynamic
2222
import kubernetes.watch
2323
import kubernetes.stream
2424
import kubernetes.utils
25+
import kubernetes.leaderelection

kubernetes/client/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "18.0.0-snapshot"
17+
__version__ = "18.17.0a1"
1818

1919
# import apis into sdk package
2020
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi

0 commit comments

Comments
 (0)