Commit Graph

934 Commits

Author SHA1 Message Date
markturansky
34c063cfe1 attempt recycling once, fail pv permanently 2015-12-10 18:23:45 -05:00
Jay Vyas
5161d169ba Parameterization for downscale, upscale, and tolerance with backsolving
unit test for visible testing of tolerance algorithm expectations. Logs for dScale, uScale, tol creation.
2015-12-10 10:59:21 -05:00
Wojciech Tyczynski
f28bb68d8c Support collection deletion in apiserver. 2015-12-10 09:46:25 +01:00
Phillip Wittrock
c67ce887f2 Volume Metrics Interface and base implementation.
- Add volume.MetricsProvider function to Volume interface.
- Add volume.MetricsDu for providing metrics via executing "du".
- Add volulme.MetricsNil for unsupported Volumes.
2015-12-09 16:06:24 -08:00
k8s-merge-robot
b46cee885a Merge pull request #18378 from krousey/controllerflake
Auto commit by PR queue bot
2015-12-09 08:44:29 -08:00
Wojciech Tyczynski
a915b8b29a Merge pull request #18080 from wojtek-t/list_options_in_listwatch
Pass ListOptions to List in ListWatch.
2015-12-09 14:27:51 +01:00
Kris
cec9c47f41 Only delete pods when they reach final state 2015-12-08 11:35:42 -08:00
deads2k
2ee3dfe415 update testapi to eliminate redundant fields 2015-12-07 15:54:26 -05:00
Wojciech Tyczynski
b0fcb5adef Pass ListOptions to List in ListWatch. 2015-12-07 11:53:53 +01:00
k8s-merge-robot
db11f1b6c6 Merge pull request #17133 from derekwaynecarr/quota_controller_improvements
Auto commit by PR queue bot
2015-12-06 12:24:00 -08:00
k8s-merge-robot
e2679abdb8 Merge pull request #18011 from sdminonne/podSelector_labelSelector
Auto commit by PR queue bot
2015-12-05 13:56:04 -08:00
Janet Kuo
8fb0caa15b Implement MinReadySeconds for Deployment 2015-12-04 12:58:34 -08:00
Salvatore Dario Minonne
80575c3093 renaming PodSelector to LabelSelector 2015-12-04 09:49:08 +01:00
Zach Loafman
a7da123836 Merge pull request #18173 from mikedanese/pod-stuck
actually validate semver in node controller rather than prefix checking
2015-12-03 15:55:22 -08:00
Mike Danese
f784be33ac actually validate semver in node controller rather than prefix checking 2015-12-03 14:49:44 -08:00
derekwaynecarr
55d4f70f8e Resource quota observes deletes faster 2015-12-03 17:35:05 -05:00
deads2k
7ae4d4f424 allow enforcing SA mountable secrets per SA 2015-12-03 13:53:01 -05:00
Wojciech Tyczynski
6dcb689d4e Simplify List() signature in clients. 2015-12-03 09:54:07 +01:00
Marek Grabowski
f633aa67b1 Merge pull request #18065 from jszczepkowski/hpa-fix
Fixed forbidden window enforcement in horizontal pod autoscaler.
2015-12-03 08:36:10 +01:00
Jerzy Szczepkowski
8cdda36b1e Fixed forbidden window enforcement in horizontal pod autoscaler.
Fixed forbidden window enforcement in horizontal pod autoscaler: time of the oldest report instead of now is taken into account. Fixes #17992.
2015-12-03 08:29:24 +01:00
k8s-merge-robot
8a8639d7af Merge pull request #17863 from wojtek-t/only_list_options_in_watch
Auto commit by PR queue bot
2015-12-02 06:28:28 -08:00
Wojciech Tyczynski
8343c8ce6c Pass ListOptions to List() methods. 2015-12-01 15:00:36 +01:00
Wojciech Tyczynski
d2dfc912e6 Simplify Watch() signature in clients. 2015-12-01 14:19:26 +01:00
Weixu Zhuang
c7756ce8d5 Enqueue DaemonSet only it has new or updated nodes in it.
When add node or update node func is called, all DaemonSets are enqueued to workqueue
of DaemonSet Controller. The consumer of the workqueue does an iteration of node.List
for every DaemonSet in the workqueue.

This change examinate the daemonSet before we enqueue it into DaemonSetController's work queue.
It will enqueue the DaemonSet only when it is related to the changed node.
2015-11-30 11:51:43 -08:00
k8s-merge-robot
4eb010b1f7 Merge pull request #17694 from hongchaodeng/ratelimit
Auto commit by PR queue bot
2015-11-26 13:12:26 -08:00
Clayton Coleman
1d592e4c28 Unversioned types should not use ambiguous go-int
All external types that are not int64 are now marked as int32,
including
IntOrString. Prober is now int32 (43 years should be enough of an initial
probe time for anyone).

