Commit Graph

416 Commits

Author SHA1 Message Date
Haowei Cai
72b03a81f9 generated client change 2022-05-02 11:59:00 -07:00
Haowei Cai
28025cbb8d generated API change 2022-05-02 11:58:59 -07:00
Patrick J McNerthney
7d0cd172bf It turns out SSL sockets can buffer data such that the select method is not aware of it. See:
https://docs.python.org/3/library/ssl.html#notes-on-non-blocking-sockets
  https://docs.python.org/3/library/ssl.html#ssl.SSLSocket.pending
2022-05-01 06:42:31 -10:00
Philipp Sontag
943b0e7444
Support setting the _request_timeout parameter for the dynamic client 2022-04-20 10:23:16 +02:00
Julien Eid
fe2546147c Set cwd to None if empty string for ExecProvider 2022-04-18 11:30:45 -04:00
Kubernetes Prow Robot
c66a39108b
Merge pull request #1738 from abikouo/fix_resource_field
fix issue when trying to build ResourceField with argument name 'self'
2022-03-28 09:39:23 -07:00
yida.hu
be5e61c29e Fix typo: kubenetes -> kubernetes 2022-03-28 19:52:37 +08:00
abikouo
3117c533b3 ResourceField class should allow defining any keyword
add unit tests
2022-03-07 10:00:03 +01:00
Yu Liao
ffceaa87d2 generated client change 2022-02-14 14:12:03 -08:00
Yu Liao
b227345fb2 generated API change 2022-02-14 14:12:02 -08:00
Yu Liao
bd5745ad1d generated client change for custom_objects 2022-02-14 14:12:02 -08:00
Venu Karnati
70ae7a8da8 Async fix for Dynamic Client 2022-02-09 15:52:02 -08:00
Kubernetes Prow Robot
36fc46196e
Merge pull request #1683 from dingyiyi0226/master
feat: add create from directory support
2022-02-01 10:43:42 -08:00
Haowei Cai (Roy)
1271465acd
Merge pull request #1672 from yliaog/master
removed submodule
2022-01-31 10:31:49 -08:00
Huan-Ting,Chen
c9e11d02b0 add e2e_test for create_from_directory 2022-01-21 16:33:57 +08:00
Huan-Ting,Chen
18fb9a0915 feat: add create from directory support 2022-01-21 16:33:45 +08:00
toto
5a2b926c16 Remove duplicate code in documentation 2022-01-15 11:35:22 +01:00
Yu Liao
9d176918a9 removed submodule 2022-01-07 16:17:39 -08:00
Yu Liao
6ae9260e9e Fixed test flakiness, added loop to wait for non-empty response line. 2022-01-04 12:14:02 -08:00
Yu Liao
26e6940d20 ApiregistrationV1beta1Api has been removed in 1.22 release, switch to
use ApiregistrationV1Api.
2022-01-04 11:27:47 -08:00
Yu Liao
443f4a5d07 generated client change 2022-01-04 09:43:10 -08:00
Yu Liao
1ee383e14a generated API change 2022-01-04 09:43:09 -08:00
Yu Liao
349f42aff2 generated client change for custom_objects 2022-01-04 09:43:09 -08:00
Yu Liao
41d4886c08 updated base to the latest (e2e test in python repo would fail w/o the
base update)
2021-12-15 12:02:32 -08:00
Kubernetes Prow Robot
18daad2607
Merge pull request #1650 from AurelienGasser/fix-returncode-idempotent
test: WSClient.returncode idempotence
2021-12-14 15:20:51 -08:00
John Sun
c1a14438b3 generated python-base update 2021-12-14 16:52:43 +11:00
Aurélien Gasser
a24d1be63d
add comment 2021-12-13 19:43:29 -05:00
Aurélien Gasser
8da0080c7d
test: WSClient.returncode idempotence 2021-12-13 19:31:22 -05:00
Yu Liao
9c3891d40e generated client change 2021-11-29 11:00:29 -08:00
Yu Liao
b8e0b3d083 generated API change 2021-11-29 11:00:28 -08:00
Yu Liao
d084739319 generated client change for custom_objects 2021-11-29 11:00:28 -08:00
Yu Liao
35a68b2e54 update version constants for 21.0.0-snapshot release 2021-11-29 10:59:46 -08:00
itaru2622
77ef217707 add no_proxy support to configuration and REST client. 2021-10-25 14:55:30 -07:00
Yu Liao
6d785aabd5 generated client change 2021-10-25 14:41:05 -07:00
Yu Liao
b0dbe417f2 generated API change 2021-10-25 14:41:04 -07:00
Yu Liao
1f2726d949 generated client change for custom_objects 2021-10-25 14:41:03 -07:00
itaru2622
0449056620 update python-base commithash 2021-10-19 07:35:25 +09:00
itaru2622
95a893cd1c add no_proxy support to configuration and REST client. 2021-10-19 07:19:14 +09:00
itaru2622
4f67f8a0c1 update python-base 2021-10-11 14:37:54 +09:00
Kubernetes Prow Robot
be51b01fbc
Merge pull request #1529 from hedrox/bug-rc-delete
Fix replication controller pods delete in tests
2021-10-08 18:36:37 -07:00
Andrei Marin
740cda6998
Fix replication controller pods delete in tests 2021-10-06 22:04:26 +03:00
Andrei Marin
4cb2a51021
Run autopep8 on e2e test files 2021-10-06 22:04:25 +03:00
Haowei Cai
7a45195166 generated python-base update 2021-09-19 18:16:38 -07:00
Haowei Cai
ba844599ab generated client change 2021-09-13 12:59:17 -07:00
Haowei Cai
c04e2f6ed0 generated API change 2021-09-13 12:59:16 -07:00
Scott Lee
4dec14919a Update release-18.0 submodule 2021-08-05 15:09:45 -06:00
Matt Campbell
13814c0f7e Allow optional list of YAML objects as param to create_from_yaml util 2021-07-19 14:23:14 -04:00
Huan-Ting,Chen
65a0ffc844 Fix empty yaml document error 2021-07-17 16:41:16 +08:00
Jason Price
ee0e332776 tolerate null sources on projected volumes
See issue 1494
Removes the false requirement that sources be a populated list
2021-06-21 13:21:20 -04:00
Nabarun Pal
4fd43bc909
Apply hotfixes
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-09 21:07:31 +05:30
Nabarun Pal
c55930bb50
Generate updated client 18.0.0-snapshot
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-09 21:07:31 +05:30
Nabarun Pal
73f119aa7a
Skipping TestClient::test_portforward_raw due to flakiness
The test is flaking a lot resulting in dev work to be slowed down.
This needs to be investigated and resolved. Only then, the test
should be reenabled.

