Commit Graph

32 Commits

Author SHA1 Message Date
Tim St. Clair
b0d3f32e88 Update test/e2e for test/e2e/framework refactoring 2016-04-13 10:50:17 -07: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
feihujiang
ac9f890238 Support the subresource of service proxy 2016-02-18 15:16:05 +08:00
Piotr Szczesniak
1077d37aaf Revert "Revert "Decrease request size in autoscaling suite"" 2016-02-01 20:42:03 +01:00
Jeff Lowdermilk
e44164b939 Revert "Decrease request size in autoscaling suite" 2016-02-01 11:18:32 -08:00
Marcin Wielgus
ed73bad857 Decrease request size in autoscaling suite 2016-02-01 12:02:26 +01:00
Jerzy Szczepkowski
dd62c8e831 Autoscaling e2e tests: bumped resource consumer to version beta2.
Autoscaling e2e tests: bumped resource consumer to version beta2.
2015-12-14 16:55:26 +01:00
Tim Hockin
ba383bcfeb Refactor IntOrString into a new pkg
pkg/util/intstr is a cleaner encapsulation for this type and supporting
functions.  No behavioral change.
2015-11-16 10:57:52 -08: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
Piotr Szczesniak
77d9ce230c Fixed flakiness in cluster size autoscaling e2e 2015-10-27 16:36:33 +01: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
Justin Santa Barbara
67d3a93166 Fix misc typos
Mostly in comments, but also renamed the (test) function
migUdpateCmdBase -> migUpdateCmdBase.
2015-10-20 05:52:45 -04:00
Piotr Szczesniak
8262774a76 Implemented e2e test for Initial Resources 2015-10-06 10:24:35 +02:00
Piotr Szczesniak
3a18af8ea8 Fixed flakiness in autoscaling e2e with no scheduling pods 2015-09-29 15:52:30 +02:00
Piotr Szczesniak
80d3e6eb5f Added debug logs to autoscaling_utils.go 2015-09-28 11:59:17 +02:00
Piotr Szczesniak
ea27ecf9ff Small fixes in autoscaling e2e utils 2015-09-25 14:52:32 +02:00
Piotr Szczesniak
b2cc7d0ac0 Another attempt to fix problem with not ready endpoints in autoscaling e2e 2015-09-25 10:24:28 +02:00
Daniel Smith
76a37694f6 Revert "Temporary workaround of problem with not ready endpoints."
This reverts commit eb9cb8fbae.
2015-09-24 10:49:43 -07:00
Piotr Szczesniak
eb9cb8fbae Temporary workaround of problem with not ready endpoints. 2015-09-24 14:57:21 +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
Ewa Socala
58bea1b7e3 WaitForService added to autoscaling_utils.go 2015-09-23 16:13:05 +02:00
Ewa Socala
152991f06c Static Consumption added to autoscaling_utils.go 2015-09-21 10:45:10 +02:00
Ewa Socala
d6d199ddab Horizontal Pod Autoscaler is deleted along with namespace 2015-09-18 09:38:10 +02:00
Ewa Socala
997186d10c CPU & Memory Limit added to RCConfig in autoscaling_utils.go 2015-09-17 15:19:21 +02:00
Ewa Socala
e837209f15 Memory dynamic consumption 2015-09-16 14:43:23 +02:00
Ewa Socala
2201a3bfa8 Milicore to Millicore in autoscaling_utils.go 2015-09-10 14:36:19 +02:00
derekwaynecarr
b05c11edac Fix typo for milicores to millicores 2015-09-08 14:12:08 -04:00
Ewa Socala
3ddbb7d96b Horizontal Pod Autoscaling e2e tests 2015-09-08 13:28:41 +02:00
Ewa Socala
4f282efb11 Added autoscaling utils for dynamic consumption of CPU 2015-09-03 09:15:12 +02:00