Did not change the metadata fields for now.
2015-11-26 11:45:25 -05:00
Phillip Wittrock
6b358e43dd Merge pull request #17747 from saad-ali/fixErrorCreatingPDTry2
Refactor GCE wrapper library to allow execution from E2E test suite
2015-11-25 15:57:42 -08:00
k8s-merge-robot
7f2f7aa091 Merge pull request #16432 from markturansky/recycler_race
Auto commit by PR queue bot
2015-11-25 11:54:06 -08:00
saadali
42b200a0a0 Refactor GCE wrapper library to allow execution from E2E test suite
This reverts commit 147b6911f5, reversing
changes made to 6fd986065b.
2015-11-25 11:48:06 -08:00
k8s-merge-robot
3bd23b185b Merge pull request #17730 from wojtek-t/use_unversioned_list_options_in_client
Auto commit by PR queue bot
2015-11-25 09:10:19 -08:00
k8s-merge-robot
d42030170b Merge pull request #15999 from aveshagarwal/master-issue-15624
Auto commit by PR queue bot
2015-11-24 17:07:10 -08:00
Wojciech Tyczynski
b6ef62af24 Use unversioned.ListOptions in clients. 2015-11-24 16:52:09 +01:00
Avesh Agarwal
3d5207fd73 This commit adds type information to events.
This addresses issue #15624.
2015-11-24 09:59:54 -05:00
k8s-merge-robot
4fd6b6df06 Merge pull request #17316 from deads2k/gv-ClientForVersion
Auto commit by PR queue bot
2015-11-24 06:24:28 -08:00
Hongchao Deng
13d152a873 RateLimiter: change CanAccept() to TryAccept() 2015-11-23 16:42:53 -08:00
k8s-merge-robot
06ef4b0a83 Merge pull request #17156 from feihujiang/moveListFunctionsFromRuntimeToMetaPackage
Auto commit by PR queue bot
2015-11-23 14:13:25 -08:00
k8s-merge-robot
2d4757a8df Merge pull request #17306 from combk8s/patch-1
Auto commit by PR queue bot
2015-11-23 08:21:37 -08:00
Jerzy Szczepkowski
8a922e22be Revert "Refactor GCE wrapper library to allow execution from E2E test suite" 2015-11-23 09:24:32 +01:00
k8s-merge-robot
3fbf0cb810 Merge pull request #17276 from saad-ali/fixErrorCreatingPD
Auto commit by PR queue bot
2015-11-21 23:32:30 -08:00
deads2k
a87d927588 update client.Config to use GroupVersion 2015-11-21 08:29:26 -05:00
saadali
882469dd7b Refactor GCE wrapper library to allow execution from E2E test suite 2015-11-20 11:41:10 -08:00
feihujiang
ad79fa6e84 Move list functions from runtime to meta package 2015-11-20 09:20:55 +08:00
Mike Danese
a6fb172818 extract shouldRun predicate to a function in daemonset controller 2015-11-18 16:44:41 -08:00
Abhi Shah
a63711c143 Merge pull request #17318 from mikedanese/ds-fix
daemonset shouldn't place onto unschedulable nodes
2015-11-18 14:51:32 -08:00
combk8s
9bad6b65ec Update nodecontroller.go 2015-11-18 19:58:53 +08:00
k8s-merge-robot
849280f18d Merge pull request #16926 from liggitt/metrics_https
Auto commit by PR queue bot
2015-11-17 04:05:27 -08: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
Jordan Liggitt
165d7d5030 Enable specifying scheme/port for metrics client 2015-11-16 13:18:40 -05:00
Mike Danese
f674109502 daemonset shouldn't place onto unschedulable nodes 2015-11-16 10:17:40 -08:00
Mike Danese
7a7f31ead1 move daemonset to generalized label selector 2015-11-13 10:31:50 -08:00
k8s-merge-robot
21dbeb5302 Merge pull request #16714 from liggitt/tolerate_exists_errors
Auto commit by PR queue bot
2015-11-13 03:36:16 -08:00
Wojciech Tyczynski
a5a8717539 Pass versioner to cacher. 2015-11-13 08:35:28 +01:00
k8s-merge-robot
6ef6b9e055 Merge pull request #17054 from mesosphere/sttts-set-pod-resources
Auto commit by PR queue bot
2015-11-12 22:29:26 -08:00
markturansky
b9b8cf7fff Fixed race condition in pv binder 2015-11-12 13:55:09 -05:00
k8s-merge-robot
a752dad1ba Merge pull request #16818 from derekwaynecarr/ns_controller_race
Auto commit by PR queue bot
2015-11-12 09:20:20 -08:00
Dr. Stefan Schimanski
a3f02cda17 Add resource requests support 2015-11-12 16:56:07 +01:00
combk8s
50ce7ff1f2 Update nodecontroller.go 2015-11-10 20:27:33 +08:00
Mike Danese
9b982e1d3c generate rc name from deployment name 2015-11-09 15:33:04 -08:00
derekwaynecarr
745c58e788 Namespace controller should always get latest state prior to deletion 2015-11-06 11:43:56 -05:00
k8s-merge-robot
76ec5cd1c8 Merge pull request #16784 from mqliang/AssignLoop
Auto commit by PR queue bot
2015-11-05 14:24:37 -08:00
k8s-merge-robot
cdbb461194 Merge pull request #16745 from pmorie/replica-count-update-debug
Auto commit by PR queue bot
2015-11-05 01:12:15 -08:00
k8s-merge-robot
2842d9476b Merge pull request #16496 from wojtek-t/switch_cacher_for_other_resources
Auto commit by PR queue bot
2015-11-04 03:01:24 -08:00
mqliang
f26d437903 move assignment in loop 2015-11-04 15:42:25 +08:00
Paul Morie
09701b4fa8 Surface replica count update errors in log 2015-11-03 14:20:08 -05:00
deads2k
fd1c8e096a eliminate cross-namespace HPA escalation attack 2015-11-03 08:05:26 -05:00
k8s-merge-robot
76083f73dc Merge pull request #16671 from DirectXMan12/refactor/hpa-heapster-service
Auto commit by PR queue bot
2015-11-03 03:58:26 -08:00
Wojciech Tyczynski
030a272db5 Enable cacher for all resources. 2015-11-03 11:55:37 +01:00
Jordan Liggitt
974af49e77 Tolerate AlreadyExists errors when creating service accounts 2015-11-03 00:35:19 -05:00
k8s-merge-robot
990c0184be Merge pull request #16330 from mikedanese/deploy-ptr
Auto commit by PR queue bot
2015-11-02 20:41:34 -08:00
Solly Ross
f262560cac Customize HPA Heapster service namespace/name
This commit makes the HPA metrics client configurable in where
it looks for heapster instead of hard coding it to
"kube-system/heapster".  The values of "kube-system/heapster"
are still recorded as constants in the metrics client package
for use as default values.
2015-11-02 11:14:08 -05:00
Alex Robinson
97275873ff Merge pull request #16591 from kubernetes/revert-15838-issue14500
Revert "An attempt to fix flake in TestControllerSyncJob (14500)"
2015-10-30 13:14:05 -07:00
Eric Tune
a600ac0cca Revert "An attempt to fix flake in TestControllerSyncJob (14500)" 2015-10-30 08:56:11 -07:00
Wojciech Tyczynski
aac55d4795 Unify List() signature in clients 2015-10-30 15:43:40 +01:00
k8s-merge-robot
536740f38f Merge pull request #16443 from brendandburns/lb2
Auto commit by PR queue bot
2015-10-30 02:05:11 -07:00
David Oppenheimer
899ddc66eb Merge pull request #16478 from mikedanese/ds-nodeready
daemonset don't place pods on notready nodes
2015-10-30 01:07:28 -07:00
Brendan Burns
604203595a Fix a bug where nodes that weren't schedulable or ready are added to load balancers 2015-10-29 22:05:08 -07:00
k8s-merge-robot
f4b2d8358f Merge pull request #16179 from madhusudancs/master-out-of-disk
Auto commit by PR queue bot
2015-10-29 11:57:25 -07:00
k8s-merge-robot
1ecda94f0a Merge pull request #15305 from mqliang/deamonSetList
Auto commit by PR queue bot
2015-10-29 11:25:52 -07:00
Mike Danese
f237db81f0 daemonset don't place pods on notready nodes 2015-10-29 11:11:20 -07:00
Madhusudan.C.S
ce257b5a0e Use node out of disk condition in the scheduler while scheduling pods.
Set the out of disk node condition to unknown in the node controller if
the kubelet does not report its node condition in a long time. Update
node controller unit tests.

Implement a node condition predicate function that checks if a given
node satisfies the conditions defined by the predicate and if it
does, use that node for scheduling pods. The predicate function takes
both NodeReady and NodeOutOfDisk into consideration to determine if a
node is fit for scheduling pods.

The predicate is then passed to the node lister in the scheduler factory
so that the node lister can run the predicate function on the nodes when
schedling pods thereby omitting nodes that does not satisfy the
predicate.

Also update listers test.
2015-10-28 14:29:46 -07:00
Mike Danese
b0a41108af move deployment PodTemplate to be not a pointer 2015-10-28 00:13:40 -07:00
k8s-merge-robot
d228fd6d9c Merge pull request #15809 from mikedanese/deploy
Auto commit by PR queue bot
2015-10-27 19:25:12 -07:00
Jerzy Szczepkowski
5ef087adab Merge pull request #16266 from wojtek-t/fix_handshake_reflector
Reuse TCP connections in Reflector between resync periods.
2015-10-27 10:36:18 +01:00
k8s-merge-robot
df265b2d6e Merge pull request #15510 from aveshagarwal/master-selflink-objref
Auto commit by PR queue bot
2015-10-27 00:37:21 -07:00
Wojciech Tyczynski
d47e21f19f Reuse TCP connections in Reflector between resync periods. 2015-10-26 19:35:25 +01:00
Jerzy Szczepkowski
de25a3bc08 Fixed resetting last scale time in HPA status.
Fixed resetting last scale time in HPA status. Fixes #16275.
2015-10-26 16:36:05 +01:00
Mike Danese
8acf01d620 add status subresource for deployment 2015-10-26 00:12:58 -07:00
Janet Kuo
54b743bc05 Change resource "ingress" to "ingresses" in URL path and kubectl 2015-10-25 16:54:25 -07:00
k8s-merge-robot
55cbba3e51 Merge pull request #16234 from erictune/job-unit-fix
Auto commit by PR queue bot
2015-10-25 01:42:07 -07:00
k8s-merge-robot
0e1ee14cc8 Merge pull request #15705 from wojtek-t/watch_options_in_client
Auto commit by PR queue bot
2015-10-24 17:39:20 -07:00
k8s-merge-robot
a3187c7b21 Merge pull request #14794 from zhengguoyong/rename_wantsExternalLoadBalancer
Auto commit by PR queue bot
2015-10-24 13:46:27 -07:00
Wojciech Tyczynski
f4d75e0a0a Support timeout in watch requests 2015-10-24 13:12:49 +02:00
Eric Tune
07fb3c2759 Fix jobs unittest flakes.
Sometimes the test would
generate two identical pod names
using the Now().UnixNano() function.
Apparently the Nanos are rounded.

