Kubernetes Prow Robot
f0fa950bb2
Merge pull request #272 from AurelienGasser/fix-returncode-idempotent
...
fix: WSClient.returncode not idempotent
2021-12-14 13:54:50 -08:00
Aurélien Gasser
79e066a0d4
fix: WSClient.returncode not idempotent
2021-12-13 19:32:32 -05:00
Kubernetes Prow Robot
06191d3214
Merge pull request #268 from jsun-splunk/scaling-k8s
...
Use select.poll() for exec on linux/darwin
2021-12-13 16:06:02 -08:00
Kubernetes Prow Robot
4f761d3e4c
Merge pull request #267 from tdihp/pr-leaderelection-example
...
Fix leaderelection/example.py, now works in package.
2021-11-30 11:39:01 -08:00
John Sun
18828d92cc
Use select.poll() for exec on linux/darwin
2021-11-30 11:57:10 +11:00
Kubernetes Prow Robot
b9cc79e17a
Merge pull request #250 from twitter-forks/emenendez/741
...
Refresh exec-based API credentials when they expire
2021-11-29 16:36:56 -08:00
Ping He
bc697ae8f0
Fix leaderelection/example.py, now works in package.
...
Signed-off-by: Ping He <tdihp@hotmail.com>
2021-11-24 15:14:10 +08:00
Kubernetes Prow Robot
a66f8df1df
Merge pull request #266 from WalkerWang731/master
...
[config] Add a new method of config.kube_config.new_client_from_config_dict
2021-11-17 10:37:54 -08:00
WalkerWang731
8b306c0f57
add a new method of config.kube_config.new_client_from_config_dict
...
Signed-off-by: WalkerWang731 <wxy1990731@hotmail.com>
2021-11-17 16:53:43 +08:00
Kubernetes Prow Robot
3aa8b4c942
Merge pull request #262 from aagten/bugfix/windows-proof-sockets
...
Make socket Windows-proof
2021-11-09 19:57:26 -08:00
aagten
d47030ac83
Make socket Windows-proof
2021-11-09 21:41:53 +01:00
Kubernetes Prow Robot
09dbbe521e
Merge pull request #260 from itaru2622/no_proxy
...
add no_proxy support to websocket client
2021-10-18 15:21:21 -07:00
itaru2622
4ef4139e77
add no_proxy support to stream/ws_client.py
2021-10-19 07:09:57 +09:00
Kubernetes Prow Robot
51460f46c0
Merge pull request #258 from DiptoChakrabarty/kube_config
...
closes open file descriptors to prevent leaks
2021-10-15 10:16:56 -07:00
Kubernetes Prow Robot
298f21a9f0
Merge pull request #251 from jamesgetx/fix_to_dict
...
fix: field extra_args recursive growth caused by Resource and Subreso…
2021-10-15 10:08:55 -07:00
Kubernetes Prow Robot
6023e110de
Merge pull request #253 from schneesu/fix_unsuitable_raise
...
fix: ignore NotFoundError in the first call of LazyDiscoverer. __search
2021-10-15 09:16:55 -07:00
DiptoChakrabarty
95e2e85af5
closes open file descriptors to prevent leaks
2021-10-15 19:14:37 +05:30
Kubernetes Prow Robot
21f1d7f463
Merge pull request #254 from abikouo/me/server_side_apply
...
add support for server side apply
2021-10-10 20:12:36 -07:00
Kubernetes Prow Robot
5756b94e4c
Merge pull request #257 from itaru2622/fix_proxy_auth_typo
...
fix typo in proxy auth (stream/ws_client.py)
2021-10-10 18:54:37 -07:00
itaru2622
f23b2840f8
fix typo in proxy auth (stream/ws_client.py)
2021-10-10 11:48:30 +09:00
Kubernetes Prow Robot
0052a6862d
Merge pull request #256 from itaru2622/proxy_auth
...
add proxy authentication supporting for websocket (stream/ws_client.py)
2021-10-08 18:28:36 -07:00
itaru2622
59e7d115b2
change base64decode to urlsafe_b64decode
2021-10-09 09:36:28 +09:00
itaru2622
8777271109
proxy authentication supporting for websocket (stream/ws_client.py), with unittest
2021-10-05 23:13:49 +09:00
itaru2622
769bc57ec7
add proxy authentication supporting for websocket (stream/ws_client.py)
2021-10-02 04:12:02 +09:00
abikouo
281f17ab23
add support for server side apply
2021-09-29 11:53:43 +02:00
schneesu
c040d87bd8
fix: ignore ResourceNotFoundError in the first call of LazyDiscoverer.__search
2021-09-28 10:05:17 +08:00
jamesgetx
bd944a58a3
fix: field extra_args recursive growth caused by Resource and Subresource to_dict method when cache with CacheDecoder
2021-09-16 19:49:29 +08:00
Kubernetes Prow Robot
b0afc93ffa
Merge pull request #241 from piglei/enhance-body-serialization
...
Make duck-typing checking in `serialize_body` method more restrictive
2021-09-15 19:03:45 -07:00
Eric Menendez
70b78cd848
Refresh exec-based API credentials when they expire
...
This is a fix for kubernetes-client/python#741 .
As described in kubernetes-client/python#741 , some of the authentication schemes supported by Kubernetes require updating the client's credentials from time to time. The Kubernetes Python client currently does not support this, except for when using the `gcp` auth scheme. This is because the OpenAPI-generated client code does not generally expect credentials to change after the client is configured.
However, in OpenAPITools/openapi-generator#3594 , the OpenAPI generator added a (undocumented) hook on the `Configuration` object which provides a method for the client credentials to be refreshed as needed. Now that this hook exists, the `load_kube_config()` function, used by the Kubernetes API to set up the `Configuration` object from the client's local k8s config, just needs to be updated to take advantage of this hook.
This patch does this for `exec`-based authentication, which should resolve kubernetes-client/python#741 .
Also, as noted above, `load_kube_config()` already has a special-case monkeypatch to refresh GCP tokens. I presume this functionality was added before the OpenAPI generator added support for the refresh hook. This patch also refactors the GCP token refreshing code to use the new hook instead of the monkeypatch.
Tests are also updated.
2021-09-03 15:53:25 -06:00
piglei
66a45cd081
Make duck-typing in serialize_body method more restrictive
2021-08-23 14:48:24 +08:00
Kubernetes Prow Robot
dd15ac6263
Merge pull request #244 from hedrox/bug-rc-delete
...
Fix replication controller pods delete in tests
2021-08-15 14:41:46 -07:00
Kubernetes Prow Robot
6b0104ffb9
Merge pull request #247 from gravesm/dry-run
...
Add support for dryRun parameter
2021-08-05 10:21:22 -07:00
Kubernetes Prow Robot
a0d4a31edc
Merge pull request #243 from hedinasr/master
...
Add watch_stop to DynamicClient
2021-08-04 11:11:17 -07:00
Kubernetes Prow Robot
9bf29f73d4
Merge pull request #248 from fabianvf/add-fabian-owners
...
Add fabianvf to reviewers
2021-07-29 14:21:19 -07:00
Fabian von Feilitzsch
b0b0ddeedc
Add fabianvf to reviewers
2021-07-29 16:56:44 -04:00
Hedi Nasr
59ba58b494
Add the ability to stop the watcher gracefully.
2021-07-28 21:18:12 +02:00
Mike Graves
cbb71698d7
Add support for dryRun parameter
2021-07-26 13:23:57 -04:00
Andrei Marin
6f9e3327a8
Fix replication controller pods delete in tests
2021-07-20 21:33:30 +03:00
Kubernetes Prow Robot
62366eecf3
Merge pull request #246 from david0/fix-load-config
...
Fix load_config: expand ~
2021-07-12 10:28:48 -07:00
David Otto
e2ba3fb9fc
do expanduser in load_config
2021-07-12 11:21:13 +02:00
David Otto
dca0ca6df2
Fix load_config: expand ~
2021-07-07 12:54:38 +02:00
Kubernetes Prow Robot
0d4f822f4f
Merge pull request #221 from MoShitrit/m3e-issue-1005
...
Add load_config method which allows a more generic way to load the kubeconfig
2021-06-22 12:18:10 -07:00
Moshe Shitrit
6d1c8d3713
Apply suggestion
2021-06-19 17:42:37 +03:00
Kubernetes Prow Robot
d25434b5a9
Merge pull request #238 from Priyankasaggu11929/psaggu-drop-python2-support
...
drop python2 support
2021-05-17 11:55:30 -07:00
Priyanka Saggu
711d4ab880
drop python2 support
...
- remove python2 from the .travis.yaml file
- remove python2 from the tox.ini file
- remove `-y` flag from `isort` command in `update-pycodestle.sh` script
- add update-pycodestyle, coverage & codecov tests for python3
Signed-off-by: Priyanka Saggu <priyankasaggu11929@gmail.com>
2021-05-18 00:03:38 +05:30
Kubernetes Prow Robot
b4d3aad42d
Merge pull request #236 from Yashks1994/header-patch1
...
Support customizing “Accept” header #1428
2021-05-06 17:39:02 -07:00
Yash Kumar Singh
bde3935f26
Support customizing “Accept” header and added a testcase to test custom header
2021-05-07 05:52:23 +05:30
Kubernetes Prow Robot
4d192041bf
Merge pull request #237 from jonasdlindner/stream_typo
...
rename method _websocket_reqeust to _websocket_request
2021-05-02 13:34:01 -07:00
jonasdlindner
90e16c698e
Rename Method _websocket_reqeust to _websocket_request
2021-04-30 23:53:25 +02:00
Kubernetes Prow Robot
8a969ee9ad
Merge pull request #235 from roycaihw/add-pr-template
...
add PR template to python-base
2021-04-20 17:48:10 -07:00