Commit Graph

196 Commits (18458392ca24c85c688e655aace1afd04f864cbd)

Author SHA1 Message Date
Roy Lenferink b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Kubernetes Prow Robot 74f779fbb5
Merge pull request #69087 from tanshanshan/error926
make sure to check for errors and close the request body in the cluster size autoscaling e2e test
2018-12-29 01:58:26 -08:00
Kubernetes Prow Robot cdeb8c108f
Merge pull request #72205 from losipiuk/lo/env-gke-api-endpoint
Use CLOUDSDK_API_ENDPOINT_OVERRIDES_CONTAINER for GKE Api endpoint
2018-12-20 03:11:44 -08:00
Łukasz Osipiuk b1408dbe45 Use CLOUDSDK_API_ENDPOINT_OVERRIDES_CONTAINER for GKE Api endpoint 2018-12-19 17:55:33 +01:00
Jordan Liggitt 0ff455e340 generated files 2018-12-19 11:19:12 -05:00
Jordan Liggitt fd9e9b01b1 Remove uses of extensions/v1beta1 clients 2018-12-19 11:18:53 -05:00
Weibin Lin 842bd1e1ec update deployment, daemonset, replicaset, statefulset to apps/v1 2018-12-19 10:46:45 -05:00
Aleksandra Malinowska 2f278a316f Extend timeout before breaking node in autoscaling test 2018-11-23 13:47:05 +01:00
k8s-ci-robot f7b9b669e5
Merge pull request #71208 from losipiuk/lo/fix-flaky-scalup-test
Fix flaky 'shouldn't trigger additional scale-ups during processing scale-up' test
2018-11-19 05:51:43 -08:00
Łukasz Osipiuk 4d154179c4 Fix flaky 'shouldn't trigger additional scale-ups during processing scale-up' test 2018-11-19 13:37:50 +01:00
Davanum Srinivas 954996e231
Move from glog to klog
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
  * github.com/kubernetes/repo-infra
  * k8s.io/gengo/
  * k8s.io/kube-openapi/
  * github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods

Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
Joachim Bartosik 100e61a7d6 Add more logging to e2e HPA tests
To debug flakes if there will be any more. Log status of HPA when
waching for recommendations stability (place where most flakes seem to
happen).
2018-11-05 11:32:41 +01:00
Joachim Bartosik b0265bed42 Deflake e2e HPA tests
Tests for scaling down based on external metric are flaky. I think this
is because they:
 - Start with 2 replicas,
 - Export metric value == 1/2 target,
 - Expect scale down to 1.

Since the expected recommendation is exactly 1 it might flake (and with
scale down stabilization any recommendations higher than 1 will
persist).

Change expected value of the metric so recommended size will be lower
than 1. This should make those tests less flaky.
2018-11-02 11:32:22 +01:00
Joachim Bartosik cb6a8a2564 Deflake HPA tests
- Scale down based on custom metric was flaking. Increase target value
of the metric.
- Scale down based on CPU was flaking during stabilization. Increase
tolerance of stabilization (caused by resource consumer using more CPU
than requested).
2018-10-30 19:27:42 +01:00
Joachim Bartosik 1b90dc96d7 Change back HPA e2e tests to request 500 mCPU
I increased request from 500mCPU to 1CPU in
https://github.com/kubernetes/kubernetes/pull/70125 but this interacts
poorly with other e2e tests (higher requests mean pods fil to schedule).
So revert that change.
2018-10-25 11:16:31 +02:00
Joachim Bartosik e2394bd3b8 Deflake e2e tests of HPA
Resource consumer might use slightly more CPU than requested. That
resulted in HPA sometimes increasing size of deployments during e2e
tests. Deflake tests by:
- Scaling up CPU requests in those tests. Resource consumer might go a fixed
  number of milli CPU seconds above target. Having higher requests makes
  the test less sensitive.
- On scale down consume  CPU in the middle between what would generate
  recommendation of expexted size and 1 pod fewer (instead of righ on
  edge beween expected and expected +1).

Some variables were int32 but always cast to int before use. Make them
int.
2018-10-23 14:50:41 +02:00
tanshanshan 65af391e39 add closing client 2018-09-26 15:28:28 +08:00
Beata Skiba 31fb5b236f Autoscaler e2e tests use allocatable to calculate resources 2018-09-12 10:49:14 +02:00
Łukasz Osipiuk dfadd3a3e2 Allow requesting specific gpu in autoscaling e2e tests 2018-08-17 17:15:45 +02:00
Kubernetes Submit Queue fbb2dfcc6a
Merge pull request #66704 from liangwenguo/comment_error
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Correct spelling errors in the comments

