Patrick J. McNerthney
c1249c9cf2
Support both python 2.7 and 3.x.
2020-09-07 19:47:19 -10:00
Patrick J. McNerthney
d9ec734a6c
Fix tox errors.
2020-09-07 18:22:10 -10:00
Patrick J. McNerthney
8afcebdf8d
Add test that checks for portforward port error return value.
2020-09-07 13:11:50 -10:00
Patrick J. McNerthney
2e86b71334
Better handling of error channel reponse, and comment typo.
2020-09-07 13:06:44 -10:00
Patrick J. McNerthney
ce3a1a298a
Rework loop which collects the local python sockets for read and writing.
2020-09-07 11:56:01 -10:00
Patrick J. McNerthney
49f3b6e0b5
Rework port forwarding unittest and example.
2020-09-07 07:54:47 -10:00
Patrick J. McNerthney
7bf04b384b
Rework how the PortForward._proxy thread determines when and how to terminate.
2020-09-06 09:25:58 -10:00
Patrick J. McNerthney
72e372599d
Rework the parsing of the requested ports to support both a local port and a remote port.
2020-09-01 18:33:33 -10:00
Patrick J. McNerthney
fada718edf
Unittests and example for portforwarding ability added in python-base.
2020-09-01 18:32:48 -10:00
Patrick J. McNerthney
cc9ae10549
Address the following PR issues:
...
* Rename `_Port.error` to be `_Port.error_channel`.
* Correct comment about where setsockopt is being called.
* Add comments clarifying why the double call to the same methods to setup channel information.
* Allow for ports specified with both local and remote port numbers.
2020-08-31 15:53:59 -10:00
Dylan Shepard
f85a41fa31
renaming functions and setting to internal
2020-08-31 12:01:11 -07:00
Patrick J. McNerthney
74d0e292b8
Implement port forwarding.
2020-08-28 13:55:00 -10:00
Kubernetes Prow Robot
471a67844e
Merge pull request #211 from iciclespider/refactor-for-port-forward
...
Refactor stream package to enable common method helpers for other streaming api classes.
2020-08-28 15:45:19 -07:00
Patrick J. McNerthney
a00ed7f87a
Put extracting the "configuration" back into the stream.py module, and use
...
functools.partial to orchestrate calling the websocket request hanlder.
2020-08-27 16:10:11 -10:00
Patrick J. McNerthney
fd62214e28
Refactor stream package to enable common method helpers for other streaming api classes.
2020-08-26 18:27:56 -10:00
Dylan Shepard
aac4e35ca9
correcting tests
2020-08-19 12:49:33 -07:00
Dylan Shepard
f65f06b1ed
commiting changes to branch
2020-08-19 12:36:32 -07:00
Scott Lee
482b8558ac
Update release README
2020-08-05 23:52:56 -07:00
Scott Lee
a1db8670c8
Remove redundant release doc
2020-08-03 11:40:39 -07:00
Kubernetes Prow Robot
b5603d8ee2
Merge pull request #1220 from greed42/plugin-certificates
...
Kubernetes Python Client - Validation / build (2.7) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.5) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.6) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.7) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.8) (push) Has been cancelled
Update python base
2020-07-30 11:59:06 -07:00
Graham Reed
5424e17c85
Update python base
...
To get auth plugin support for client certificates, ref. kubernetes-client/python-base#205
2020-07-30 18:22:48 +01:00
Kubernetes Prow Robot
54d188f89e
Merge pull request #205 from greed42/plugin-certificates
...
Accept client certificates from an authn/authz plugin
2020-07-29 19:42:31 -07:00
Kubernetes Prow Robot
ab61ca3c27
Merge pull request #201 from Akasurde/kube_config_no_obj_fix
...
FileOrData: Handle None object
2020-07-29 09:39:47 -07:00
Graham Reed
b85aff2b3e
Accept client certificates from an authn/authz plugin
...
(Plugin interface reference: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#input-and-output-formats )
When handling the response from the authn/authz plugin, `token` will be used if provided, which maintains current behaviour. Newly added is handling `clientCertificateData`: if it is present, that certificate (and its key) will be used as provided by the plugin. (And any certificate/key pair provided via the `users` section of the configuration file will be ignored.)
2020-07-23 10:31:30 +01:00
Kubernetes Prow Robot
442ebc0190
Merge pull request #1204 from palnabarun/update-upstream-1-16-14
...
Update upstream version to 1.16.14
2020-07-20 09:58:52 -07:00
Nabarun Pal
22555d9fa5
Update upstream version to 1.16.14
...
There has been no API changes between 1.16.11 and 1.16.14
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-20 22:07:30 +05:30
Kubernetes Prow Robot
bc79976edf
Merge pull request #1188 from palnabarun/update-openapi-generator
...
Update OpenAPI generator and the client
2020-07-20 09:06:51 -07:00
Nabarun Pal
08ed6c24fb
Collate OpenAPI generator changes by version
...
The changes have been listed in the CHANGELOG and linked to the
respective milestone pull requests.
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-19 12:33:00 +05:30
Nabarun Pal
2a664669bc
Update CHANGELOG with latest changes from python-base
...
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-19 12:33:00 +05:30
Nabarun Pal
9a20c56cd5
Updates python-base submodule
...
Update from 49ec06096e to fb86b8acb6
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-17 04:06:00 +05:30
Kubernetes Prow Robot
fb86b8acb6
Merge pull request #204 from palnabarun/fix-watch-py2-compatibility
...
Fix a Python 2 compatibility issue
2020-07-16 09:59:41 -07:00
Nabarun Pal
b68ca30551
Fixes codestyle failures
...
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 14:08:44 +05:30
Nabarun Pal
a54f404366
Fix a Python 2 compatibility issue
...
PR #133 introduces the usage of `http` module for checking the status
code for `GONE` HTTP status. However, this doesn't work in Python 2.7.
This commit checks if the interpreter is Python 2 and imports the
status code from `httplib` module instead and unifies the approach
to the checks.
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 14:05:04 +05:30
Nabarun Pal
47768af136
Update the hotfix script
...
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
da2579a56e
Update CHANGELOG with changes from python-base submodule
...
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
dae8285878
Cherry pick test for API client context manager
...
The implementation and tests were already picked up by the upstream OpenAPI
generator [here](https://github.com/OpenAPITools/openapi-generator/pull/5094 ).
Patching in the tests here for correctness and clarity.
Reference: https://github.com/kubernetes-client/python/pull/1073
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
146119213c
Add kubernetes.client.apis as an alias to kubernetes.client.api
...
Reference: https://github.com/kubernetes-client/python/issues/974
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
b78f5cfd6e
Fix custom objects API to preserve backward compatibility
...
Reference:
- [#866 ](https://github.com/kubernetes-client/python/issues/866 )
- [#959 ](https://github.com/kubernetes-client/python/pull/959 )
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
dea6754f9f
Update CHANGELOG
...
The upstream 1.16 API moved ahead due to [patch releases](https://github.com/kubernetes/sig-release/blob/master/releases/patch-releases.md ).
The logs are gathered from the upstream [CHANGELOG](https://raw.githubusercontent.com/kubernetes/kubernetes/master/CHANGELOG/CHANGELOG-1.16.md ).
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
ec9c944f07
Remove tests since they have syntactical issues and are noop
...
Reference: https://github.com/OpenAPITools/openapi-generator/issues/5377
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:39 +05:30
Nabarun Pal
b4d11b02a3
Update client with OpenAPI generator v4.3.0
...
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:39 +05:30
Kubernetes Prow Robot
7fc2c315c8
Merge pull request #202 from roycaihw/fix/add-old-token
...
Add old api_key to set auth attributes
2020-07-16 01:03:41 -07:00
Haowei Cai
a7c78291bf
add old api_key to set auth attributes
2020-07-16 00:38:24 -07:00
Kubernetes Prow Robot
ded3d12e04
Merge pull request #133 from mitar/retry-watch
...
Retry expired watches
2020-07-15 12:30:37 -07:00
Mitar
06e48c585c
Retry watch if request expires.
2020-07-15 12:27:32 -07:00
Abhijeet Kasurde
a270ea2946
FileOrData: Handle None object
...
Return when object is None in FileOrData class
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-07-02 23:04:48 +05:30
Kubernetes Prow Robot
e60d9212c6
Merge pull request #1194 from ACXLM/update-python-base
...
update python base
2020-06-29 15:45:59 -07:00
ACXLM
17dc22ed58
update python base
2020-06-26 12:23:41 +08:00
Kubernetes Prow Robot
3ea80032c3
Merge pull request #198 from ACXLM/fix/load-kube-config
...
fix cfg is none, load kube config error
2020-06-25 10:10:38 -07:00
ACXLM
30d9e2af1c
change test case
2020-06-25 20:53:29 +08:00