Passed 2000 unittest runs.
2015-10-24 00:54:45 -07:00
Saad Ali
f960b05fe1 Merge pull request #15930 from mikedanese/nc
make nodecontroller delete terminating pods on 1.0 nodes
2015-10-22 12:38:14 -07:00
eulerzgy
08785e0fd8 rename wantsExternalLoadBalancer 2015-10-22 15:03:57 +08:00
Jeff Lowdermilk
236193a26d Merge pull request #15944 from mqliang/assignoutloop
Move assignment statement out of loop
2015-10-21 13:19:56 -07:00
Mike Danese
836b68368b make nodecontroller delete terminating pods on 1.0 nodes 2015-10-21 13:07:03 -07:00
k8s-merge-robot
a5a917603c Merge pull request #15837 from feihujiang/removeUselessCodesAboutMinion
Auto commit by PR queue bot
2015-10-21 09:05:46 -07:00
k8s-merge-robot
879d0ccce0 Merge pull request #15838 from soltysh/issue14500
Auto commit by PR queue bot
2015-10-21 03:13:42 -07:00
k8s-merge-robot
36e1b80e4a Merge pull request #14881 from lavalamp/fix-14617
Auto commit by PR queue bot
2015-10-20 14:14:18 -07:00
k8s-merge-robot
a096db5e8b Merge pull request #15933 from mqliang/HandleError
Auto commit by PR queue bot
2015-10-20 11:37:40 -07:00
mqliang
163860797d move assignment statement out of loop 2015-10-20 20:02:45 +08:00
Steve Milner
8da2d4002f Fixes remaining imports per #15319 2015-10-20 07:13:13 -04:00
mqliang
a656c0f8a4 add error handler when delete pod 2015-10-20 15:33:53 +08:00
feihujiang
a456b4c424 Remove useless codes about Minion kind 2015-10-19 19:29:45 +08:00
Maciej Szulik
1ee20363e0 An attempt to fix flake in TestControllerSyncJob (14500) 2015-10-19 12:46:33 +02:00
k8s-merge-robot
68717ddae0 Merge pull request #15659 from caesarxuchao/discovery-client
Auto commit by PR queue bot
2015-10-16 20:03:33 -07:00
Chao Xu
5859da3e1f add discovery client 2015-10-16 14:20:21 -07:00
k8s-merge-robot
a6634adc1c Merge pull request #15435 from zhengguoyong/adjust_package_name_pkgcloudprovider
Auto commit by PR queue bot
2015-10-16 08:30:32 -07: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
Mike Danese
a7a54cac74 move job to generalized label selector 2015-10-15 07:42:58 -07:00
k8s-merge-robot
7ef2a1b293 Merge pull request #15427 from brendandburns/controllerversion
Auto commit by PR queue bot
2015-10-15 05:38:33 -07:00
k8s-merge-robot
081f05c207 Merge pull request #14575 from soltysh/jobs_podtemplate_not_pointer
Auto commit by PR queue bot
2015-10-15 03:28:19 -07:00
mqliang
45269bef8f return api.DaemonSetList, instead of an array 2015-10-15 14:49:52 +08:00
Brendan Burns
0c730f4ea7 update 2015-10-14 18:22:19 -07:00
Daniel Smith
4bdb1259a7 fix delta fifo & various fakes for go1.5.1 2015-10-14 16:07:46 -07:00
Brendan Burns
947a558320 Dynamically enable controllers based on what resources the server has.
Dynamically delete namespaces based on what resources the server has.
2015-10-14 15:53:19 -07:00
Maciej Szulik
98fa29adfd Make PodTemplateSpec for Job not a pointer, since it's a required field 2015-10-14 11:37:11 +02:00
Wojciech Tyczynski
647aa1bc8c Unify per-resource List for unversioned client 2015-10-14 08:37:57 +02:00
Chao Xu
493d2b6920 grep sed Experimental() 2015-10-13 13:22:54 -07:00
Chao Xu
9aa163aa88 grep sed ExperimentalInterface 2015-10-13 13:22:22 -07:00
k8s-merge-robot
ae9f7c8ff8 Merge pull request #15426 from zhengguoyong/adjust_package_name_pkgcontroller
Auto commit by PR queue bot
2015-10-13 06:05:23 -07:00
Avesh Agarwal
8e4a8b7260 Addresses issue #6596.
Removes ForTesting_ReferencesAllowBlankSelfLinks.
Fixes controller's persistentvolumes unit tests.
2015-10-12 19:21:48 -04:00
Dawn Chen
00eb2e7bfc Merge pull request #15267 from nikhiljindal/deploymentRCSelector
Deployment: Fixing the selector for new RC created by deployment
2015-10-12 14:40:30 -07:00
nikhiljindal
6f61326cdb Fixing the selector for new RC created by deployment 2015-10-12 11:00:29 -07:00
derekwaynecarr
3c012db30f Add status subresource to HorizontalPodAutoscaler 2015-10-12 11:27:56 -04:00
eulerzgy
4ed5f9d240 adjust package name for pkg/controller directory 2015-10-12 09:51:27 +08:00
k8s-merge-robot
fa557f6101 Merge pull request #15409 from caesarxuchao/extension/v1beta1
Auto commit by PR queue bot
2015-10-10 09:03:43 -07:00
eulerzgy
8b174f7f33 adjust package name for pkg/cloudprovider 2015-10-10 16:44:54 +08:00
Mike Danese
66ddde9fea use an aggressive delete option when deleting pods in the pod garbage collector 2015-10-09 17:15:00 -07:00
Chao Xu
7c9f4cc42f experimental. -> extensions. 2015-10-09 15:49:10 -07:00
Chao Xu
f3caff2a79 testapi.Experimental -> testapi.Extensions 2015-10-09 15:15:35 -07:00
Chao Xu
67f316dd19 apis/experimental->apis/extensions 2015-10-09 15:04:41 -07:00
k8s-merge-robot
86fdc3f85c Merge pull request #15240 from mikedanese/job-fix-1
Auto commit by PR queue bot
2015-10-08 16:58:06 -07:00
k8s-merge-robot
8982776b54 Merge pull request #15237 from mikedanese/ds-bug-3
Auto commit by PR queue bot
2015-10-08 10:50:59 -07:00
Mike Danese
73f7242027 rename JobStatus.Unsuccessful => JobStatus.Failed, JobStatus.Successful => JobStatus.Succeeded 2015-10-08 10:41:22 -07:00
Piotr Szczesniak
952a058357 Merge pull request #15153 from wojtek-t/common_resync_period
Extend resyncPeriods in controllers in production.
2015-10-08 14:07:04 +02:00
k8s-merge-robot
f754f05bd6 Merge pull request #15257 from nikhiljindal/deploymentScaleDown
Auto commit by PR queue bot
2015-10-08 04:36:59 -07:00
Piotr Szczesniak
708102af36 Merge pull request #14714 from mqliang/node-misleading
Eliminate misleading code
2015-10-08 13:31:04 +02:00
Piotr Szczesniak
6217869085 Merge pull request #14672 from derekwaynecarr/rc_status
Add replication controller status subresource
2015-10-08 13:30:29 +02:00
Wojciech Tyczynski
df79026b79 Extend resyncPeriods in controllers in production. 2015-10-08 09:10:09 +02:00
nikhiljindal
b0b1a35aae Adding logic to scale down new RC 2015-10-07 15:53:47 -07:00
Mike Danese
e5fe0c0c6e revise meaning of DaemonsSpecStatus.CurrentNumberScheduled 2015-10-07 14:29:34 -07:00
Mike Danese
591d7c42a4 Merge pull request #15198 from mikedanese/ds-bug-2
include name match in mischeduled check in daemonset controller
2015-10-07 13:54:42 -07:00
Nikhil Jindal
c5d534e4f6 Merge pull request #15159 from ironcladlou/deployment-controller-tests
Add unit tests for deployment controller
2015-10-07 13:20:30 -07:00
derekwaynecarr
544b453e31 Add replication controller status subresource 2015-10-07 14:39:33 -04:00
k8s-merge-robot
eea83ee930 Merge pull request #14722 from mqliang/pod-sort
Auto commit by PR queue bot
2015-10-06 23:32:03 -07:00
Mike Danese
d601bfa1bb fix bug in daemonset 2015-10-06 18:18:18 -07:00
Mike Danese
5a441d4ad1 include name match in mischeduled check in daemonset controller 2015-10-06 17:01:54 -07:00
Dan Mace
007ca63c5b Add unit tests for deployment controller
Add some minimal unit tests for the deployment controller.
2015-10-06 10:35:28 -04:00
hzliangmingqiang
b1412997d6 Sort the daemon pods by creation time 2015-10-06 14:09:42 +08:00
hzliangmingqiang
4b79572f8e eliminate misleading code 2015-10-06 09:13:10 +08:00
mqliang
22eac85190 write log when two replication controller overlap 2015-10-06 09:01:05 +08:00
Alex Robinson
53067d0978 Merge pull request #14896 from davidopp/master
Fix race condition in DaemonSet controller. Fixes #14693.
2015-10-05 12:53:23 -07:00
Alex Robinson
9419bfb402 Merge pull request #14937 from krousey/flaky_job_controller
Removing custom test timeout
2015-10-05 10:34:34 -07: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
David Oppenheimer
723cb73057 Address reviewer comments. 2015-10-03 23:30:46 -07:00
k8s-merge-robot
7007481f00 Merge pull request #14917 from nikhiljindal/deploymentController
Auto commit by PR queue bot
2015-10-02 13:18:49 -07:00
k8s-merge-robot
e330b1197e Merge pull request #14459 from bprashanth/l7_ingress_resource_refactor
Auto commit by PR queue bot
2015-10-02 10:20:48 -07:00
k8s-merge-robot
562ea7160d Merge pull request #14664 from deads2k/fix-prepend
Auto commit by PR queue bot
2015-10-02 03:21:10 -07:00
k8s-merge-robot
e4164638c4 Merge pull request #14732 from jszczepkowski/hpa-api-fix
Auto commit by PR queue bot
2015-10-01 18:52:59 -07:00
k8s-merge-robot
2b1a0e98a2 Merge pull request #14746 from jszczepkowski/deployment-fix
Auto commit by PR queue bot
2015-10-01 18:23:12 -07:00
k8s-merge-robot
4e63cafde1 Merge pull request #14748 from gmarek/nodecontroller
Auto commit by PR queue bot
2015-10-01 17:38:53 -07:00
nikhiljindal
c6deb442f9 Adding events to deployment 2015-10-01 16:38:08 -07:00
Kris
d0aa9dfbc7 Removing custom test timeout 2015-10-01 14:35:58 -07:00
k8s-merge-robot
a463b34507 Merge pull request #14822 from jszczepkowski/events-cleaunp
Auto commit by PR queue bot
2015-10-01 09:22:59 -07:00
David Oppenheimer
29dd7e3bb8 Fix race condition in DaemonSet controller. Fixes #14693. 2015-10-01 02:17:52 -07:00
Nikhil Jindal
7adb463dd0 Merge pull request #14199 from nikhiljindal/deploymentDescribe
Adding a DeploymentDescriber to kubectl
2015-09-30 21:34:24 -07:00
Brendan Burns
2cc6901d7d Merge pull request #14798 from kubernetes/revert-14616-controller-framework-flake
Revert "Controller framework test flake fix"
2015-09-30 10:04:48 -07:00
Jerzy Szczepkowski
83ec04ef58 Improved event message for ServiceController.
Improved event message for ServiceController. Follow up of #13992.
2015-09-30 13:20:41 +02:00
gmarek
a3723e2045 Separate deletion and termination evictors in NodeController, and fix rate_limited_queue.go 2015-09-30 09:42:01 +02:00
David Oppenheimer
f86b119242 Merge pull request #14550 from mesosphere/sttts-fix-daemonset-tests
Fix bugs in daemonset controller and e2e tests
2015-09-30 00:37:46 -07:00
Brendan Burns
d82567de85 Revert "Controller framework test flake fix" 2015-09-29 20:17:16 -07:00
Brendan Burns
22fa2db39a Merge pull request #14616 from mvdan/controller-framework-flake
Controller framework test flake fix
2015-09-29 20:16:36 -07:00
Prashanth Balasubramanian
c148332772 Deleting namespace cleans-up Ingress 2015-09-29 18:51:55 -07:00
Jerzy Szczepkowski
e5b2f310fb Fixed ignoring the rest of deployments after the first error in deployment controller.
Fixed ignoring the rest of deployments after the first error in deployment controller & added logging of errors.
2015-09-29 17:09:33 +02:00
Jerzy Szczepkowski
a5194c5ff4 HorizontalPodAutoscaler.Status kept by value, not by pointer.
HorizontalPodAutoscaler.Status kept by value, not by pointer. Fixes #14567.
2015-09-29 14:25:46 +02:00
deads2k
4cc63313e7 fix testclient prepend functions 2015-09-29 08:03:52 -04:00
nikhiljindal
153c57ffc8 Adding a DeploymentDescriber to kubectl 2015-09-28 14:21:24 -07:00
Mike Danese
2fa10f8ad6 delete job when namespace is deleted 2015-09-28 11:18:56 -07:00
Dr. Stefan Schimanski
a9582dfcbe Set NodeName on daemonset pods correctly
The pod template was overriding the NodeName.
2015-09-28 19:20:38 +02:00
Daniel Martí
fdd7322b38 Use DeleteDropWatch instead of Delete in test
Using the latter resulted in receiving extra OnDelete event callbacks. Using
DeleteDropWatch removed the flake.