**What this PR does / why we need it**:

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-08-13 11:39:53 -07:00
Claudiu Belu 4ed859c307 tests: Skips AfterEach step if provider is not supported
The BeforeEach step for cluster_size_autoscaling is skipped if
the provider is not gce or gke. The AfterEach step should also
be skipped, since nothing was done.
2018-08-08 17:27:56 -07:00
Aleksandra Malinowska 73790b8f6d Log error in e2e tests when creating priority classes 2018-08-09 11:34:47 +02:00
Maciej Pytel 29a32307a7 Allow setting tolerations in test framework 2018-08-07 19:04:55 +02:00
Aleksandra Malinowska 5d051efc30 Run expendable pods tests on GKE 2018-08-02 12:01:52 +02:00
liangwenguo 72444add54 Correct spelling errors in the comments 2018-07-27 15:12:16 +08:00
hangaoshuai 96edecffd4 remove unused codes in test/e2e/autoscaling 2018-07-25 14:39:27 +08:00
Kubernetes Submit Queue c91d441343
Merge pull request #66504 from aleksandra-malinowska/remove-nap-tests
Automatic merge from submit-queue (batch tested with PRs 66352, 66504). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Remove outdated autoscaling e2e tests.

Remove outdated autoscaling e2e tests.

/cc @bskiba @MaciekPytel 
/sig-autoscaling

```release-note
NONE
```
2018-07-23 15:17:08 -07:00
Aleksandra Malinowska e8e95646b2 Remove outdated autoscaling e2e tests 2018-07-23 16:59:41 +02:00
Beata Skiba eb6f45905b Fix computing number of nodes to break in unhealthy cluster test. 2018-07-23 14:11:11 +02:00
Aleksandra Malinowska 3cd3ee3eb8 Fix field name in NAP tests 2018-07-05 14:59:10 +02:00
Kubernetes Submit Queue 0d9c432542
Merge pull request #65437 from losipiuk/lo/gpu-tests-from-env
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Read gpu type from TESTED_GPU_TYPE env variable

```release-note
NONE
```
2018-06-26 08:55:44 -07:00
Łukasz Osipiuk 63f5f3106b Read gpu type from TESTED_GPU_TYPE env variable 2018-06-25 18:47:49 +02:00
Jeff Grafton 23ceebac22 Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
Łukasz Osipiuk e16b1fdc41 Add cluster autoscaler w/NAP test involving GPUs 2018-06-08 17:23:42 +02:00
Łukasz Osipiuk 1a3820d470 Add cleanup for gpu-pod-rc in cluster_size_autoscaling.go 2018-06-08 15:38:32 +02:00
Łukasz Osipiuk 1c4f31b374 Create new variable for each iteration step 2018-06-05 10:36:11 +02:00
Kubernetes Submit Queue d373eaa4f3
Merge pull request #63724 from ravisantoshgudimetla/priority-e2e-beta
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Modify e2e tests to use priorityClass beta client version & switch priorityClass to beta

**What this PR does / why we need it**:
/cc @bsalamat @aveshagarwal @liggitt 

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Part of #57471

**Special notes for your reviewer**:
Once #57963 merges, this could go in.

**Release note**:

```release-note
Modify e2e tests to use priorityClass beta version & switch priorityClass feature to beta
```
2018-06-04 23:07:34 -07:00
Łukasz Osipiuk 3c8bd9ae24 Wait for PODs ready after scale up 2018-05-26 11:00:38 +02:00
Łukasz Osipiuk 350d2c2402 Run cluster-autoscaler+GPU e2e tests for all gpu types 2018-05-26 11:00:14 +02:00
Maciej Szulik 383872615d
Remove kubectl reapers 2018-05-25 22:18:05 +02:00
ravisantoshgudimetla 441b6d4465 Build files generated 2018-05-14 18:15:34 -04:00
ravisantoshgudimetla f3441a5c20 Update e2e to use priorityClass beta 2018-05-14 18:13:41 -04:00
Łukasz Osipiuk ec0a9aae28 Add e2e test to verify that GPU pool is not scaled up if GPUs are not requested by pods 2018-05-14 18:16:37 +02:00
Łukasz Osipiuk c6a0937080 Add cluster autoscaler tests for pods requiring GPU 2018-05-10 20:17:42 +02:00
Aleksandra Malinowska 3eb420b773 Fix parsing timestamp in test 2018-04-12 14:22:28 +02:00
xiangpengzhao 1f80008f41 Remove the use of storage class beta annotations in e2e tests. 2018-04-10 15:29:08 +08:00
wojtekt 7076eed0b9 Fix dns autoscaling test for Regional Clusters 2018-04-09 12:27:37 +02:00
Manjunath A Kumatagi 1bb810e749 Use pause manifest image 2018-04-06 11:00:50 +05:30
Beata Skiba b0f44e3bee Retry node pool deletion in autoscaling tests.
This will deflake autoscaling e2e tests on gke. When there is already an operation running on the cluster, the node pool deletion will fail. This will in turn make other tests that add extra node pool fail.
2018-04-04 15:56:11 +02:00
Kubernetes Submit Queue e57af2b354
Merge pull request #61760 from bskiba/test-em-sd-clean
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add e2e test for external metrics with Stackdriver

**What this PR does / why we need it**:
Adds e2e tests for external metrics using Stackdriver adapter.
Rename the file to note that these are Stackdriver tests in anticipation of tests running with fake custom metrics apiserver. Refactor the tests to be more structured.

**Release note**:
```
NONE
```
2018-03-30 02:11:20 -07:00