Commit Graph

1686 Commits

Author SHA1 Message Date
Christian Clauss
5b94a9a5da
Use ==/!= to compare str, bytes, and int literals
Identity is not the same thing as equality in Python so use ==/!= to compare str, bytes, and int literals. On n Python >= 3.8, these instances will raise SyntaxWarnings so it is best to fix them now. https://docs.python.org/3.8/whatsnew/3.8.html#porting-to-python-3-8
2019-11-16 14:12:46 +01:00
Kubernetes Prow Robot
02ef5be4ec
Merge pull request #995 from roycaihw/11.0.0-snapshot
Generate 11.0.0-snapshot client
2019-11-15 10:50:32 -08:00
Haowei Cai
b3164930dd turn on warning filter to print deprecation warning by default 2019-11-12 12:51:22 -08:00
Haowei Cai
9d29ac1ded use new module name in example 2019-11-11 12:05:27 -08:00
Haowei Cai
64beb03480 update CHANGELOG for master branch changes 2019-11-11 12:02:41 -08:00
Haowei Cai
9959273625 hotfix for patching custom objects issue#866 2019-11-11 12:02:41 -08:00
Haowei Cai
dee078639b Add alias package kubernetes.client.apis with deprecation warning 2019-11-11 12:02:41 -08:00
Haowei Cai
5cddbde0bf generated client change for 11.0.0-snapshot 2019-11-11 12:02:41 -08:00
Haowei Cai
6c015d1f9d update version constants for master branch 2019-11-11 12:02:38 -08:00
Haowei Cai
778b25d87f update base submodule, update CHANGELOG and include CHANGELOG from 11.0.0a1 2019-11-11 12:02:38 -08:00
Kubernetes Prow Robot
3739db034d
Merge pull request #865 from ymalen/patch-1
Update README.md
2019-10-31 18:08:53 -07:00
Kubernetes Prow Robot
3aea166b7a
Merge pull request #981 from fooka03/master
Merge azure refresh fix from python-base
2019-10-31 18:04:54 -07:00
Yacov Malen
be0a752240
Merge branch 'master' into patch-1 2019-10-23 11:10:48 +03:00
Yacov Malen
d89c7f6a5f
Update README.md 2019-10-23 11:06:53 +03:00
Kubernetes Prow Robot
a2d1024524
Merge pull request #173 from palnabarun/ci-add-python-3.8
Adds Python 3.8 environment to Travis CI for running the tests
2019-10-22 11:22:13 -07:00
Kubernetes Prow Robot
51157aa504
Merge pull request #172 from palnabarun/118-ci-boilerplate-seperation
Runs hack/* scripts as individual build step
2019-10-22 10:58:12 -07:00
Nabarun Pal
4e84e7d456
Adds Python 3.8 to the Travis CI test jobs 2019-10-22 00:53:04 +05:30
Nabarun Pal
5f395ba57b
Runs hack/* scripts as individual build step 2019-10-20 01:48:02 +05:30
Alexey Volkov
f11587d0e3
Fixed Watch.unmarshal_event when data is not a JSON-serialized object
Fixes https://github.com/kubernetes-client/python/issues/982
Fixes https://github.com/kubernetes-client/python/issues/983
2019-10-17 17:40:20 -07:00
Kubernetes Prow Robot
ca4f31198e
Merge pull request #970 from Jamim/feature/python3.8-tests
Enable testing for Python 3.8
2019-10-16 15:18:40 -07:00
Aliaksei Urbanski
4d858922f1 Enable testing for Python 3.8
Python 3.8 is there, so I believe that it would be nice
to declare support and add tests for it on CI.

Python 3.8.0 release announcement:
https://discuss.python.org/t/python-3-8-0-is-now-available/2478
2019-10-16 23:50:01 +03:00
Kubernetes Prow Robot
9c205e6147
Merge pull request #978 from palnabarun/coverage-pytest-port
Port coverage report generation to pytest
2019-10-16 09:45:31 -07:00
Nabarun Pal
064b80e0cd
Moves coverage report generation to pytest from nosetests
Adds pytest-cov to requirements
2019-10-16 15:24:10 +05:30
Nigel Foucha
f1339b864d
Merge azure refresh fix from python-base 2019-10-09 13:18:10 -04:00
Kubernetes Prow Robot
6b65461312
Merge pull request #170 from fooka03/bugfix/135_azure_refresh_token
Fix azure refresh token apiserver id
2019-10-09 09:29:50 -07:00
Nigel Foucha
0b208334ef
Dynamically load apiserver id from kube config 2019-10-09 11:37:40 -04:00
Kubernetes Prow Robot
2dfb303553
Merge pull request #975 from micw523/patch-1
Update py.test to pytest
2019-10-08 17:55:50 -07:00
Xianglong Wang
fa12fea2e4 Change py.test to pytest 2019-10-08 14:42:55 -05:00
Kubernetes Prow Robot
afd13018c4
Merge pull request #167 from oz123/replace-nose-with-pytest
Migrate to pytest
2019-10-02 14:20:07 -07:00
Oz Tiram
a4f249b48a Migrate to pytest
travis
2019-10-02 20:32:27 +02:00
Kubernetes Prow Robot
2b3fe30d24
Merge pull request #969 from goddenrich/support-false-and-missing-fields-config
support false values and missing fields in configs
2019-09-25 10:22:02 -07:00
Richard Godden
67bac5d22b support false values and missing fields in configs 2019-09-25 10:53:41 +01:00
Kubernetes Prow Robot
9f73cc68c1
Merge pull request #163 from goddenrich/kube-configs-with-no-contexts-clusters-users
Merging configs with missing fields
2019-09-24 14:55:57 -07:00
Kubernetes Prow Robot
c700068ed6
Merge pull request #161 from ganchurin/issue-954
Support false values in configuration file
2019-09-24 14:49:58 -07:00
Kubernetes Prow Robot
c31028949e
Merge pull request #966 from micw523/testfix116
Address API Changes Introduced in k8s v1.16
2019-09-24 14:35:58 -07:00
micw523
fd9de42bab Fix deprecations introduced in v1.16 2019-09-24 16:30:10 -04:00
Haowei Cai (Roy)
f2ae80b53a
Merge pull request #164 from fabianvf/explict-crd-apiversion
Use explicit API version for retrieving CRD API
2019-09-24 12:14:33 -07:00
Fabian von Feilitzsch
8ef5857bda Use explicit API version for retrieving CRD API 2019-09-24 09:41:24 -04:00
Kubernetes Prow Robot
6ca7a5b732
Merge pull request #157 from AyliD/patch-1
Update ws_client.py to support proxy
2019-09-23 18:39:25 -07:00
Richard Godden
7ce0198af2 default empty dict 2019-09-23 17:57:50 +01:00
Richard Godden
4ea69211e3 added test that should fail 2019-09-23 17:43:20 +01:00
Evgeniy Ganchurin
6dec044758 Issue-954 - Support false values in configuration file 2019-09-21 03:04:17 +03:00
Kubernetes Prow Robot
af42f24d72
Merge pull request #158 from qlemaire22/master
Check is not None in safe_get
2019-09-20 13:41:27 -07:00
Kubernetes Prow Robot
a05c3315f0
Merge pull request #956 from oz123/get_exit_code
Test getting the returncode of execution in a pod
2019-09-20 13:39:25 -07:00
Oz Tiram
752373b1f9 Test getting the returncode of execution in a pod
This tests demonstrate how to execute a command in a pod and
what behavior is expected. As discussed in the commit
bf367ed6ddc63369f76df0a07b248a6711328605 in python-base this
behavior would be familiar to Python users, as `subprocess.Popen`
has the same property.
2019-09-19 10:03:43 +02:00
Quentin Lemaire
a29bf292cc Add checks for None config file 2019-09-19 09:34:21 +02:00
Kubernetes Prow Robot
5092d96134
Merge pull request #160 from oz123/exit_code
Add property returncode to WSClient
2019-09-18 14:17:00 -07:00
Haowei Cai (Roy)
f4634711ec
Dummy change to trigger readthedocs build
trigger the build in https://readthedocs.org/projects/kubernetes/builds/ through the webhook integration
2019-09-17 17:06:02 -07:00
Oz Tiram
69570ac708 Add property returncode to WSClient
This will be familiar for Python users as subprocess.Popen has
the same attribute. Also, the behavior is such the returncode returns
a None value if the process was not run yet.

Other than that, when the process exists with a numerical code this will
be the value of the return code. If the command executed successfully
the return value will be 0.
2019-09-17 17:23:46 +02:00
Kubernetes Prow Robot
ceaf188498
Merge pull request #938 from scottilee/examples
#884: Cleanup examples folder
2019-09-13 17:14:40 -07:00