Commit Graph

52 Commits (3b1407af70ac54c925fe5abb060e83d625d77b88)

Author SHA1 Message Date
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Jerzy Szczepkowski 86764ba4ce Changed constans to reduce hpa e2e test flakiness.
Changed constans to reduce hpa e2e test flakiness.
2016-06-15 11:33:50 +02:00
Jerzy Szczepkowski eabe65cba4 Reduced flakiness of HPA e2e tests.
Reduced flakiness of HPA e2e tests.
2016-06-13 10:41:07 +02:00
Wojciech Tyczynski 0499108c3f Add [HPA] tag to HPA tests 2016-05-30 13:11:06 +02:00
Piotr Szczesniak 212b459817 Move internal types of hpa from pkg/apis/extensions to pkg/apis/autoscaling 2016-05-09 09:18:13 +02:00
Clayton Coleman fdb110c859
Fix the rest of the code 2016-04-29 17:12:10 -04:00
Tim St. Clair b0d3f32e88 Update test/e2e for test/e2e/framework refactoring 2016-04-13 10:50:17 -07:00
Jay Vyas 9a71dfe753 KubeDescribe implementation with verify into after-build/ scripts. 2016-03-15 22:29:21 -04:00
Madhusudan.C.S fe26381c90 Support for both map-based and set-based selectors in extensions/v1beta1.Scale
Here are a list of changes along with an explanation of how they work:
1. Add a new string field called TargetSelector to the external version of
   extensions Scale type (extensions/v1beta1.Scale). This is a serialized
   version of either the map-based selector (in case of ReplicationControllers)
   or the unversioned.LabelSelector struct (in case of Deployments and
   ReplicaSets).
2. Change the selector field in the internal Scale type (extensions.Scale) to
   unversioned.LabelSelector.
3. Add conversion functions to convert from two external selector fields to a
   single internal selector field. The rules for conversion are as follows:
   i.   If the target resource that this scale targets supports LabelSelector
        (Deployments and ReplicaSets), then serialize the LabelSelector and
        store the string in the TargetSelector field in the external version
        and leave the map-based Selector field as nil.
   ii.  If the target resource only supports a map-based selector
        (ReplicationControllers), then still serialize that selector and
	store the serialized string in the TargetSelector field. Also,
	set the the Selector map field in the external Scale type.
   iii. When converting from external to internal version, parse the
        TargetSelector string into LabelSelector struct if the string isn't
	empty. If it is empty, then check if the Selector map is set and just
	assign that map to the MatchLabels component of the LabelSelector.
   iv.  When converting from internal to external version, serialize the
        LabelSelector and store it in the TargetSelector field. If only
	the MatchLabel component is set, then also copy that value to
	the Selector map field in the external version.
4. HPA now just converts the LabelSelector field to a Selector interface
   type to list the pods.
5. Scale Get and Update etcd methods for Deployments and ReplicaSets now
   return extensions.Scale instead of autoscaling.Scale.
6. Consequently, SubresourceGroupVersion override and is "autoscaling"
   enabled check is now removed from pkg/master/master.go
7. Other small changes to labels package, fuzzer and LabelSelector
   helpers to piece this all together.
