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
mbohlool
d518be4ad3
Update base submodule
2017-07-25 13:03:18 -07:00
yuvipanda
1d2369e15d
Submodule bump for kubernetes-client/python-base#18
2017-07-09 00:31:31 -07:00
Mehdy Bohlool
f6d80b06cf
Merge pull request #287 from dims/use-latest-localkube
...
Test with latest localkube version
2017-07-07 11:35:01 -07:00
Davanum Srinivas
ebb23b7ca1
Test with latest localkube version
...
Oops! we are using a really old version, let's switch over to v1.7.0
2017-07-07 13:41:12 -04:00
Mehdy Bohlool
917ec63d51
Support both TPR and CRD with custom objects spec ( #283 )
...
* Add ability to use local gen repo for testing
* Update generated client
2017-07-07 10:26:25 -07:00
Spyros Trigazis
afe706d63a
Remove oauth2client requirement ( #286 )
...
In #278 google-auth was added in requirements and in [1]
python-base stopped using it.
Remove oauth2client requirement and update submodule commit.
[1] https://github.com/kubernetes-client/python-base/pull/16
Related-Issue: #275
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2017-07-07 10:26:06 -07:00
mbohlool
5900a4c8c5
Fix Travis CI failure
2017-06-30 14:15:10 -07:00
mbohlool
ef558a5ce4
Update generated client
2017-06-29 01:34:59 -07:00
Ebbe Elsborg
b0bc0beac4
Generate client with 'name' and 'namespace' swapped for TPRs
2017-06-23 09:17:58 +02:00
Ebbe Elsborg
1849b1fe56
Generate client with 'version' parameter
2017-06-21 13:42:34 +02:00
Ebbe Elsborg
2e67319b97
Run update-client.sh
2017-06-21 13:42:34 +02:00
Sergi Almacellas Abellana
9cd0b3dc9a
Use urlparse to generate websocket url
...
Fixes #246
2017-06-15 09:30:37 +02:00
Sergi Almacellas Abellana
cf2e8408f5
Update submodule to user config fixes
...
Closes #236
2017-06-09 10:15:29 +02:00
mbohlool
8a3b2bae14
Update generated client for TPR fix
2017-05-21 22:58:45 -07:00
mbohlool
e7a257a9ee
Update client (only version changes)
2017-05-21 22:36:27 -07:00
mbohlool
5eee265f25
Update base submodule
2017-05-19 16:52:18 -07:00
mbohlool
23b0f8c008
Update generated client
2017-05-19 15:27:35 -07:00
mbohlool
8980d48039
Add kubernetes-client/python-base as submodule to this repo
2017-05-19 00:24:39 -07:00
mbohlool
dd30fe6a70
Remove base folder to prepare for submodule model
2017-05-19 00:21:35 -07:00