See: https://github.com/kubernetes-client/python/issues/1300

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-05-28 22:49:17 +05:30
Haowei Cai
682dfa26d7 generated python-base update 2021-05-09 14:16:11 -07:00
abhiabhi94
44fe8bf1c2 Refactor utils
- move regex compilation to the top of the module to enable caching.
2021-03-10 08:15:32 +05:30
Chris Ayoub
fdd2e14c60 Update base submodule 2021-02-25 19:00:06 -05:00
Invictus17
a6655d6eba Adding symbolic link to base/leaderelection 2021-02-04 21:23:37 -05:00
Sumant
6eb9f7d9dc Adding module leaderelection from base 2021-02-01 17:03:44 -05:00
Sumant
bd26d85e84 Enable leaderelection 2021-01-28 18:50:23 -05:00
Haowei Cai
90931037ac pod e2e: wait for the default service account to be created 2021-01-12 17:18:42 -08:00
Haowei Cai
3b95adc8f3 configmap-e2e: use labels 2021-01-11 12:34:14 -08:00
Haowei Cai
5be9c893b3 update python-base submodule 2021-01-05 09:53:49 -08:00
Patrick J. McNerthney
fd405e813d Implement back end raw port test container using python. 2020-11-22 10:26:43 -10:00
Haowei Cai
a80b3f51a6
add a test for default configuration behavior 2020-11-07 16:10:09 +05:30
Fabian von Feilitzsch
0eb5f0f5e9
Add test to ensure kubernetes client threadpool is cleaned up 2020-11-07 16:10:09 +05:30
Nabarun Pal
56ab983036
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-11-07 16:10:09 +05:30
Nabarun Pal
f1cc695a6c
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-11-07 16:10:09 +05:30
Nabarun Pal
e842ec927b
Remove generated tests
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:09 +05:30
Nabarun Pal
598d41ba5f
Generate client 17.0.0
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:08 +05:30
Nabarun Pal
2910f25667
Update submodule
Old: fd322f70aa
New: 2da2b981ca

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-10-15 14:51:16 +05:30
Tao He
bbdfb73cdf Fixes for code format.
Signed-off-by: Tao He <sighingnow@gmail.com>
2020-09-24 10:08:33 +08:00
Tao He
9e534d021f Returns the created k8s objects in create_from_{dict,yaml}.
Signed-off-by: Tao He <sighingnow@gmail.com>
2020-09-24 02:34:59 +08:00
Dylan Shepard
8e1c331c71
updating base for file-like config load support 2020-09-09 10:45:13 -07:00
Andreas Unterkircher
32cb3f911f remove duplicate-lines from kubernetes/README.md 2020-09-09 08:32:59 +02:00
Patrick J. McNerthney
3da49a207c Update kubernetes/base to latest master with portforwarding implementation. 2020-09-08 16:11:37 -10:00
Patrick J. McNerthney
c1249c9cf2 Support both python 2.7 and 3.x. 2020-09-07 19:47:19 -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
49f3b6e0b5 Rework port forwarding unittest and example. 2020-09-07 07:54:47 -10:00
Patrick J. McNerthney
fada718edf Unittests and example for portforwarding ability added in python-base. 2020-09-01 18:32:48 -10: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
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
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
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
ACXLM
17dc22ed58 update python base 2020-06-26 12:23:41 +08:00
Shihang Zhang
f7d0f126b4 update python-base 2020-05-13 15:45:49 -07:00
Nabarun Pal
739665e677
Apply hotfixes 2020-04-03 01:47:30 +05:30
Nabarun Pal
c206745dcd
Generate updated client 2020-04-03 01:46:00 +05:30
Nabarun Pal
86f3a8ec96
Update the base submodule
CHANGELOG
---
- Logs are no longer unmarshalled when streaming [kubernetes-client/python-base#185](https://github.com/kubernetes-client/python-base/pulls/185)
2020-03-30 22:03:19 +05:30
dasydong
2f34a1ce94 Run spell check tools to fix typos:
gihub > github
hehavior > behavior
quanity > quantity
2020-03-24 15:53:59 +08:00
Kubernetes Prow Robot
1fa9f89c39
Merge pull request #1087 from roycaihw/watch-e2e
add basic watch configmap e2e test
2020-03-02 13:43:38 -08:00
Haowei Cai
f452d0cef6 add basic watch configmap e2e test 2020-03-02 13:34:01 -08:00
Nigel Foucha
4d1896cb52
Merge apiserver_id get fix from python-base 2020-02-23 14:04:23 -05:00
Fabian von Feilitzsch
13dffb8976 Add test to ensure kubernetes client threadpool is cleaned up 2020-02-06 12:55:39 -05:00
Fabian von Feilitzsch
18d21df367 Cleanup ThreadPool with atexit rather than __del__
This removes the __del__ function from the generated Python client,
and replaces it with a cleanup function. When a ThreadPool is created,
the cleanup function is registered with the atexit module.

This PR also allows the client to be used as a context manager, which
will automatically clean up after itself rather than having to wait til
process exit.

This fixes issue #1037, where the API client could hang indefinitely at
garbage collection.
2020-02-06 12:08:51 -05:00
Kubernetes Prow Robot
96766c2d59
Merge pull request #1035 from micw523/enable-dynamic
Enables the use of dynamic client
2020-01-06 10:16:17 -08:00
Kubernetes Prow Robot
3634a72ddc
Merge pull request #1007 from cclauss/patch-1
Use ==/!= to compare str, bytes, and int literals
2019-12-23 11:23:33 -08:00
Kubernetes Prow Robot
b871710b8b
Merge pull request #1036 from micw523/api
Fix deprecation warning in e2e tests
2019-12-18 14:27:12 -08:00
micw523
02232a2e22 Change apis to api 2019-12-18 15:38:27 -06:00
micw523
6a27be5cd2 enable dynamic client 2019-12-18 15:18:20 -06:00
micw523
5be6868304 Remove .swagger-codegen 2019-12-18 14:04:05 -06:00
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
Haowei Cai
b3164930dd turn on warning filter to print deprecation warning by default 2019-11-12 12:51:22 -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
778b25d87f update base submodule, update CHANGELOG and include CHANGELOG from 11.0.0a1 2019-11-11 12:02:38 -08:00
Nigel Foucha
f1339b864d
Merge azure refresh fix from python-base 2019-10-09 13:18:10 -04:00
Richard Godden
67bac5d22b support false values and missing fields in configs 2019-09-25 10:53:41 +01:00
micw523
fd9de42bab Fix deprecations introduced in v1.16 2019-09-24 16:30:10 -04: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
Julian Taylor
8b385a87dc add function to parse canonical quantities (e.g. resources)
This utility function is useful to parse values like the 200m or 300Gi
memory and cpu resources stored in kubernetes manifests.
It uses Decimal as output format as it usually represents typical input
values more accurately and reduces rounding errors.
2019-08-26 21:49:58 +02:00
Richard Godden
3f8d583ee0 update submodule to include parsing microseconds 2019-08-01 22:16:00 +01:00
Kubernetes Prow Robot
41971cc6ea
Merge pull request #888 from micw523/update-nginx
Deprecate extensions/v1beta1 deployment
2019-07-30 15:15:53 -07:00
Xianglong Wang
dd72deaec2 Deprecate extensions/v1beta1 deployment 2019-07-23 21:28:04 -04:00
Kubernetes Prow Robot
1ad4afff35
Merge pull request #824 from tnqn/verbose
Fix AttributeError in create_from_yaml
2019-07-23 12:48:14 -07:00
Oz N Tiram
e867c294bb Merge branch 'master' into util-improvements 2019-07-23 07:38:20 +02:00
Oz N Tiram
6100392c47 Add optional namespace to create_from_dict
This follows up on the addition to create_from_yaml, the behavior is the
same.
2019-07-23 05:33:40 +02:00
Oz N Tiram
ab002f760d Remove obsolete test
The current PR no longer support creating from string
2019-07-23 05:33:40 +02:00
Haowei Cai
8622ac4be4 generated client update for 10.0.0-snapshot 2019-07-01 15:20:01 -07:00
Haowei Cai
14f97fcdce update python-base submodule 2019-07-01 14:49:26 -07:00
Oz N Tiram
9e40421bcc create_from_yaml function deals with files only
Adding the ability to deal with strings containing yaml seems to repel
to much. So we stay with create_from_yaml with a bad name.

This removes the need fro StringIO to wrap strings.
Also note:

```
with open('foo.txt') as f:
    y = yaml.safe_load_all(f)

for i in y:
    print(i)

\# raises ValueError: I/O operation on closed file.
```

Hence, we indent the whole method body into the open block.

with open('foo.txt') as f:
    y = yaml.safe_load_all(f)
    for i in y:
        print(i)
2019-06-20 23:02:41 +02:00
Oz N Tiram
ed67d89f9b Remove un-necessary if block 2019-06-20 19:53:28 +02:00
Oz N Tiram
5c912f986f Throw exception from create_from_dict
This is instead of doing this in create_from_yaml
2019-06-20 18:37:58 +02:00
Oz N Tiram
4fa0e87bd7 Correct the documentation for create_from_dict
The function can create one or more Kuberenetes objects
based on the content of data. It can handle all API objects
incuding `List` type, which by itself can contain more than
one Kuberenetes API objects.
2019-06-20 14:30:27 +02:00
Oz N Tiram
34898387c3 Merge remote-tracking branch 'upstream/master' into util-improvements 2019-06-20 14:06:00 +02:00
Oz N Tiram
f6566ee5e6 Rename yml_document paramter and update documentation
Renaming `yml_document` in `create_from_dict` to data. This is a bit
 clearer that this it a data item and not a string (usually document
 read from the file system).
 Also update the documentation to describe better what the functions
 `create_from_dict` and `create_from_yaml` do.
2019-06-20 13:27:33 +02:00
Kubernetes Prow Robot
c86e4898fb
Merge pull request #782 from johscheuer/create-from-yaml-namespaced
Add method to dynamically set namespace in yaml files
2019-06-18 13:23:51 -07:00
Quan Tian
7ac1070077 Fix AttributeError in create_from_yaml
Some models don't have attribute 'status', like V1ConfigMap,
V1ClusterRole, and V1NetworkPolicy. AttributeError would be raised if
these resources are created via create_from_yaml with verbose enabled.

This patch checks if attribute 'status' exists before accessing it.
2019-05-03 10:41:00 -07:00
Oz N Tiram
139848efcb Relax pycodestyle: import only allowed at the top
While this is a really good convention, sometimes one must import
stuff inside a try except block. This block is still at the top, but pycodestyle
treats like it isn't, because it's in an idented block, and the outeer scope.
2019-04-09 23:42:01 +02:00
Oz N Tiram
38894cc397
Fix import for StringIO
This is embarrassing.
2019-04-09 23:03:02 +02:00
Oz Tiram
408d405704 Handle StringIO for Python2 properly 2019-04-09 22:51:54 +02:00
axelsteingrimsson
914b6aacf6 Updating Submodule for GCP Email Scope Addition 2019-04-09 10:20:59 +02:00
Oz Tiram
8d41478ed8 Explicitly use other deployment names for test
Using `nginx-app` deployment multiple times, is problematic because we get
conflicts or not found error.

Instead of trying to handle all cases, explicit different names
are used now. The tests now runs more reliably
2019-04-08 13:54:26 +02:00
Oz Tiram
2b83c683f8 Fix for a flaky test failing because k8s is slow
We create a deployment and do the following:

```
self.assertIsNotNone(dep)
```

Which does not fail, and then the code proceeds to deletion
and fails with a 404 execption in 80% of the time, but sometimes
it works. The deployment is there, but for some reason not available for
deletion.
Travis CI also showed inconsitent behaviour on this. Python3.5 passed
but all other version failed.
With this commit we wait for the deployment to become available for
deletion and only then continue.
2019-04-08 13:17:25 +02:00
Johannes M. Scheuermann
80339ef3f7 Add more documentation to new namespace parameter 2019-04-08 07:52:01 +02:00
Oz Tiram
0779fc9c66 Fix collection of execptions when applying yaml
This fixes of all tests and keeps the original API.

 It's the users responsiblility to do something the execptions
 when using `create_from_dict`, no air bag or breaks are supplied here.
2019-04-05 08:20:57 +02:00
Oz Tiram
18f45c9cec Fix wrong import name 2019-04-05 06:30:43 +02:00
Oz Tiram
50ef8746a9 Merge branch 'master' into util-improvements 2019-04-05 00:23:34 +02:00
Haowei Cai
b603b4a9c4 generated client change for 10.0.0-snapshot 2019-04-03 13:53:46 -07:00
Haowei Cai
52ba6399c4 update python-base submodule 2019-04-03 10:25:21 -07:00
Oz Tiram
cee4e49eda Rename create_from_map to create_from_dict, add tests 2019-03-26 23:54:34 +01:00
Oz Tiram
aa28bc7067 Allow create from string or from dict
This is a fix for #722
2019-03-26 23:26:08 +01:00
Johannes M. Scheuermann
15d36c9688 Use optional parameter for method 2019-03-26 21:45:14 +01:00
Johannes M. Scheuermann
06776ced35 Rebase code and add namespaced method 2019-03-25 16:17:12 +01:00
Xianglong Wang
9b989ddc2d Add rbac support for yaml 2019-03-20 17:54:33 -05:00
Kubernetes Prow Robot
84c057bfac
Merge pull request #673 from micw523/yaml-list
Extend YAML load functionality to *LIST and multi-resources
2019-03-19 13:22:24 -07:00
micw523
c0f71c3ba6 Add list / multi resource support 2019-03-19 00:36:32 -05:00
chowmean
8c9494ecf9 adding proxy headers settings for proxy_manager 2019-03-16 00:20:12 +05:30
Haowei Cai
e35611ca62 remove patch backup 2019-02-06 17:20:12 -08:00
Haowei Cai
1496a21b5e generated client change for 9.0.0b1 release 2019-02-06 15:20:25 -08:00
Haowei Cai
af3f77fed9 update python-base submodule 2019-02-06 15:09:47 -08:00
Kubernetes Prow Robot
ed18ea8d70
Merge pull request #724 from xvello/xvello/safe-yaml
Update python-base ref to include yaml security fix
2019-01-14 11:58:46 -08:00
Xavier Vello
fb73617f61 Update python-base ref to include yaml security fix 2019-01-09 11:27:33 +01:00
ramnes
3240b45c46 Use yaml.safe_load
See #718 for rationale.
2019-01-09 10:10:48 +01:00
Haowei Cai
cd411d2707 generated client change for 9.0.0-snapshot version constant update 2018-12-07 16:43:15 -08:00
Haowei Cai
524b0f7b11 Update python-base submodule 2018-12-07 16:34:29 -08:00
k8s-ci-robot
4d4ce21265
Merge pull request #677 from micw523/track-utils
Track utils with pycodestyle
2018-11-02 14:56:14 -07:00
Xianglong Wang
725687038f Add codestyle tracking, fix codestyle 2018-11-02 16:00:47 -05:00
Haowei Cai
c09023843c Update python-base submodule, pick up change:
use pycodestyle as pep8 has been deprecated (rename)
2018-11-01 16:06:11 -07:00
micw523
5a92ba65aa Add kubectl create -f feature 2018-10-31 19:34:18 -05:00
Haowei Cai
9484a106f2 generated snapshot client for 8.0.0b1 release
against kubernetes 1.12.1 release (temp 1.12.2 openapi spec)
2018-10-15 14:58:13 -07:00
Haowei Cai
8b36900ba9 Update python-base submodule
to pick up changes:
- Replace encodestring and decodestring for standard_b64encode and standard_b64decode
- Update ExecProvider to use safe_get(); Update unit tests to use ConfigNode() instead of dict()
2018-10-15 13:45:14 -07:00
Haowei Cai
316509b32a generated client change for 8.0.0 snapshot on master branch
against kubernetes release-1.12 branch
2018-09-28 14:16:18 -07:00
Haowei Cai
c63c069ca8 Update python-base submodule
in preparation for 8.0.0a1 release.
Changes picked:
  - fix: read config data with bytes (python3)
2018-09-28 12:58:32 -07:00
Will Thames
1de41f1c8b Update python-base to latest for exec-based clients
Include https://github.com/kubernetes-client/python-base/pull/75
2018-09-08 13:07:11 +10:00
Haowei Cai
17db994abc generated client update
pick up change in kubernetes-client/gen: add custom object status
and scale api.
2018-08-13 18:16:44 -07:00
Haowei Cai
34bbe6988a Update python-base, CHANGELOG and README
pick up python-base change: Add support for refreshing Azure tokens.
update CHANGELOG and README to prepare for 7.0.0 release.
2018-08-13 17:36:35 -07:00
Haowei Cai
20c782da57 Update python-base submodule
Add Azure support to authentication loading
2018-07-23 11:01:50 -07:00
Haowei Cai
b10c7b6a17 Rename parameter async into async_req to support Python 3.7
as Python 3.7 treats async as a reserved keyword.
2018-07-11 14:28:45 -07:00
Haowei Cai
5f81a65909 Generated client change for Kubernetes 1.11 2018-07-11 13:31:26 -07:00
Haowei Cai
fd1d1d1eea Update python-base submodule to pick up:
remove required idp-certificate-authority-data in kubeconfig for oidc
token refresh;
Watch properly decodes resourceVersion from custom object response.
2018-07-10 12:21:03 -07:00
Haowei Cai
46a0e10d8c Update python-base submodule 2018-04-10 16:20:56 -07:00
Haowei Cai
a5ad719bcf Fix e2e test to reflect service storage refactoring 2018-03-12 15:21:38 -07:00
Haowei Cai
71b5abce5a Generated API change for kubernetes 1.10 2018-03-12 11:11:47 -07:00
Haowei Cai
003f933df4 Update python-base submodule 2018-03-09 13:08:29 -08:00
Haowei Cai
f603fd6fad Generated API change for v6.0.0b1
add PATCH to custom_objects_api
documentation update: never let cluster-scoped resources skip webhooks
2018-03-09 11:09:40 -08:00
Haowei Cai
9bcdc2bbb7 Update python-base submodule 2018-02-12 17:24:54 -08:00
Haowei Cai
ed052519da Update org and repo name 2018-01-26 15:41:55 -08:00
Haowei Cai (Roy)
12d0bcb04a
Merge branch 'master' into master 2018-01-26 14:03:35 -08:00
Haowei Cai (Roy)
87a8354c3d
Merge branch 'master' into master 2018-01-26 13:49:29 -08:00
Haowei Cai
3abfdf9ebd Update master to kubernetes 1.9 2018-01-26 13:44:27 -08:00
Haowei Cai
284e9d05bf Api change v1beta2 adding required controller spec selector fields 2018-01-25 15:29:54 -08:00
Jeremy Dartigalongue
f91732612c Update python-base 2018-01-16 21:41:06 +00:00
Yu Liao
e5ea1cf223 api change V1PersistentVolumeSpec to V1ScaleIOPersistentVolumeSource 2017-11-17 17:19:45 -08:00
mbohlool
7c1819373f Change IntOrString field types from string to object 2017-10-17 07:52:35 -07:00
mbohlool
6b1a80c67f Updte master to kubernetes 1.8 2017-10-09 17:56:32 -07:00
mbohlool
19359213b5 Update CHANGELOGS and final touch ups 2017-10-09 17:32:19 -07:00
mbohlool
1d27f7e71b Fix end to end tests 2017-10-09 17:15:34 -07:00
mbohlool
789e37464b Fix (hack) rest client for patch 2017-10-09 17:15:34 -07:00
mbohlool
bc2aac4897 Update base to get fixes to utility functions because of using new generated client 2017-10-09 17:15:05 -07:00
mbohlool
4782543825 Remove config, apiClient, and restClient from ignore list of swagger-codegen and regenerate client using HEAD of the generator 2017-10-09 17:15:05 -07:00
mbohlool
63d667a45e Update generated client first 2017-10-09 17:15:04 -07:00
mbohlool
27ba35aa81 Use stream module to call exec/attach calls 2017-09-22 11:42:59 -07:00
mbohlool
55ef46b6cf Update base to latest commit with stream module added 2017-09-22 11:42:59 -07:00
Jochen Breuer
3b66dde057 Changes from update-client.sh 2017-08-16 08:11:47 +02:00
Jochen Breuer
1054f10c6d Introducing __version__ and __project__ variables
Version information comes from scripts/constants.py and is hard-coded to
kubernetes/__init__py by scripts/update-client.sh.

__project__ is just hard-coded.

Fixes #317
2017-08-16 08:11:47 +02:00
mbohlool
b4f852a9d9 update generated client to get https://github.com/kubernetes/kubernetes/pull/49357 2017-08-10 17:33:39 -07:00
Jean Raby
c3d3ea82d2 Support for v4 stream protocol
- Set Sec-WebSocket-Protocol header from cfg param
- Add ERROR and RESIZE websocket channels
  As defined in pkg/kubelet/server/remotecommand/websocket.go
- Adjust tests to show v4 behavior wtr to status message
- Tweak read_all() to return only data from stdout and stderr.
2017-07-26 15:31:25 -04:00