8. Add unit tests to HPA targeting Deployments and ReplicaSets.
9. Add an e2e test to HPA targeting ReplicaSets.
2016-03-09 17:54:17 -08:00
Marcin Wielgus 0a7e344d49 CustomMetric support in autoscaling utils 2016-03-04 15:50:55 +01:00
Piotr Szczesniak 60430ca1fb Added HPA lightweight e2e test 2016-03-04 11:23:07 +01:00
gmarek 110340c467 Add an option to pass client's QPS/burst to e2e framework 2016-02-29 09:32:29 +01:00
Madhusudan.C.S 31606e6d2f Remove Deployment and DaemonSet "Feature:" tags from e2e tests. 2016-02-17 15:04:31 -08:00
Madhusudan.C.S e7a9f30936 Address review comments. 2016-02-09 15:50:01 -08:00
Madhusudan.C.S ed7ad6dcf3 Make deployments work. 2016-02-08 21:27:49 -08:00
Isaac Hollander McCreery bb41ba986b Make HPA Deployment tests [Feature:Deployment] until GKE has enabled them 2016-02-01 13:50:10 -08:00
Isaac Hollander McCreery a2f2f633af Move HPA tests to [Serial] until #20338 is resolved 2016-01-29 11:05:58 -08:00
Isaac Hollander McCreery 5ac20da16c Move HPA e2es into the default slow suite, and add [Feature:ClusterSizeAutoscaling] and [Feature:InitialResources] 2016-01-29 09:20:47 -08:00
Isaac Hollander McCreery a51f291b91 Classify all HPA tests as [Feature:Autoscaling] 2016-01-27 16:10:33 -08:00
Isaac Hollander McCreery d002a68f3c Label feature tests for Feature:DaemonSet, Feature:Deployment, Feature:ExperimentalResourceUsageTracking, and remove GKE and AWS skip lists 2016-01-27 16:09:12 -08:00
Isaac Hollander McCreery cfdae7b482 Make [Autoscaling] [Feature:Autoscaling] 2016-01-12 10:11:56 -08:00
Jay Vyas 98153fcedc HPA: parameterize stasis, minReplicas, maxReplicas as struct. 2015-12-03 14:34:49 -05:00
Piotr Szczesniak fa2cb57d0f Re-enabled HPA e2e in autoscaling suite 2015-11-24 10:02:26 +01:00
Karl Isenberg 2d3c3e1d0b Cleanup e2e tags
- Remove "Suite" from e2e tag names
- Move grouping e2e tags to the front of the test, describe or context name
- Move Conformance e2e tags to the end of test names (test specific)
- Move Skipped e2e tags to the end of names, but to as high a context as applicable
2015-11-23 13:42:12 -08:00
Piotr Szczesniak 0d105ad548 Enabled HPA e2e tests for 1.1 release 2015-11-23 10:22:13 +01:00
Piotr Szczesniak 2794e47b1c Disabled HPA tests for deployment because they are flaky 2015-11-20 22:03:24 +01:00
Piotr Szczesniak d246e7833b Enabled HPA for deployment e2e 2015-11-17 11:40:43 +01:00
Alexander Vollschwitz 108cb4121d added RunDeployment to allow horizontal pod autoscaling e2e tests to use deployments
added deployment-based e2e tests for horizontal pod autoscaling
adjusted to changes from PR #16330
changed test titles according to PR comments & to merge change from PR #16895
2015-11-06 15:24:59 +01:00
Jeff Lowdermilk 721eb6e7be Run hpa, GCE L7 tests in gce-disruptive-1.1 2015-11-05 17:44:44 -08:00
deads2k fd1c8e096a eliminate cross-namespace HPA escalation attack 2015-11-03 08:05:26 -05:00
Piotr Szczesniak aef0059621 Revert "Revert "Improved HPA e2e to test stability of the scale decision"" 2015-10-27 09:44:05 +01:00
Piotr Szczesniak 16682ca924 Revert "Improved HPA e2e to test stability of the scale decision" 2015-10-26 15:23:24 +01:00
Piotr Szczesniak d7a3b064dd Improved HPA e2e to test stability of the scale decision 2015-10-23 14:54:12 +02:00
Piotr Szczesniak 52d8527761 Migrate hpa e2e tests to the new API
Fixed the issue with enabling HPA
2015-10-16 11:06:47 +02:00
Jerzy Szczepkowski df732f061a HorizontalPodAutoscaler API: removal of ResourceConsumption target, introduction of CPU request utilization & other cleanups. 2015-10-16 07:15:50 +02:00
Chao Xu 493d2b6920 grep sed Experimental() 2015-10-13 13:22:54 -07:00
Chao Xu 7c9f4cc42f experimental. -> extensions. 2015-10-09 15:49:10 -07:00
Chao Xu 67f316dd19 apis/experimental->apis/extensions 2015-10-09 15:04:41 -07:00
Jerzy Szczepkowski 31bd5fda72 Increased memory limit for horizontal pod autoscaler e2e test.
Increased memory limit for horizontal pod autoscaler e2e test. Fixes #14667.
2015-10-07 12:16:35 +02:00
Jerzy Szczepkowski f8b18b0a4c Improved logging for horizontal pod autoscaler.
Improved logging for horizontal pod autoscaler. Disabled redundant e2e test.
2015-10-05 16:26:14 +02:00
Jerzy Szczepkowski 64f0f70c94 Fixed flakiness of e2e tests for horizontal pod autoscaler.
Fixed flakiness of e2e tests for horizontal pod autoscaler. Enabled more tests.
2015-10-01 10:30:54 +02:00
Piotr Szczesniak 564fcfb4b3 Fixed panic in autoscaling e2e tests 2015-09-28 15:02:49 +02:00
Piotr Szczesniak dca306e210 Actually enabled Horizontal Pod Autoscaling tests 2015-09-25 07:11:46 +02:00
Jerzy Szczepkowski c8238c079a E2E tests for horizontal pod autoscaler.
Fixes & tuning in horiontal pod autoscaler and its e2e tests; two of the tests added to "Autoscaling suite".
2015-09-24 14:14:35 +02:00
k8s-merge-robot 979bfc0f18 Merge pull request #14167 from socaa/static-consumption
Auto commit by PR queue bot
2015-09-21 05:13:11 -07:00
Ewa Socala 152991f06c Static Consumption added to autoscaling_utils.go 2015-09-21 10:45:10 +02:00
k8s-merge-robot c2f76e4ce7 Merge pull request #14106 from jszczepkowski/hpa-api
Auto commit by PR queue bot
2015-09-19 22:23:06 -07:00
Ewa Socala 997186d10c CPU & Memory Limit added to RCConfig in autoscaling_utils.go 2015-09-17 15:19:21 +02:00
Jerzy Szczepkowski 7fcf7f1177 Cleanups in HorizontalPodAutoscaler API.
Cleanups in HorizontalPodAutoscaler API: renamed Min/MaxCount to Min/MaxReplicas as Replicas is the proper name used in other objects.
2015-09-17 14:16:43 +02:00
Ewa Socala e837209f15 Memory dynamic consumption 2015-09-16 14:43:23 +02:00