Fixes #14138.
2015-09-26 11:55:34 -07:00
Daniel Martí
61e4eb4e1f Proper format string for ints 2015-09-26 11:52:33 -07:00
Daniel Martí
011db554e5 Simplify fake controller lock 2015-09-26 11:52:17 -07:00
Brian Grant
15c585e3ad Merge pull request #14578 from derekwaynecarr/fix_flake
Fix flake in gc test
2015-09-25 15:14:01 -07:00
derekwaynecarr
9bf88ddc6f Fix flake in gc test 2015-09-25 16:47:11 -04:00
Brian Grant
e3abcf7198 Merge pull request #14535 from derekwaynecarr/daemon_sets_status
DaemonSets adds a Status subresource
2015-09-25 13:30:55 -07:00
Brian Grant
2da7e8d41f Merge pull request #14316 from mikedanese/dedup
consolidate a bunch of FakePodControl testclients into a shared one
2015-09-25 13:29:13 -07:00
Brian Grant
0c278ce56a Merge pull request #14249 from markturansky/prov_claim_annotations
Allow pre-binding of Persistent Volumes to PVClaims
2015-09-25 13:26:29 -07:00
Brian Grant
f62432212a Merge pull request #14351 from zhengguoyong/del-unused-code
del the unused code
2015-09-25 13:16:06 -07:00
Brian Grant
44b0bb1ae7 Merge pull request #14325 from mikedanese/podgc
add pod garbage collection
2015-09-25 11:24:01 -07:00
Brian Grant
296888fb70 Merge pull request #14297 from derekwaynecarr/improve_namespace_controller
Improve conflict errors in namespace controller
2015-09-25 11:04:01 -07:00
derekwaynecarr
aead9d3291 DaemonSets adds a Status subresource 2015-09-25 12:13:54 -04:00
Mike Danese
824768d604 consolidate a bunch of FakePodControl testclients into a shared one 2015-09-24 23:21:20 -07:00
Mike Danese
376faea1cf add pod garbage collection 2015-09-24 22:47:53 -07:00
Brian Grant
26fe0823d5 Merge pull request #14250 from zhengguoyong/LoadBalancer
update createExternalLoadBalancer to createLoadBalancer
2015-09-24 18:27:35 -07:00
Chao Xu
ae1293418b move experimental/v1 to experimental/v1alpha1;
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Eric Tune
50f8f0c782 Merge pull request #14343 from erictune/job-update
Job update
2015-09-24 13:54:54 -07:00
derekwaynecarr
f92755acab Improve conflict errors in namespace controller 2015-09-24 10:52:55 -04: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
markturansky
f2378a2da7 shortened annotation key name, improved comments 2015-09-23 22:02:08 -04:00
Eric Tune
f899afb896 Merge pull request #14414 from socaa/unit
Unit tests for metrics_client.go
2015-09-23 16:25:42 -07:00
Brendan Burns
77fd388485 Increase a bunch of timeouts to reduce flakes 2015-09-23 11:09:03 -07:00
Ewa Socala
1c74b33042 Unit tests for metrics_client.go 2015-09-23 17:36:18 +02:00
markturansky
09600095c4 allow pre-binding of persistent volumes to pvclaims 2015-09-23 10:24:42 -04:00
eulerzgy
64f96e4c8c update createExternalLoadBalancer to createLoadBalancer 2015-09-23 11:09:54 +08:00
Eric Tune
6dbb781093 Merge pull request #14320 from erictune/fix-daemonset-logging
Reduce verbosity of DaemonSet controller.
2015-09-22 13:36:46 -07:00
Eric Tune
95a44be2ef Job status updates.
Added status REST storage.
Added validation for Status Updates.
Changed job controller to update status rather than just job
(which ignores status updates).
2015-09-22 11:39:35 -07:00
Eric Tune
b113b5ac2a Merge pull request #14336 from erictune/more-verbosity-job-controller
Log the error when unable to update job.
2015-09-22 11:03:11 -07:00
k8s-merge-robot
014947c16c Merge pull request #14322 from mikedanese/dead-code
Auto commit by PR queue bot
2015-09-22 07:05:27 -07:00
eulerzgy
91044f3bf2 del the unused code 2015-09-22 19:07:06 +08:00
Eric Tune
c99df5e3a4 Log the error when unable to update job. 2015-09-21 21:26:06 -07:00
Mike Danese
87cacda8a7 delete a bunch of dead code in pkg/controller 2015-09-21 16:38:43 -07:00
Eric Tune
a224eec4dc Reduce verbosity of DaemonSet controller. 2015-09-21 15:45:38 -07:00
Jordan Liggitt
079d5429de Retry service account update when adding token reference 2015-09-21 11:09:46 -04: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
k8s-merge-robot
3d71d8f38b Merge pull request #14220 from ghodss/replication-manager-comments
Auto commit by PR queue bot
2015-09-19 00:55:59 -07:00
k8s-merge-robot
fa86f0749d Merge pull request #14195 from mikedanese/daemon-log
Auto commit by PR queue bot
2015-09-18 23:33:12 -07:00
k8s-merge-robot
7425cd5a22 Merge pull request #14209 from nikhiljindal/deploymentController
Auto commit by PR queue bot
2015-09-18 22:51:47 -07:00
nikhiljindal
89e9691080 Adding scale up/down code to DeploymentController 2015-09-18 19:24:16 -07:00
Sam Ghods
436fedd672 Clean up comments on replication manager 2015-09-18 18:52:50 -07:00
Mike Danese
0ae2334a4f sort jobs by creation timestamp to make getPodJob deterministic 2015-09-18 14:48:22 -07:00
Mike Danese
5965760751 change log level on a lot of glog calls in job controller 2015-09-18 14:48:22 -07:00
Mike Danese
267cc9de91 serialize access to active with a lock 2015-09-18 14:48:22 -07:00
Mike Danese
144d72ca7b fix incorrect log statement in daemon controller 2015-09-18 12:19:07 -07:00
Mike Danese
e29e606792 make JobController RestartPolicy independent 2015-09-18 11:48:47 -07:00
Mike Danese
22072af90d rename jobmanager to jobcontroller 2015-09-18 11:48:47 -07:00
Daniel Martí
586cb9126a Move pkg/util.Time to pkg/api/unversioned.Time
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Alex Mohr
bdfd469a85 Merge pull request #14137 from caesarxuchao/13823
rebase 13823
2015-09-17 15:25:52 -07:00
k8s-merge-robot
c1eb1a1b2f Merge pull request #13791 from fgrzadkowski/fix_secrets_in_docker
Auto commit by PR queue bot
2015-09-17 15:13:29 -07:00
k8s-merge-robot
a5d3918082 Merge pull request #14110 from derekwaynecarr/event_name_against_api_conventions
Auto commit by PR queue bot
2015-09-17 14:40:31 -07:00
Kris
c5f22a025a Regenerating everything 2015-09-17 14:09:53 -07:00
Kris
f4ad00d9ae Moving Status object to a common package 2015-09-17 14:09:53 -07:00
k8s-merge-robot
36eb7372c8 Merge pull request #13259 from soltysh/job_controller_logic
Auto commit by PR queue bot
2015-09-17 13:22:34 -07:00
k8s-merge-robot
055f5ff9b9 Merge pull request #13649 from markturansky/prov_deleter
Auto commit by PR queue bot
2015-09-17 12:59:45 -07:00
k8s-merge-robot
7cee028497 Merge pull request #13778 from smarterclayton/unready_endpoints
Auto commit by PR queue bot
2015-09-17 11:36:17 -07:00
markturansky
c2de9e9647 Added volume.Deleter interface and simple HostPath implementation 2015-09-17 12:08:58 -04:00
Filip Grzadkowski
7fe34f2050 Introduce nsenter writer for volume plugins 2015-09-17 16:40:29 +02:00
derekwaynecarr
1acc203b36 Node controller produces events with invalid names 2015-09-17 09:59:48 -04:00
k8s-merge-robot
e8f77b3673 Merge pull request #14067 from deads2k/add-sa-token-resolver
Auto commit by PR queue bot
2015-09-17 06:51:00 -07:00
Clayton Coleman
bf2decce81 Add NotReadyAddresses to Endpoints
In many cases clients may wish to view not ready addresses for endpoints
in order to do set membership prior to a pod being ready. For instance,
a pod that uses the service endpoints to connect to other pods under
the same service, but does not want to signal ready before it has
contacted at least a minimal number of other pods.

