Commit Graph

164 Commits

Author SHA1 Message Date
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
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
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
Haowei Cai (Roy)
487c9182c8
Merge pull request #79 from bpicolo/fix_base64_padding_for_kconfig
Fix base64 padding for kube config
2019-06-19 15:46:02 -07:00
Kubernetes Prow Robot
1d5231cee6
Merge pull request #110 from axelsteingrimsson/add_email_scope_to_gcp_credentials_refresh
Add email scope to GCP provided credential refresh
2019-04-08 13:26:27 -07:00
Oz N Tiram
511243a341 Drop Python3.4
Python 3.4 has become EOL on March 18, 2019.

 https://www.python.org/dev/peps/pep-0429/
2019-04-05 21:21:04 +02:00
Ben Picolo
72a02cca50 Merge remote-tracking branch 'upstream/master' into fix_base64_padding_for_kconfig 2019-03-30 09:35:41 -04:00
Ben Picolo
b3ddbd903a Add tests for updated pieces 2019-03-30 09:23:03 -04:00
Kubernetes Prow Robot
5c03b3b237
Merge pull request #94 from tomplus/feat/merge-kubeconfigs
feat: merging kubeconfig files
2019-03-18 10:22:31 -07:00
Tomasz Prus
328b2d1245 feat: merging kubeconfig files 2019-03-15 23:42:43 +01:00
Kubernetes Prow Robot
c4de8bdf40
Merge pull request #93 from mitar/watch_and_logs
Making watch work with read_namespaced_pod_log
2019-03-14 15:33:31 -07:00
Mitar
972a76a83d Don't use break inside finally.
It swallows exceptions.
2019-02-20 23:56:38 -08:00