Commit Graph

895 Commits (ba113ea30be6f7e537bca30c0b654dccdb6f46f4)

Author SHA1 Message Date
Janet Kuo 26bcdb1bd6 Separate GetOldRS and GetNewRS in deployment controller (get and mutate) and deployment util (get only) 2016-03-15 10:23:20 -07:00
Jordan Liggitt d008283942 Tolerate multiple registered versions in a single group 2016-03-12 12:49:41 -05:00
Chao Xu a6240c1ab8 add FullyLabeledReplicas in Replicaset Status and ReplicationController Status 2016-03-11 23:55:04 -08:00
Janet Kuo 4a181dacec Fix the possible negative scale down value; add logs when scaling down 2016-03-10 16:01:18 -08:00
Madhusudan.C.S db48dcf583 ReplicaSetSpec.Template shouldn't be a pointer.
PodTemplateSpec should be consistent for all the types in extensions/v1beta1.

See PR #19510.
2016-03-09 21:24:16 -08: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
Mike Danese e0431d8409 Revert "Revert "continuously delete pods on nodes that don't exist""
This reverts commit da0a72f2c2.
2016-03-08 11:00:35 -08:00
Marek Grabowski da0a72f2c2 Revert "continuously delete pods on nodes that don't exist" 2016-03-08 09:38:53 +01:00
Mike Danese c404e7c6d1 continuously delete pods on nodes that don't exist 2016-03-07 16:01:33 -08:00
k8s-merge-robot dc46ae031d Merge pull request #22336 from cjcullen/evict
Auto commit by PR queue bot
2016-03-07 08:42:40 -08:00
k8s-merge-robot ec9c67d65d Merge pull request #22516 from kargakis/resolve-fenceposts-together
Auto commit by PR queue bot
2016-03-07 07:37:12 -08:00
CJ Cullen e7fc608df7 Immediately evict pods and delete node when cloud says node is gone. 2016-03-07 06:07:51 -08:00
Michail Kargakis 1388919976 controller: resolve unavailable in conjuction with surge for deployments
Due to rounding down for maxUnavailable, we may end up with deployments
that have zero surge and unavailable pods something that 1) is not allowed
as per validation, 2) blocks deployments. If we end up in such a situation
set maxUnavailable to 1 on the theory that surge might not work due to
quota.
2016-03-07 13:03:41 +01:00
Wojciech Tyczynski e2ebc50648 Don't sync all objects for replenishment as often as ResourceQuota. 2016-03-07 08:31:09 +01:00
k8s-merge-robot 95ab1936ea Merge pull request #22559 from krousey/discbreak
Auto commit by PR queue bot
2016-03-06 12:47:07 -08:00
k8s-merge-robot 8ab8231c20 Merge pull request #22577 from jpiccari/master
Auto commit by PR queue bot
2016-03-06 00:18:53 -08:00
k8s-merge-robot c7a50206c0 Merge pull request #22579 from bprashanth/graceful_rc
Auto commit by PR queue bot
2016-03-05 23:42:11 -08:00
k8s-merge-robot 005c67a1ef Merge pull request #22445 from derekwaynecarr/quota_replenish_perf
Auto commit by PR queue bot
2016-03-05 22:00:37 -08:00
Prashanth Balasubramanian 7f5c9bd676 Track deletes in rc manager with a UID expectations cache. 2016-03-05 18:18:18 -08:00
k8s-merge-robot 2808973503 Merge pull request #22038 from mqliang/daemonset-cache
Auto commit by PR queue bot
2016-03-05 03:38:55 -08:00
k8s-merge-robot 20838c3314 Merge pull request #22560 from janetkuo/pod-update-delete-log
Auto commit by PR queue bot
2016-03-04 23:32:35 -08:00
Joshua Piccari f5f83b076a Improve go report card by fixing typos in comments 2016-03-04 18:30:59 -08:00
k8s-merge-robot d9d0fdecd3 Merge pull request #22570 from janetkuo/inactive-pods-not-available
Auto commit by PR queue bot
2016-03-04 18:11:20 -08:00
Janet Kuo f666e87217 Filter out inactive pods first when determining if it's available 2016-03-04 16:32:32 -08:00
k8s-merge-robot 3f8086192b Merge pull request #21982 from justinsb/fix_21952
Auto commit by PR queue bot
2016-03-04 16:23:45 -08:00
Janet Kuo 59b1f5b8b5 Log contents of pods on creation/update/deletion in controllers 2016-03-04 13:57:34 -08:00
Kris dbde4fd798 Move the discovery client to its own package 2016-03-04 13:44:52 -08:00
Abhishek Shah a3c00aadd5 Specify hostname, subdomain via annotation on podspec.
The hostname is a DNS A record, if the subdomain maps to a service name
in the same namespace
2016-03-04 13:28:33 -08:00
k8s-merge-robot 57670edc15 Merge pull request #22345 from fgrzadkowski/hpa_events
Auto commit by PR queue bot
2016-03-04 09:18:21 -08:00
k8s-merge-robot 18d8e7b756 Merge pull request #22052 from mwielgus/hpa-average
Auto commit by PR queue bot
2016-03-04 08:38:38 -08:00
k8s-merge-robot 0e3469dce3 Merge pull request #22183 from pmorie/config-quota
Auto commit by PR queue bot
2016-03-04 03:12:51 -08:00
Prashanth B a1118b2e72 Merge pull request #22503 from bprashanth/rc_logs
Add some logging around deletion timestamps for RC scaling.
2016-03-04 00:15:24 -08:00
Prashanth Balasubramanian c61bf4d665 Add some logging around deletion timestamps for RC scaling. 2016-03-03 23:10:37 -08:00
k8s-merge-robot 258eac505f Merge pull request #21400 from derekwaynecarr/namespace_deletion_discovery
Auto commit by PR queue bot
2016-03-03 21:33:01 -08:00
k8s-merge-robot 601104f201 Merge pull request #22472 from caesarxuchao/log-nodecontroller
Auto commit by PR queue bot
2016-03-03 20:19:06 -08:00
Jeff Lowdermilk 1e70f17c6a Merge pull request #22416 from mikedanese/ds-fixer
Fix daemonset flapping when using a host port
2016-03-03 15:21:14 -08:00
Chao Xu 828fe5df2f remove V(2) 2016-03-03 14:54:33 -08:00
derekwaynecarr 04b809573f Quota replenishment should only add quotas that track the resource 2016-03-03 12:50:25 -05:00
Filip Grzadkowski 69b3c6aa39 Add events to improve understandability of HPA controller decisions.
Fixes #22174
2016-03-03 12:05:51 +01:00
Filip Grzadkowski b5c9af9762 Use controller framework in HPA controller.
Ref #22174
2016-03-03 11:55:44 +01:00
Mike Danese cd6c288d45 Fix daemonset flapping when using a host port 2016-03-02 22:22:14 -08:00
derekwaynecarr beace2dbad Fix incorrect logging string that could cause confusion 2016-03-02 23:42:33 -05:00
derekwaynecarr 41057b02d5 Move namespace controller to use discovery and dynamic client 2016-03-02 23:34:18 -05:00
k8s-merge-robot d81d823ca5 Merge pull request #22393 from eparis/blunderbuss
Auto commit by PR queue bot
2016-03-02 18:51:56 -08:00
k8s-merge-robot aba1847857 Merge pull request #22375 from janetkuo/comment-deployment-revision
Auto commit by PR queue bot
2016-03-02 18:51:54 -08:00
Janet Kuo 48dc694ba6 Add more comments and rename getAllReplicaSets to getAllReplicaSetsAndSyncRevision 2016-03-02 17:51:35 -08:00
Eric Paris 5e5a823294 Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
Jeff Lowdermilk 21455ab776 Merge pull request #22171 from piosz/hpa-default
Added default cpu target for HPA
2016-03-02 16:07:24 -08:00
k8s-merge-robot ec77d0841d Merge pull request #22376 from caesarxuchao/add-log-nodecontroller
Auto commit by PR queue bot
2016-03-02 13:36:34 -08:00
Janet Kuo e42eab59bc Add comments about deployment revision update 2016-03-02 11:19:48 -08:00