This is backwards compatible with old servers and clients. There is
an additional cost in size of endpoints before services ramp up, which
will add minor CPU and memory use for services that have a significant
number of pods which have not become ready.
2015-09-17 09:41:56 -04: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
deads2k
32a495acb6 add helper methods for SA token secret checks 2015-09-17 07:50:09 -04:00
Maciej Szulik
8cefa2ee55 Job controller logic 2015-09-17 10:05:33 +02:00
Jerzy Szczepkowski
722b0a6cf8 Unittests for horizontal pod autoscaler controller.
Unittests for horizontal pod autoscaler controller.
2015-09-17 09:32:05 +02:00
k8s-merge-robot
f44432ae7b Merge pull request #13702 from ghodss/ghodss-yaml-upgrade
Auto commit by PR queue bot
2015-09-16 22:27:24 -07:00
k8s-merge-robot
ac8e548f35 Merge pull request #13922 from jszczepkowski/events-cleaunp
Auto commit by PR queue bot
2015-09-16 18:44:06 -07:00
k8s-merge-robot
426d4a2477 Merge pull request #13945 from caesarxuchao/kube-api-prefix
Auto commit by PR queue bot
2015-09-16 18:43:55 -07:00
k8s-merge-robot
75bce0ed8d Merge pull request #14000 from mikedanese/nc_spam
Auto commit by PR queue bot
2015-09-16 04:45:40 -07:00
Jerzy Szczepkowski
04919ebfa9 Fixed reasons of some events.
Fixed reasons of some events: made consistent with API conventions (CamelCase).
2015-09-16 08:46:31 +02:00
k8s-merge-robot
20d74e9fb0 Merge pull request #13983 from mikedanese/ds_cleanup
Auto commit by PR queue bot
2015-09-15 21:33:47 -07:00
Jeff Lowdermilk
e0aeb1151b Merge pull request #9870 from markturansky/recyc_config
Allow Volume Plugins to be configurable
2015-09-15 17:53:49 -07:00
Mike Danese
c24ef49c90 only log when we are actually cancelling an eviction in the node controller 2015-09-15 14:45:56 -07:00
k8s-merge-robot
f03a267089 Merge pull request #13895 from jhadvig/typos_fix
Auto commit by PR queue bot
2015-09-15 14:29:06 -07:00
Mike Danese
4e9a6c4c4b rename method as part of renaming daemon to daemonset 2015-09-15 11:43:15 -07:00
Chao Xu
9bef5ff99d register experimental apis as apis/experimental/..
mark --api-version as deprecated
2015-09-15 11:25:01 -07:00
markturansky
7bc55b5aea configurable pv recyclers 2015-09-15 12:48:25 -04:00
k8s-merge-robot
1381d0cc36 Merge pull request #13887 from nikhiljindal/deploymentController
Auto commit by PR queue bot
2015-09-14 22:01:06 -07:00
nikhiljindal
c97b9db700 Adding a deploymentController 2015-09-14 18:39:46 -07:00
k8s-merge-robot
653e5defa5 Merge pull request #13855 from jiangyaoguo/fix-reason-reporting-in-controller
Auto commit by PR queue bot
2015-09-14 12:32:03 -07:00
Jeff Lowdermilk
e25ae7fdb2 Merge pull request #13833 from caesarxuchao/central-latest
[WIP] Making a generic latest package
2015-09-14 09:26:58 -07:00
Jerzy Szczepkowski
e8ceee0d6f Events for HorizontalPodAutoscalers.
Implemented events for reconcilation of HorizontalPodAutoscalers.
2015-09-14 16:00:31 +02:00
jiangyaoguo
079f1e7015 Fix reason reporting in controller 2015-09-13 11:49:14 +08:00
jhadvig
7582e90d01 Minor typos fix 2015-09-12 21:16:22 +02:00
Chao Xu
dd6c121d7f massive changes 2015-09-11 17:31:47 -07:00
Mike Danese
1065872d29 rebase and resolve a huge amount of conflicts to keep this up to date (does this commit have more LOC changed than the original implementation? that would be funny...) 2015-09-11 17:04:34 -07:00
Ananya Kumar
c7628fae43 Add daemon manager 2015-09-11 16:56:08 -07:00
Daniel Smith
ccd9e3e247 Run all automated tools 2015-09-11 16:11:08 -07:00
Daniel Smith
4c2adabf42 move; sed replace 2015-09-11 16:03:22 -07:00
k8s-merge-robot
52ef0599d8 Merge pull request #13796 from jszczepkowski/hpa-rename
Auto commit by PR queue bot
2015-09-11 00:33:22 -07:00
Abhishek Shah
44ce4aa423 Create a LB for a K8S with the LB-IP provided by user. 2015-09-10 21:05:06 -07:00
Daniel Smith
b225c1d47a Run gofmt (separate commit for easy rebases) 2015-09-10 17:17:59 -07:00
Daniel Smith
15b30b8b09 Move version agnostic parts of client
pkg/client/unversioned/cache -> pkg/client/cache
pkg/client/unversioned/record -> pkg/client/record
2015-09-10 17:17:59 -07:00
Mike Danese
b0457bee94 Merge pull request #13058 from mvdan/go1.5
Race condition and test fixes
2015-09-10 15:10:19 -07:00
Daniel Martí
d15de72a92 Fix race condition in controller_test
Our WaitGroup.Add() call might happen after some WaitGroup.Done() calls done
by the controller, so make sure that doesn't happen by doing the Add() calls
before letting the controller run.

--- FAIL: TestUpdate (2.00s)
panic: sync: WaitGroup is reused before previous Wait has returned [recovered]
        panic: sync: WaitGroup is reused before previous Wait has returned
