Commit Graph

173 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
7e7976b9ff
Merge pull request #171 from Ark-kun/patch-1
Fixed Watch.unmarshal_event when data is not a JSON-serialized object
2020-02-21 14:08:48 -08:00
Kubernetes Prow Robot
ff9a5f35a1
Merge pull request #169 from jfrabaute/save
config: Fix persist_config flag and function calls
2020-02-21 13:36:47 -08:00
Kubernetes Prow Robot
a25f49eb41
Merge pull request #152 from sergei-maertens/master
Refs. #151 -- detect binary payloads and send the correct opcode
2020-02-13 17:08:17 -08:00
Fabrice Rabaute
64662bb738
config: Fix persist_config flag and function calls
The persist_config flag was setting the kwargs['config_persister'] to
the result of the function kcfg.save_changes and not the function
kcfg.save_changes itself.

Once this is fixed, the second problem was that the function was called
with an argument when it's defined without argument so an exception was
raised.
2020-01-14 14:23:16 -08:00
Kubernetes Prow Robot
7ea5cb4d76
Merge pull request #175 from jfrabaute/cmdpath
Add option to refresh gcp token when config is cmd-path
2020-01-08 11:37:40 -08:00
Fabrice Rabaute
39113de2aa
Add option to refresh gcp token when config is cmd-path 2020-01-08 11:28:23 -08:00
Kubernetes Prow Robot
278105efc6
Merge pull request #178 from rawler/optional-capture-all
stream+ws_client: Optional capture-all
2020-01-06 12:16:16 -08:00
Ulrik Mikaelsson
368d0d7b1e ws_client: Add option to disable capture-all 2019-11-27 13:45:52 +01:00
Ulrik Mikaelsson
ced17c6881 stream/ws_client: Use StringIO for WSClient._all
bytes() += bytes() copies both buffers into a new one, causing exponential
cost and gradual slow-down. Replacing with StringIO improves that
2019-11-27 13:45:52 +01: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
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
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
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
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
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
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
4c1ab55553
Merge pull request #155 from oz123/remove-shebangs
Remove all shebangs from Python modules and checker
2019-08-29 13:06:58 -07:00
AyliD
34f3d05c84
Update ws_client.py to support proxy 2019-08-29 07:46:40 +03:00
Oz N Tiram
c941d74b37 Remove all shebangs from Python modules and checker
As discussed, Python modules which aren't intended to be invoked
as scripts should not include a shebang line.

Update CONTRIBUTING.md and the checker script.
This script now includes a list SKIP_FILES for files that
should not be checked for boilerplate template.
The tests will now fail if a Python module has a shebang line.
Scripts which should have a shebang line and exists in the directory
`hack` can be ignored by adding them to the SKIP_FILES list.
2019-08-27 22:18:52 +02:00
Sergei Maertens
382707436f Refs. #151 -- detect binary payloads and send the correct opcode
On Python 2, strings are bytestrings either way. On Python 3, the
result of `chr(channel)` is `str`, while the data itself is
`bytes`. The channel prefix needs to be turned into a binary type,
and the websocket frame needs the correct opcode (binary vs. text).

See #151 for the bug report and related issues.
2019-08-14 11:29:03 +02:00
Kubernetes Prow Robot
4b8e89f95d
Merge pull request #56 from fabianvf/dynamic-client
Dynamic Client
2019-08-12 11:01:13 -07:00
Fabian von Feilitzsch
53c4cb23a3 Add boilerplate 2019-08-09 21:38:40 -04:00
Fabian von Feilitzsch
5b21d65aae Add tests for dynamic client 2019-08-09 21:38:40 -04:00
Fabian von Feilitzsch
461a3bf7ce Add dynamic client 2019-08-09 21:38:26 -04:00
Kubernetes Prow Robot
ec31e05c90
Merge pull request #150 from goddenrich/fix-miliseconds-rfc3339-re
corrected regex to properly parse microseconds
2019-08-01 13:58:15 -07:00
Richard Godden
ca007f3672 parse microseconds 2019-08-01 21:49:32 +01:00
Kubernetes Prow Robot
4f7bcfaa91
Merge pull request #148 from micw523/patch-1
Remove sudo for Travis CI
2019-07-30 14:35:52 -07:00
micw523
e1f0bed5c0
Remove sudo for Travis CI 2019-07-30 17:11:45 -04:00
Kubernetes Prow Robot
06c26300bc
Merge pull request #145 from fabianvf/docutils-py3
Generate docs in python3
2019-07-24 10:44:15 -07:00
Fabian von Feilitzsch
7d98f28b68 Generate docs in python3 2019-07-24 13:22:06 -04:00
Kubernetes Prow Robot
95858d5ce8
Merge pull request #141 from rogerhmar/fix_issue_84
Fix issue 84: Update _load_azure_token to hande str and int
2019-07-08 16:06:02 -07:00
Kubernetes Prow Robot
8b748a70de
Merge pull request #127 from oz123/drop-python-34
Drop Python3.4
2019-07-08 12:08:35 -07:00
Roger Hoem-Martinsen
6edea7b245 shorten down long line 2019-07-03 09:29:31 +02:00
Roger Hoem-Martinsen
26e16d0c70 Add azure config tests 2019-07-03 09:14:38 +02:00
Roger Hoem-Martinsen
30bc425271 fix bug and add method azure is expired 2019-07-03 09:14:03 +02:00
Kubernetes Prow Robot
474e9fb322
Merge pull request #104 from saberuster/master
decode add a replace option
2019-06-20 17:10:36 -07:00