Compare commits
59 Commits
master
...
release-18
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
888d7df5ff | ||
|
|
5231791f0c | ||
|
|
9e3641da11 | ||
|
|
286bd61dc3 | ||
|
|
4a5b39d085 | ||
|
|
6850340ec6 | ||
|
|
8bd7651ec4 | ||
|
|
1b80892d6c | ||
|
|
7d89f0254e | ||
|
|
0b146c35ed | ||
|
|
a7f122ece4 | ||
|
|
1d5d40556f | ||
|
|
698a4689f2 | ||
|
|
d8fd974e63 | ||
|
|
fa64fd9ce4 | ||
|
|
f152ecf5ea | ||
|
|
f4a5dd0aab | ||
|
|
f0ff60f290 | ||
|
|
2d9dbdf133 | ||
|
|
adc68b77ba | ||
|
|
5b68936c23 | ||
|
|
8b526497c5 | ||
|
|
61f1fbe49a | ||
|
|
3b247f5d0f | ||
|
|
e43ab1e4ad | ||
|
|
91bb4910b2 | ||
|
|
eb9db7762d | ||
|
|
86cd342c63 | ||
|
|
dadc47b282 | ||
|
|
affaebb534 | ||
|
|
dcd449ace6 | ||
|
|
c55c0ef663 | ||
|
|
73c7339621 | ||
|
|
69986824ac | ||
|
|
b143e8c829 | ||
|
|
b2b520a010 | ||
|
|
7a0e799a02 | ||
|
|
fae8590d61 | ||
|
|
4ff8c05914 | ||
|
|
a027b2a4bb | ||
|
|
469bc9af88 | ||
|
|
1c2be29248 | ||
|
|
b4a3fc235e | ||
|
|
9f880d8396 | ||
|
|
e379ad2868 | ||
|
|
cd92c5d545 | ||
|
|
0fd73895d7 | ||
|
|
161f1236dc | ||
|
|
7a4ffcf819 | ||
|
|
631386c894 | ||
|
|
a3d90aa243 | ||
|
|
4cfbfd4e17 | ||
|
|
7f1667e5a2 | ||
|
|
86f621a0f2 | ||
|
|
2132e24fd1 | ||
|
|
329b27a859 | ||
|
|
c382d32f92 | ||
|
|
89ea5306ab | ||
|
|
ddf34709bc |
41
.travis.yml
41
.travis.yml
@ -83,6 +83,47 @@ jobs:
|
|||||||
repo: kubernetes-client/python
|
repo: kubernetes-client/python
|
||||||
distributions: sdist bdist_wheel
|
distributions: sdist bdist_wheel
|
||||||
|
|
||||||
|
- stage: test
|
||||||
|
python: 2.7
|
||||||
|
env: TOXENV=update-pycodestyle
|
||||||
|
arch: ppc64le
|
||||||
|
- python: 3.7
|
||||||
|
env: TOXENV=docs
|
||||||
|
arch: ppc64le
|
||||||
|
- python: 2.7
|
||||||
|
env: TOXENV=coverage,codecov
|
||||||
|
arch: ppc64le
|
||||||
|
- python: 2.7
|
||||||
|
env: TOXENV=py27
|
||||||
|
arch: ppc64le
|
||||||
|
- python: 3.5
|
||||||
|
env: TOXENV=py35
|
||||||
|
arch: ppc64le
|
||||||
|
- python: 3.6
|
||||||
|
env: TOXENV=py36
|
||||||
|
arch: ppc64le
|
||||||
|
- python: 3.7
|
||||||
|
env: TOXENV=py37
|
||||||
|
arch: ppc64le
|
||||||
|
- python: 3.8
|
||||||
|
env: TOXENV=py38
|
||||||
|
- python: 3.9
|
||||||
|
env: TOXENV=py39
|
||||||
|
arch: ppc64le
|
||||||
|
- stage: deploy
|
||||||
|
script: skip
|
||||||
|
arch: ppc64le
|
||||||
|
deploy:
|
||||||
|
provider: pypi
|
||||||
|
user: __token__
|
||||||
|
password:
|
||||||
|
secure: gY5Rixj7mWHC9XP5qV5DfWGdX4ZVwCEUElnQA2OeIg235I3eMBqRFM4Q/SKwAG2DzgIWNKsXXVQsZHp7BAjWFMFVQloiU7zohuBRToJUim9U1RaqAjUIr4OU7JPtXenAl5zyyBdywvJiG8UZ4wmt1DBYtdpozQvOwDXvOxNTmElKh5mfDhiSsipmFr2198NtIhiRVC+CZliZsi6osUkt+G6yl9CW+SJU3otgzdaS+VBP26HO0kWHMJiDKvQoIl/Q50IqJUWieFhCLh7lSV71VNVEmM4bMcYK8cAv3zMZHo6REKHF7xrF5tzYMXqpmEGt6L798d2H4BISr6BIlYgiYCatjyE9hxih9iBzGs0XaGUUFD8u1iuzOQI76a5dapG/DixQrGD2o9Gn/Qw6Zp9USIuKZSWUn5hSobwxJUKVNy+afpaJNQUb2W9Hj+jMXAnBDodCzo3nu+QF8GN72cmk3uqVyKUVABtI4kNe3qcEx3DyKfoh7aqJrgydeaRwESKuZ41l5CA+vqXSbbNW8z1MYDYgVdwEyRFsLg6aQk5pPsxuiILaaGy13TUndhuC+GuKcW6wCDf6WpUAwwGAF8+sz4hZ1pfSUdE3F8nfDBW3Bv+G9cB/cKkWJ2vOd9httRrvir8qUc/xPP5aW4pacnfNCQ04Iep/k4PCAdYJDtVGhCY=
|
||||||
|
skip_existing: true
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
repo: kubernetes-client/python
|
||||||
|
distributions: sdist bdist_wheel
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- name: verify-tag
|
- name: verify-tag
|
||||||
if: (tag is present) and (type = push)
|
if: (tag is present) and (type = push)
|
||||||
|
|||||||
@ -1,11 +1,15 @@
|
|||||||
# v18.0.0-snapshot
|
# v18.20.0
|
||||||
|
|
||||||
Kubernetes API Version: To Be Updated
|
Kubernetes API Version: 1.18.20
|
||||||
|
|
||||||
### Feature
|
### Feature
|
||||||
- Support for the dryRun parameter has been added to the dynamic client. ([kubernetes-client/python-base#247](https://github.com/kubernetes-client/python-base/pull/247), [@gravesm](https://github.com/gravesm))
|
- Support for the dryRun parameter has been added to the dynamic client. ([kubernetes-client/python-base#247](https://github.com/kubernetes-client/python-base/pull/247), [@gravesm](https://github.com/gravesm))
|
||||||
- The `python2` support will be removed in 18.0.0 beta release. All the tests will use `python3` versions. ([kubernetes-client/python-base#238](https://github.com/kubernetes-client/python-base/pull/238), [@Priyankasaggu11929](https://github.com/Priyankasaggu11929))
|
- The `python2` support will be removed in 18.0.0 beta release. All the tests will use `python3` versions. ([kubernetes-client/python-base#238](https://github.com/kubernetes-client/python-base/pull/238), [@Priyankasaggu11929](https://github.com/Priyankasaggu11929))
|
||||||
- The dynamic client now supports customizing http "Accept" header through the `header_params` parameter, which can be used to customizing API server response, e.g. retrieving object metadata only. ([kubernetes-client/python-base#236](https://github.com/kubernetes-client/python-base/pull/236), [@Yashks1994](https://github.com/Yashks1994))
|
- The dynamic client now supports customizing http "Accept" header through the `header_params` parameter, which can be used to customizing API server response, e.g. retrieving object metadata only. ([kubernetes-client/python-base#236](https://github.com/kubernetes-client/python-base/pull/236), [@Yashks1994](https://github.com/Yashks1994))
|
||||||
|
- Allow optional list of YAML objects as param to `create_from_yaml` util [kubernetes-client/python#1403](https://github.com/kubernetes-client/python/pull/1403)
|
||||||
|
|
||||||
|
**Bug Fix:**
|
||||||
|
- Fix empty yaml document in `create_from_yaml` [kubernetes-client/python#1506](https://github.com/kubernetes-client/python/pull/1506)
|
||||||
|
|
||||||
# v18.20.0b1
|
# v18.20.0b1
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ supported versions of Kubernetes clusters.
|
|||||||
- [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 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 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.17.0/): Kubernetes 1.16 or below (+-), Kubernetes 1.17 (✓), Kubernetes 1.18 or above (+-)
|
- [client 17.y.z](https://pypi.org/project/kubernetes/17.17.0/): Kubernetes 1.16 or below (+-), Kubernetes 1.17 (✓), Kubernetes 1.18 or above (+-)
|
||||||
- [client 18.y.z](https://pypi.org/project/kubernetes/18.20.0b1/): Kubernetes 1.17 or below (+-), Kubernetes 1.18 (✓), Kubernetes 1.19 or above (+-)
|
- [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 (+-)
|
||||||
|
|
||||||
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explaination of why there is no v13-v16 release.
|
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explaination of why there is no v13-v16 release.
|
||||||
|
|
||||||
@ -121,12 +121,13 @@ between client-python versions.
|
|||||||
| 10.0 Alpha/Beta | Kubernetes main repo, 1.14 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 Alpha/Beta | Kubernetes main repo, 1.15 branch | ✗ |
|
||||||
| 11.0 | 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 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 Alpha/Beta | Kubernetes main repo, 1.17 branch | ✗ |
|
||||||
| 17.0 | Kubernetes main repo, 1.17 branch | ✓ |
|
| 17.0 | Kubernetes main repo, 1.17 branch | ✓ |
|
||||||
| 18.0 Alpha/Beta | Kubernetes main repo, 1.18 branch | ✓ |
|
| 18.0 Alpha/Beta | Kubernetes main repo, 1.18 branch | ✗ |
|
||||||
|
| 18.0 | 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.
|
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explaination of why there is no v13-v16 release.
|
||||||
|
|
||||||
|
|||||||
33
kubernetes/.gitlab-ci.yml
Normal file
33
kubernetes/.gitlab-ci.yml
Normal file
@ -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
|
||||||
@ -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:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: release-1.18
|
- API version: release-1.18
|
||||||
- Package version: 18.0.0-snapshot
|
- Package version: 18.20.0
|
||||||
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||||
|
|
||||||
## Requirements.
|
## Requirements.
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
__project__ = 'kubernetes'
|
__project__ = 'kubernetes'
|
||||||
# The version is auto-updated. Please do not edit.
|
# The version is auto-updated. Please do not edit.
|
||||||
__version__ = "18.0.0-snapshot"
|
__version__ = "18.20.0"
|
||||||
|
|
||||||
import kubernetes.client
|
import kubernetes.client
|
||||||
import kubernetes.config
|
import kubernetes.config
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
__version__ = "18.0.0-snapshot"
|
__version__ = "18.20.0"
|
||||||
|
|
||||||
# import apis into sdk package
|
# import apis into sdk package
|
||||||
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
|
from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
|
||||||
|
|||||||
@ -78,7 +78,7 @@ class ApiClient(object):
|
|||||||
self.default_headers[header_name] = header_value
|
self.default_headers[header_name] = header_value
|
||||||
self.cookie = cookie
|
self.cookie = cookie
|
||||||
# Set default User-Agent.
|
# Set default User-Agent.
|
||||||
self.user_agent = 'OpenAPI-Generator/18.0.0-snapshot/python'
|
self.user_agent = 'OpenAPI-Generator/18.20.0/python'
|
||||||
self.client_side_validation = configuration.client_side_validation
|
self.client_side_validation = configuration.client_side_validation
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
|
|||||||
@ -347,7 +347,7 @@ class Configuration(object):
|
|||||||
"OS: {env}\n"\
|
"OS: {env}\n"\
|
||||||
"Python Version: {pyversion}\n"\
|
"Python Version: {pyversion}\n"\
|
||||||
"Version of the API: release-1.18\n"\
|
"Version of the API: release-1.18\n"\
|
||||||
"SDK Package Version: 18.0.0-snapshot".\
|
"SDK Package Version: 18.20.0".\
|
||||||
format(env=sys.platform, pyversion=sys.version)
|
format(env=sys.platform, pyversion=sys.version)
|
||||||
|
|
||||||
def get_host_settings(self):
|
def get_host_settings(self):
|
||||||
|
|||||||
2
kubernetes/setup.cfg
Normal file
2
kubernetes/setup.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[flake8]
|
||||||
|
max-line-length=99
|
||||||
39
kubernetes/test/test_configuration.py
Normal file
39
kubernetes/test/test_configuration.py
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from kubernetes.client import Configuration
|
||||||
|
|
||||||
|
class TestConfiguration(unittest.TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
# reset Configuration
|
||||||
|
Configuration.set_default(None)
|
||||||
|
|
||||||
|
def testConfiguration(self):
|
||||||
|
# check that different instances use different dictionaries
|
||||||
|
c1 = Configuration()
|
||||||
|
c2 = Configuration()
|
||||||
|
self.assertNotEqual(id(c1.api_key), id(c2.api_key))
|
||||||
|
self.assertNotEqual(id(c1.api_key_prefix), id(c2.api_key_prefix))
|
||||||
|
|
||||||
|
def testDefaultConfiguration(self):
|
||||||
|
# prepare default configuration
|
||||||
|
c1 = Configuration(host="example.com")
|
||||||
|
c1.debug = True
|
||||||
|
Configuration.set_default(c1)
|
||||||
|
|
||||||
|
# get default configuration
|
||||||
|
c2 = Configuration.get_default_copy()
|
||||||
|
self.assertEqual(c2.host, "example.com")
|
||||||
|
self.assertTrue(c2.debug)
|
||||||
|
|
||||||
|
self.assertNotEqual(id(c1.api_key), id(c2.api_key))
|
||||||
|
self.assertNotEqual(id(c1.api_key_prefix), id(c2.api_key_prefix))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
@ -18,13 +18,13 @@ import sys
|
|||||||
KUBERNETES_BRANCH = "release-1.18"
|
KUBERNETES_BRANCH = "release-1.18"
|
||||||
|
|
||||||
# client version for packaging and releasing.
|
# client version for packaging and releasing.
|
||||||
CLIENT_VERSION = "18.0.0-snapshot"
|
CLIENT_VERSION = "18.20.0"
|
||||||
|
|
||||||
# Name of the release package
|
# Name of the release package
|
||||||
PACKAGE_NAME = "kubernetes"
|
PACKAGE_NAME = "kubernetes"
|
||||||
|
|
||||||
# Stage of development, mainly used in setup.py's classifiers.
|
# 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
|
# If called directly, return the constant value given
|
||||||
|
|||||||
@ -48,6 +48,9 @@ SETTING_FILE="${TEMP_FOLDER}/settings"
|
|||||||
echo "export KUBERNETES_BRANCH=\"$(python ${SCRIPT_ROOT}/constants.py KUBERNETES_BRANCH)\"" > $SETTING_FILE
|
echo "export KUBERNETES_BRANCH=\"$(python ${SCRIPT_ROOT}/constants.py KUBERNETES_BRANCH)\"" > $SETTING_FILE
|
||||||
echo "export CLIENT_VERSION=\"$(python ${SCRIPT_ROOT}/constants.py CLIENT_VERSION)\"" >> $SETTING_FILE
|
echo "export CLIENT_VERSION=\"$(python ${SCRIPT_ROOT}/constants.py CLIENT_VERSION)\"" >> $SETTING_FILE
|
||||||
echo "export PACKAGE_NAME=\"client\"" >> $SETTING_FILE
|
echo "export PACKAGE_NAME=\"client\"" >> $SETTING_FILE
|
||||||
|
# Workaround for https://github.com/kubernetes-client/gen/pull/183.
|
||||||
|
# The env is required but not used by python client.
|
||||||
|
echo "export LIBRARY=\"undefined\"" >> $SETTING_FILE
|
||||||
|
|
||||||
if [[ -z ${GEN_ROOT:-} ]]; then
|
if [[ -z ${GEN_ROOT:-} ]]; then
|
||||||
GEN_ROOT="${TEMP_FOLDER}/gen"
|
GEN_ROOT="${TEMP_FOLDER}/gen"
|
||||||
|
|||||||
4
setup.py
4
setup.py
@ -16,9 +16,9 @@ from setuptools import setup
|
|||||||
|
|
||||||
# Do not edit these constants. They will be updated automatically
|
# Do not edit these constants. They will be updated automatically
|
||||||
# by scripts/update-client.sh.
|
# by scripts/update-client.sh.
|
||||||
CLIENT_VERSION = "18.0.0-snapshot"
|
CLIENT_VERSION = "18.20.0"
|
||||||
PACKAGE_NAME = "kubernetes"
|
PACKAGE_NAME = "kubernetes"
|
||||||
DEVELOPMENT_STATUS = "3 - Alpha"
|
DEVELOPMENT_STATUS = "5 - Production/Stable"
|
||||||
|
|
||||||
# To install the library, run the following
|
# To install the library, run the following
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user