2015-09-10 14:33:23 -07:00
tummychow
78ce5da988 Move util.StringSet into its own package
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
k8s-merge-robot
1313e3b14e Merge pull request #13700 from mikedanese/daemon_set
Auto commit by PR queue bot
2015-09-10 10:15:45 -07:00
Mike Danese
bf881f187e rename expapi.Daemon to expapi.DaemonSet 2015-09-10 08:34:26 -07:00
Jerzy Szczepkowski
65d43a40e5 Changed nameing in controller for HorizontalPodAutosclaer.
Changed nameing in controller for HorizontalPodAutosclaer to make it consistent with coding conventions.
2015-09-10 15:10:07 +02:00
Chao Xu
002dcc6343 Merge pull request #13737 from wojtek-t/switch_to_node_in_registry
Rename "minion" to "node" in few places.
2015-09-09 17:49:22 -07:00
Wojciech Tyczynski
cd1ac360de Rename "minion" to "node" in few places. 2015-09-09 16:18:23 +02:00
Jerzy Szczepkowski
6998247e1b Implemented removal of Deployments, Daemons & HorizontalPodAutoscalers when Namespace is removed.
Implemented removal of Deployments, Daemons & HorizontalPodAutoscalers when Namespace is removed. Added unittest. Fixes #12735.
2015-09-09 10:59:43 +02:00
Sam Ghods
f6fb0e9236 Fix yaml booleans and ints not always marshaling to strings 2015-09-08 20:20:05 -07:00
Jerzy Szczepkowski
bd8227b92c Memory based horizontal pod autoscaling.
Implemented horizontal autoscaling of pods based on memory consumption.
2015-09-08 12:14:04 +02:00
k8s-merge-robot
bb3e20e361 Merge pull request #13642 from gmarek/nodecontroller_race
Auto commit by PR queue bot
2015-09-07 13:01:59 -07:00
gmarek
98b954c74c Add a mutex to assure atomicity of reat_limited queue operations and remove 'leaky' version of it 2015-09-07 15:04:59 +02:00
Marcin Wielgus
02c30c5d61 Update for scaling rules in HorizontalPodAutoscaler 2015-09-07 12:30:22 +02:00
Chao Xu
9fc79e9d99 refactor testapi and test scripts to prepare for multiple API groups. 2015-09-04 18:01:32 -07:00
Quinton Hoole
fc946ce4a4 Merge pull request #12600 from derekwaynecarr/resource_quota_request
Update ResourceQuota for resource requirements requests
2015-09-04 12:39:46 -07:00
Quinton Hoole
7bbe516b95 Merge pull request #13303 from mwielgus/hpa_heapster_interface
MetricsClient for HorizontalPodAutoscaler
2015-09-04 09:09:54 -07:00
Quinton Hoole
e5e2bc9580 Merge pull request #10833 from markturansky/loosen_binding
Allow PV/Claim matching on inexact access modes
2015-09-04 09:06:31 -07:00
k8s-merge-robot
5d8a6049be Merge pull request #12848 from wojtek-t/private_watch_cache
Auto commit by PR queue bot
2015-09-03 13:06:18 -07:00
derekwaynecarr
2e76842eb7 Update resource quota for requests 2015-09-03 14:24:59 -04:00
markturansky
0e7f73ad67 expand volume.Spec to include full Volume and PV 2015-09-03 08:57:32 -04:00
k8s-merge-robot
f5c2d90c3a Merge pull request #12293 from deads2k/testclient-specific-reaction
Auto commit by PR queue bot
2015-09-02 09:18:24 -07:00
Brendan Burns
43e7c9b211 Merge pull request #13367 from spothanis/cinder
Cinder Volume Plugin
2015-09-01 10:05:15 -07:00
deads2k
7e180c258d update testclient for delegating reaction chain 2015-09-01 12:58:35 -04:00
Marcin Wielgus
064b09ff0b MetricsClient for HorizontalPodAutoscaler 2015-09-01 17:24:11 +02:00
Daniel Schierbeck
08eec7c6b9 Fix a typo in the documentation 2015-08-31 10:42:34 +02:00
Wojciech Tyczynski
e202f9c797 Add resource version to Store Replace params. 2015-08-31 09:49:12 +02:00
Sreekanth Pothanis
f5da6b34ce Cinder Volume Plugin 2015-08-30 19:56:27 -07:00
Prashanth B
05b205bab6 Revert "Volume Plugin for Cinder; Openstack Block Storage" 2015-08-28 10:56:24 -07:00
Prashanth B
8d0d54ffed Merge pull request #6689 from spothanis/cinder-vol-plugin
Volume Plugin for Cinder; Openstack Block Storage
2015-08-28 10:47:31 -07:00
markturansky
0b6030f50c added better matching for PV access modes 2015-08-27 15:34:07 -04:00
Yu-Ju Hong
7b162c092f Merge pull request #12972 from mwielgus/kubectl_describe_hpa
Kubectl describe for experimental HorizontalPodAutoscaler
2015-08-26 09:55:30 -07:00
Jerzy Szczepkowski
08594dab8c Added ProxyGet method to services client.
Added ProxyGet method to services client.
2015-08-26 16:38:13 +02:00
Marcin Wielgus
55cd0d565e Kubectl describe for experimental HorizontalPodAutoscaler 2015-08-26 16:28:50 +02:00
Filip Grzadkowski
1a8b400c3e Merge pull request #13147 from mwielgus/hpa_impl
Implementation of HorizontalPodAutoscaler
2015-08-26 15:36:27 +02:00
Marcin Wielgus
df0a0ed37e Implementation of HorizontalPodAutoscaler 2015-08-26 14:51:54 +02:00
Sreekanth Pothanis
c841a20361 Cinder Volume Plugin 2015-08-25 15:13:56 -07:00
Clayton Coleman
940cc2837c Review comments 2015-08-25 14:18:07 -03:00
Clayton Coleman
8a62f1828d Evict terminating pods 2015-08-25 14:17:39 -03:00
Yu-Ju Hong
9f508e9422 Merge pull request #13076 from invenfantasy/master
Cleanup deprecated Forever function
2015-08-25 10:07:10 -07:00
Salvatore Dario Minonne
8e4d74988a to add tests for RC selector overlapping and fix few comments 2015-08-25 10:02:20 +02:00
Marcin Wielgus
1ce8bb7bb2 Scale subresource querying in HorizontalPodAutoscaler 2015-08-24 16:42:25 +02:00
caogaojin
60cb4406e9 Cleanup deprecated Forever function
Since util.Forever function has been deprecated, we should cleanup these
pieces of code.
2015-08-24 10:31:59 +08:00
k8s-merge-robot
44c76d5319 Merge pull request #12957 from smarterclayton/handle_terminating_pods
Auto commit by PR queue bot
2015-08-20 21:47:00 -07:00
Abhishek Shah
b6b8e99393 External IPs support. 2015-08-20 16:10:01 -07:00
Saad Ali
5ec3c78190 Merge pull request #8366 from justinsb/idempotent_loadbalancer
Make LoadBalancer creation more self-healing; don't delete on AWS
2015-08-20 14:30:55 -07:00
Clayton Coleman
2aaf8bddc2 Update controllers and client to handle terminating pods 2015-08-20 11:04:39 -04:00
Wojciech Tyczynski
5931cc74cc Unification refactoring to pkg/registry 2015-08-20 11:17:23 +02:00
Wojciech Tyczynski
3b3a706eef Merge pull request #12792 from jszczepkowski/hpa-controller2
Experimental client for horizontal pod autoscaler.
2015-08-20 10:50:02 +02:00
Clayton Coleman
c1a40d803c Node controller did not handle an error
This means if List() fails nodes are considered deleted (which is bad)
2015-08-19 12:54:41 -04:00
Jerzy Szczepkowski
f2e15fd538 Experimental client for horizontal pod autoscaler.
Implementation of experimental client for horizontal pod autoscaler. Placeholder implementation for controller for horizontal pod autoscaler.
2015-08-19 09:39:17 +02:00
Robert Bailey
08e6a43c1d Revert "Merge pull request #9165 from smarterclayton/graceful"
This reverts commit 4f856b595d, reversing
changes made to d78525a83b.

Conflicts:
	pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Kris Rousey
ae6c64d9bb Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
Clayton Coleman
edb108802d Handle gracefully terminated pods in node controller
Eviction should retry longer and wait for completion of the pod.
2015-08-18 09:08:45 -04:00
Clayton Coleman
b842a7dd15 Revert "Revert "Gracefully delete pods from the Kubelet""
This reverts commit 98115facfd.
2015-08-18 08:57:02 -04:00
Justin Santa Barbara
8c365d51c7 servicecontroller relies on cloudprovider to delete LB if needed
We previously made the cloudproviders take on the responsibility of deleting
existing load balancers; this lets us simplify the servicecontroller logic
and also lays the groundwork for more efficient cloudprovider LB implementations
to do an in-place change on a LB.
2015-08-17 08:58:46 -04:00
Justin Santa Barbara
87df1d6fb6 Change CreateTCPLoadBalancer -> EnsureTCPLoadBalancer; implementations auto-delete if already exists
Previously the servicecontroller would do the delete, but by having the cloudprovider
take that task on, we can later remove it from the servicecontroller, and the
cloudprovider can do something more efficient.
2015-08-17 08:58:45 -04:00
Justin Santa Barbara
1ab62e541b Add more events to LoadBalancer management
It would be nice to see these events in the service like we do with pods;
also we've had trouble here so a few more events would be handy!
2015-08-17 08:58:45 -04:00
jiangyaoguo
5d3522dc7a Keep event reason consistant in scheduler and controller 2015-08-13 11:33:32 +08:00
Bryan Stenson
9541414742 create cloudprovider "providers" package
move all providers into new package
    update all references to old package path
