Commit Graph

578 Commits

Author SHA1 Message Date
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
Kubernetes Prow Robot
05c1a432d9
Merge pull request #816 from Ark-kun/patch-1
Fix broken dependencies.
2019-06-18 09:46:23 -07:00
Kubernetes Prow Robot
5e512ff564
Merge pull request #820 from scottilee/docs
Correct inconsistent spacing and typos
2019-04-27 09:04:21 -07:00
Scott Lee
89de1fa321 Correct inconsistent spacing and typos 2019-04-26 21:30:42 -07:00
Alexey Volkov
a579f15868
Fix broken dependencies.
All our libraries that depended on `kubernetes` started breaking today.
The reason is that pip does not do a good job properly resolving the compatible package versions.
It just install packages in order without caring about the incompatibilities.
The urllib3 package installed is incompatible with the `requests` package that's getting installed later.

Changing the order fixes the issue.
2019-04-22 18:09:08 -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
Kubernetes Prow Robot
7fb3a25176
Merge pull request #809 from axelsteingrimsson/add_email_scope_to_gcp_credentials_refresh_submodule
Updating Submodule for GCP Email Scope Addition
2019-04-09 10:00:45 -07: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
Kubernetes Prow Robot
6d4587e180
Merge pull request #804 from roycaihw/10.0.0-snapshot
Update python-base submodule and re-generated client to 10.0.0-snapshot
2019-04-03 18:42:48 -07:00
Haowei Cai
292b04b298 update changelog and readme in preparation for 10.0.0a1 2019-04-03 16:47:51 -07:00
Haowei Cai
b603b4a9c4 generated client change for 10.0.0-snapshot 2019-04-03 13:53:46 -07:00
Haowei Cai
f55d981346 update version constant for 10.0.0-snapshot 2019-04-03 13:03:29 -07:00
Haowei Cai
35c06bb509 update changelog for changes from python-base submodule 2019-04-03 12:58:51 -07:00
Haowei Cai
52ba6399c4 update python-base submodule 2019-04-03 10:25:21 -07:00
Kubernetes Prow Robot
1115bca657
Merge pull request #767 from micw523/yaml-rbac
Add Rbac support for creating from YAML
2019-04-01 16:46:35 -07:00
Kubernetes Prow Robot
6a4935e2ed
Merge pull request #797 from micw523/patch-2
Long term solution for using minikube in CI
2019-04-01 13:06:34 -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
micw523
0bdb65185d
Update minikube version to "latest" 2019-03-26 14:52:16 -05: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
0af22b1556
Merge pull request #789 from roycaihw/update-readme
update changelog and readme in master branch
2019-03-20 10:33:43 -07:00
Haowei Cai
d5b163bd97 update changelog and readme 2019-03-20 10:23:43 -07: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
Kubernetes Prow Robot
374233d05c
Merge pull request #779 from chowmean/proxy-header-option
Adding proxy headers options for configurations.
2019-03-15 15:26:57 -07:00
chowmean
8c9494ecf9 adding proxy headers settings for proxy_manager 2019-03-16 00:20:12 +05:30
Kubernetes Prow Robot
fcda6fe96b
Merge pull request #766 from Sai-Adarsh/master
Fixes Setup.py error on Windows #676
2019-02-20 13:45:37 -08:00
sai-adarsh
22db50ec7e Initial Commit
Initial Commit
2019-02-21 01:12:15 +05:30
Haowei Cai (Roy)
2c02595fa4
Merge pull request #668 from iamneha/adal
Fix: Make dependancy adal optional
2019-02-07 14:29:52 -08:00
Neha Yadav
3d125557c5 Make dependancy adal optional 2019-02-08 03:23:29 +05:30
Kubernetes Prow Robot
67d30a03fb
Merge pull request #748 from roycaihw/base-update
Update base module and regenerate client for 9.0.0b1
2019-02-07 11:11:29 -08:00
Haowei Cai
e35611ca62 remove patch backup 2019-02-06 17:20:12 -08:00
Kubernetes Prow Robot
7486e196b6
Merge pull request #746 from rlenferink/patch-owners
Updated OWNERS file to include link to docs
2019-02-06 15:53:38 -08:00
Haowei Cai
0ebe1663c0 Update changelog 2019-02-06 15:21:18 -08:00
Haowei Cai
1496a21b5e generated client change for 9.0.0b1 release 2019-02-06 15:20:25 -08:00