Commit Graph

28 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9775a1276b
Merge pull request #2216 from rkschamer/master
Adding utils.format_quantity
2025-01-29 07:45:24 -08:00
Chuck McAndrew
b40eaf279a Add ability to use server_side_apply to utils.create_from_yaml 2024-06-27 16:05:50 -07:00
Rene Kschamer
0f3f8eca8f add test_parse_quantity 2024-04-05 14:44:05 +02:00
Rene Kschamer
d1deeebf7e adding format_quantity tests 2024-04-05 14:43:37 +02:00
Ananya Nayak
54ee9e13cf test: add more assertions 2023-09-28 04:49:22 +00:00
Huan-Ting,Chen
c9e11d02b0 add e2e_test for create_from_directory 2022-01-21 16:33:57 +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
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
Matt Campbell
13814c0f7e Allow optional list of YAML objects as param to create_from_yaml util 2021-07-19 14:23:14 -04:00
micw523
fd9de42bab Fix deprecations introduced in v1.16 2019-09-24 16:30:10 -04: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
ab002f760d Remove obsolete test
The current PR no longer support creating from string
2019-07-23 05:33:40 +02:00
Oz N Tiram
34898387c3 Merge remote-tracking branch 'upstream/master' into util-improvements 2019-06-20 14:06:00 +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 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
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
50ef8746a9 Merge branch 'master' into util-improvements 2019-04-05 00:23:34 +02:00
Oz Tiram
cee4e49eda Rename create_from_map to create_from_dict, add tests 2019-03-26 23:54:34 +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
micw523
c0f71c3ba6 Add list / multi resource support 2019-03-19 00:36:32 -05:00
micw523
5a92ba65aa Add kubectl create -f feature 2018-10-31 19:34:18 -05:00