2015-08-11 22:36:51 -07:00
Piotr Szczesniak
1df0267f4a Merge pull request #12551 from eparis/underscore-to-dash
Update code and docs to use - in flag names instead of _
2015-08-12 07:16:31 +02:00
CJ Cullen
64e5e1a2dd Merge pull request #12427 from krousey/vetclean
Fix go vet errors
2015-08-11 15:14:00 -07:00
Brendan Burns
296ffdf925 Merge pull request #12546 from brendandburns/rc
Switch the order of delete, delete pods before deleting nodes.
2015-08-11 14:14:09 -07:00
Kris Rousey
565189f5b8 Correcting all go vet errors 2015-08-11 13:55:37 -07:00
Eric Paris
5aa495cdad Update code to use - in flag names instead of _ 2015-08-11 16:31:52 -04:00
Brendan Burns
34eec1fc78 Switch the order of delete, delete pods before deleting nodes. 2015-08-11 12:34:37 -07:00
markturansky
8e0d391b1e Refactored persistent volume controllers to new packaging structure 2015-08-10 23:18:48 -04:00
Alex Robinson
057be1fc8d Merge pull request #12406 from smarterclayton/namespace_estimate_delete
Namespace must estimate and requeue content deletions
2015-08-10 15:01:35 -07:00
Clayton Coleman
62b6ca1643 Namespace must estimate and requeue content deletions 2015-08-10 11:20:21 -04:00
Veres Lajos
9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
Clayton Coleman
61c7beb51f Add an Enqueue method to framework.Controller
Allows clients to requeue delta events in the event they
need to delay processing.
2015-08-07 13:21:49 -04:00
gmarek
819777e9e8 Correctly handle Node deletion in NodeController 2015-08-06 15:17:44 +02:00
Mike Danese
17defc7383 run gofmt on everything we touched 2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Alex Mohr
c29c8414e1 Merge pull request #8607 from liggitt/serviceaccount_groups
Add groups to service account user.Info
2015-08-04 22:22:18 -07:00
deads2k
182885e897 make testclient more precise 2015-08-04 13:35:59 -04:00
Jordan Liggitt
709c2c8885 Add groups to service account JWT 2015-08-04 13:03:31 -04:00
gmarek
2201e75666 NodeController small cleanup 2015-08-04 14:44:14 +02:00
gmarek
d27ad5b714 Controller codebase refactoring 2015-08-03 17:06:25 +02:00
Mike Danese
618416baeb Merge pull request #10783 from mikedanese/make-test-client-threadsafe
make testclient threadsafe by guarding internal state with accessors
2015-07-29 17:05:37 -07:00
Mike Danese
1b84fb7d74 make testclient threadsafe by guarding internal state with accessors 2015-07-29 16:17:17 -07:00
jayunit100
53ee37959b Rename getPodControllers to getPodController so that the truncate/ignore of overlapping RCs is clear 2015-07-29 18:17:40 -04:00
Ananya Kumar
47dd0bc6f9 Refactor package controller 2015-07-29 09:54:35 -07:00
Mike Danese
d167fa27e0 rename StoreToControllerLister -> StoreToReplicationControllerLister to make room for more controllers 2015-07-27 16:13:47 -07:00
Prashanth Balasubramanian
f4fe40e2d1 Delete overlapping controllers, add clarity to docs 2015-07-24 12:13:26 -07:00
CJ Cullen
2a803769fc Fix gofmt in replication_controller_test.go 2015-06-30 17:01:15 -07:00
Prashanth Balasubramanian
90ebc1ad29 Sort overlapping rcs 2015-06-29 15:30:19 -07:00
Maxwell Forbes
28946766a3 Merge pull request #9807 from krousey/container_manifest
Removing ContainerManifest
2015-06-24 17:55:29 -07:00
Kris Rousey
d13421e084 Removing ContainerManifest 2015-06-24 11:31:34 -07:00
Prashanth Balasubramanian
35950c04ff Avoid syncing rcs till the pods controller has synced. 2015-06-19 18:20:28 -07:00
Prashanth Balasubramanian
9ed9bd1c4f Add a generation number to the object meta of all objects, and status of rcs 2015-06-19 14:32:08 -07:00
Chao Xu
a309d3e652 Update pkg/api/testapi because namespace is always in the path since we remove v1beta1/2 2015-06-16 14:12:03 -07:00
Chao Xu
ca72165b20 remove most references to api.PreV1Beta3 2015-06-03 20:09:03 -07:00
feihujiang
ebc8eab590 get Events to be logged 2015-06-03 15:05:07 +08:00
Filip Grzadkowski
98115facfd Revert "Gracefully delete pods from the Kubelet" 2015-06-02 23:40:05 +02:00
Clayton Coleman
9d3631e3de Handle deleted pods in replication and endpoint controllers
Pods that are slated for deletion should be excluded from
replication and endpoints immediately.
2015-06-01 19:24:01 -04:00
Prashanth B
6c209ec193 Revert "Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones"" 2015-05-29 09:24:39 -07:00
Tim Hockin
081ab3abac Merge pull request #8853 from caesarxuchao/HostToNodeName
update PodSpec.Host to PodSpec.NodeName
2015-05-28 15:50:12 -07:00
Chao Xu
9c1153322e update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go 2015-05-28 14:10:06 -07:00
Tim Hockin
b69fad211e Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones" 2015-05-28 10:23:55 -07:00
Wojciech Tyczynski
6ffe46a9e0 Merge pull request #8822 from bprashanth/fifo_rc
Wake up rcs when pods get DeletionFinalStateUnknown tombstones
2015-05-28 10:50:28 +02:00
Wojciech Tyczynski
33318f0162 Use generated DeepCopy methods. 2015-05-28 09:03:27 +02:00
Prashanth Balasubramanian
8fa66bd962 Delta fifo includes objects in DeleteFinalStateUnknow, rcs stop faster 2015-05-27 16:45:51 -07:00
Anastasis Andronidis
9e3a540940 rename resize to scale 2015-05-27 19:08:06 +02:00
Dawn Chen
ddbf851b6e Merge pull request #8000 from bprashanth/rc_ttl_cleanup
Delete expectations of a deleted rc instead of letting them expire
2015-05-22 10:33:09 -07:00
Daniel Smith
80c3506484 Merge pull request #8494 from liggitt/gate_tokens_controller
Wait until stores are filled before processing service account token events
2015-05-21 10:29:53 -07:00
Jordan Liggitt
49ceb82179 Wait until stores are filled before processing service account token events 2015-05-20 22:19:42 -04:00
kargakis
b4c3318efd Skip sorting if all pods will be deleted 2015-05-20 15:20:25 +02:00
Prashanth Balasubramanian
c0a8981b74 Delete expectations of a deleted rc instead of letting them expire 2015-05-19 11:01:45 -07:00
Daniel Smith
c72eedf50a Merge pull request #8138 from bprashanth/rc_race
Check expectations before filtering through active pods.
2015-05-18 15:36:21 -07:00
Prashanth Balasubramanian
4200033c0a Add a simple master benchmark and a wrapper to run it. 2015-05-15 17:30:17 -07:00
Lv Lv
433a249610 Fix a potential bug in TestControllerBurstReplicas: manager.podStore.Store.Add(&pod) actually adds a pointer to a local copy of pod 2015-05-15 13:41:34 +08:00
Prashanth Balasubramanian
54b6501349 Check expectations before filtering through active pods. 2015-05-12 14:42:08 -07:00
Jordan Liggitt
0955808668 ServiceAccountTokens controller 2015-05-11 17:18:05 -04:00
Prashanth Balasubramanian
4fdd5bc3f3 Ratelimit replica creation 2015-05-08 14:24:25 -07:00
Prashanth Balasubramanian
8bf0adf147 Add a getter to pod expectations and use it in unittests 2015-05-06 16:01:03 -07:00
Daniel Smith
8a47574644 Merge pull request #7468 from simon3z/serialized-reference
replica: serialize created-by reference
2015-05-05 16:42:42 -07:00
Zach Loafman
875e83a741 Revert "Revert "Security context - types, kubelet, admission"" 2015-05-05 16:02:13 -07:00
Zach Loafman
f48904fd5e Revert "Security context - types, kubelet, admission" 2015-05-05 15:20:39 -07:00
Federico Simoncelli
37038c4877 replica: serialize created-by reference
Fixes #7322

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-05 16:06:41 -04:00
Paul Weil
982bf19c20 security context initial implementation - squash 2015-05-05 13:46:13 -04:00
Daniel Smith
16a6fb8ef7 Replace calls to time.After with time.NewTimer for explicit stopping 2015-05-04 14:29:33 -07:00
Daniel Smith
36977ecb67 Merge pull request #7643 from bprashanth/rc_status
Requeue rc if a single get/put retry on status.Replicas fails
2015-05-04 12:15:30 -07:00
Prashanth Balasubramanian
864e12d995 Retry once and requeue on failure to update status.Replicas 2015-05-01 18:10:58 -07:00
Eric Paris
6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Prashanth Balasubramanian
a8fdf3d78b Update expiration timeout based on observed latencies 2015-05-01 08:53:51 -07:00
Piotr Szczesniak
11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Prashanth Balasubramanian
7592dabeba RcManager uses informers 2015-04-28 13:45:15 -07:00
nikhiljindal
dcc368c781 Removing more references to v1beta1 from pkg/ 2015-04-24 00:45:17 -07:00
Brian Grant
73322af8e8 Merge pull request #5842 from simon3z/rc-annotation
Replica Controller Name Annotation in Pods
2015-04-23 16:35:18 -07:00
Yu-Ju Hong
10ecbb8aab Fix pod filtering in replication controller 2015-04-22 16:09:14 -07:00
Federico Simoncelli
253ce4b6fe replication: annotate replicated pods with controller name
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-22 11:26:25 -04:00
Brian Grant
15c2986a07 Merge pull request #7067 from ravigadde/master
Added field selector for listing pods
2015-04-22 07:12:21 -07:00
Yu-Ju Hong
df2cbd4877 Prioritize deleting the non-running pods when reducing replicas
This changes instructs the replication controller to delete replicas in the
order of "unscheduled (pending)", "scheduled (pending)", and "scheduled
(running)" pods. This is less disruptive than deleting random pods.
2015-04-21 10:17:29 -07:00
Ravi Gadde
bf8f258471 Added field selector for listing pods. 2015-04-21 06:33:28 -07:00
Kris Rousey
594f514843 Changing a few remaining instances of passing pods around by value. I
avoided changing api.PodList.Items to []*api.Pod.
2015-04-20 15:26:45 -07:00
markturansky
34924af63d Fixed typos in comments 2015-04-16 08:52:36 -04:00
Saad Ali
6cfce2c7ee Merge pull request #6822 from derekwaynecarr/send_events_replication_controller
Replication controller gives failedCreate events
2015-04-15 11:27:23 -07:00
Daniel Smith
3fdfea3ad8 fix fake controller source watch behavior 2015-04-14 13:31:35 -07:00
derekwaynecarr
986c225311 Replication controller gives failedCreate events 2015-04-14 15:42:49 -04:00
Daniel Smith
d02139d2b4 Merge pull request #6771 from derekwaynecarr/ns_controller
Remove delay when deleting namespaces, move to new controller framework
2015-04-13 17:55:13 -07:00
Daniel Smith
1ec6b02e99 fix tests flaky due to timeouts 2015-04-13 15:16:59 -07:00
derekwaynecarr
c1a3fa0dae Remove delay when deleting namespaces, move to new controller framework 2015-04-13 15:18:22 -04:00
Daniel Smith
dd26cdf0f7 Fix comments; switch to watching nodes 2015-04-10 17:49:51 -07:00
Daniel Smith
395d69641e fix race 2015-04-10 16:02:51 -07:00
Daniel Smith
6835318d1e switch to require 'go controller.Run()' 2015-04-10 14:05:08 -07:00
Daniel Smith
880f922bb6 Add easy setup for simple controller
Also add tests; coverage up to 86.7%
2015-04-10 14:05:07 -07:00
Brendan Burns
fded23a777 Default replica controller nodeSelector using pod template.
Add default labels from pod if not present.
2015-04-09 20:50:37 -07:00
Derek Carr
6eb54e73e0 Merge pull request #5270 from lavalamp/fix7
Controller framework
2015-04-07 16:58:09 -04:00
Clayton Coleman
51db3bd654 Create a new testclient package that can be backed by disk files
Standardize how our fakes are used so that a test case can use a
simpler mechanism for providing large, complex data sets, as well
as represent queries over time.
2015-04-07 14:56:15 -04:00
Daniel Smith
3fe17b93cf Begin a controller framework. 2015-04-02 15:25:58 -07:00
Derek Carr
cfb6f1199b Merge pull request #5851 from smarterclayton/support_input_streams
Support input streams being returned by the APIserver
2015-03-24 22:41:24 -04:00
Clayton Coleman
bfb6b05311 Wait longer in TestWatchControllers
10ms is too slow for travis
2015-03-24 17:25:46 -04:00
nikhiljindal
7e3b7f9673 Updating unit tests so that they pass with v1beta3 api 2015-03-24 12:13:53 -07:00
Clayton Coleman
0902ffd70e Merge pull request #5746 from bprashanth/rc_genericetcd_interface
Migrate replication controllers to generic etcd
2015-03-24 11:45:59 -04:00
Wojciech Tyczynski
f7191d626d Change "/ns" to "/namespaces" in few remaining places. 2015-03-24 13:05:32 +01:00
Prashanth Balasubramanian
ef6601646d Migrate replication controllers to generic etcd 2015-03-23 17:59:25 -07:00
Salvatore Dario Minonne
31ddefc347 Finalize fields.Selector 2015-03-17 22:55:43 +01:00
Dawn Chen
34e9c82c70 Convert RestartPolicy to string for v1beta3.
Fixed #3607 and spiritually support #5475
2015-03-13 18:38:07 -07:00
Wojciech Tyczynski
07cf658100 Remove etcd references from ReplicationController 2015-03-13 10:36:54 +01:00
Prashanth Balasubramanian
28d9260c0b Sync replication count with the api server on pod creation/deletion. 2015-03-11 13:29:20 -07:00
Prashanth Balasubramanian
1970c2d201 Retry resizing replication controllers in kubectl 2015-03-02 20:26:41 -08:00
Steve Reed
38230ef12f Adds replication controller name to "Too many|few" logging 2015-02-12 09:18:56 -08:00
Brendan Burns
234f951867 Revert filtering unknown pods, as I believe that it is causing e2e flakes. 2015-02-05 20:57:01 -08:00
Brian Grant
7a13c2f0e3 Merge pull request #4169 from brendandburns/shell_sucks
Fix a regression where we never cleared out failed nodes.
2015-02-05 13:41:11 -08:00
Brendan Burns
6d0b8ea7a7 Fix a regression where we never cleared out failed nodes. 2015-02-05 10:55:57 -08:00
Brian Grant
2c9e620d43 Merge pull request #4102 from brendandburns/rc
Make the replication controller more resilient to event expiration in watch.
2015-02-05 07:08:35 -08:00
Brendan Burns
874859f6d3 Make the replication controller more resilient to event expiration in watch. 2015-02-03 22:15:12 -08:00
Yu-Ju Hong
4a72addaeb Factor out API defaulting from validation logic
Currently, the validation logic validates fields in an object and supply default
values wherever applies. This change factors out defaulting to a set of
defaulting callback functions for decoding (see #1502 for more discussion).

 * This change is based on pull request 2587.

 * Most defaulting has been migrated to defaults.go where the defaulting
   functions are added.

 * validation_test.go and converter_test.go have been adapted to not testing the
   default values.

 * Fixed all tests with that create invalid objects with the absence of
   defaulting logic.
2015-02-03 00:55:42 -08:00
Dan Mace
3d7f5cc642 Backport annotations to PodTemplateSpec
Backport annotation support to v1beta1 and v1beta2 PodTemplateSpec. This
allows ReplicationController users to specify annotations for Pods in
addition to labels.
2015-02-02 15:26:32 -05:00
Clayton Coleman
5603714df8 Use name generation on pods via replication controllers
The generated name is '<controllerName>-%s', unless controllerName-
would be long enough to cause a validation error.
2015-02-02 14:44:53 -05:00
Satnam Singh
358ace610d Merge pull request #3824 from smarterclayton/allow_panic_and_error_reporting
Allow panics and unhandled errors to be sent elsewhere
2015-01-27 13:18:43 -08:00
Brendan Burns
92d65b7c65 Add NodeSelector to the replication controller tests. 2015-01-27 10:58:46 -08:00
Clayton Coleman
19987612bf Replace code that eats errors with a more consistent reporting
In order to allow certain programmer error / unexpected error states
to be captured, replace sections that log and eat errors with a method
that can be centrally replaced.  This captures two common error sources,
replication errors, and apiserver code that returns invalid errors.
2015-01-26 20:54:29 -05:00
Clayton Coleman
e4dcbb6edb Explicitly handle errors received during watch
Log them as Error and then continue.
2015-01-19 11:10:45 -05:00
Tim Hockin
5f2dae4dd8 Merge pull request #3195 from lavalamp/numericWire
Add numeric type into api
2015-01-07 16:15:52 -08:00
Daniel Smith
35f54addca Update more packages, tests, binaries for quantity
make etcd registry pass test
fix kubelet config for quantity
fix openstack for quantity
fix controller for quantity
fix last tests for quantity
wire into binaries
fix controller manager
fix build for 32 bit systems
2015-01-07 15:21:35 -08:00