Commit Graph

399 Commits

Author SHA1 Message Date
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