Anirudh
8fd7de5f13
Added unit test for adding reason with termination.
2016-11-03 13:47:09 -07:00
Anirudh
5ccd7a325e
Removing force deletion of pods from the node-controller
2016-11-01 11:44:34 -07:00
Anirudh
05365d7cb2
Moving deletion behavior from the NC into PodGC
...
This should be a NOP because we're just moving functionality
around and thanks to #35476 , the podGC controller should always
run anyway.
2016-10-27 11:56:15 -07:00
deads2k
0961784a9b
switch node controller to shared informers
2016-09-29 09:16:41 -04:00
gmarek
cb0a13c1e5
Move orphaned Pod deletion logic to PodGC
2016-09-28 13:58:31 +02:00
Justin Santa Barbara
54195d590f
Use strongly-typed types.NodeName for a node name
...
We had another bug where we confused the hostname with the NodeName.
To avoid this happening again, and to make the code more
self-documenting, we use types.NodeName (a typedef alias for string)
whenever we are referring to the Node.Name.
A tedious but mechanical commit therefore, to change all uses of the
node name to use types.NodeName
Also clean up some of the (many) places where the NodeName is referred
to as a hostname (not true on AWS), or an instanceID (not true on GCE),
etc.
2016-09-27 10:47:31 -04:00
Kubernetes Submit Queue
f9190ed61a
Merge pull request #30138 from gmarek/flags
...
Automatic merge from submit-queue
Expose flags for new NodeEviction logic in NodeController
Fix #28832
Last PR from the NodeController NodeEviction logic series.
cc @davidopp @lavalamp @mml
2016-08-18 00:41:28 -07:00
bprashanth
15c9826061
Nodecontroller doesn't flip readiness on pods if kubeletVersion < 1.2.0
2016-08-17 15:33:35 -07:00
gmarek
4cf698ef04
Expose flags for new NodeEviction logic in NodeController
2016-08-17 10:43:24 +02:00
AdoHe
b2ab4c6d9b
fix node controller event uid issue
2016-08-14 09:41:20 +08:00
gmarek
66224ce0bd
Change eviction logic in NodeController and make it Zone-aware
2016-08-02 14:21:52 +02:00
Seth Jennings
db6026c82a
node controller use shared pod informer
2016-07-20 15:26:19 -05:00
Seth Jennings
6d77f53af4
refactor maybeDeleteTerminatingPod
2016-07-20 15:26:19 -05:00
Prashanth Balasubramanian
2f9516db30
List all nodes and occupy cidr map before starting allocations
2016-07-16 13:54:01 -07:00
gmarek
f6b1c316e9
Allow switching rate limiter inside RateLimitedQueue
2016-07-14 15:38:14 +02:00
gmarek
5677a9845e
Split NodeController rate limiters between zones
2016-07-13 14:09:19 +02:00
gmarek
7524da877e
Reduce tightness of coupling in NodeController
2016-07-12 11:00:41 +02:00
gmarek
7f5f9d3a6f
Move CIDR allocation logic away from nodecontroller.go
2016-07-12 09:40:43 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Oleg Shaldybin
3b15d5be19
Use correct namespace in unit tests that use fake clientset
...
Fake clientset no longer needs to be prepopulated with records: keeping
them in leads to the name conflict on creates. Also, since fake
clientset now respects namespaces, we need to correctly populate them.
2016-06-28 11:26:34 -07:00
k8s-merge-robot
93037844c1
Merge pull request #27293 from caesarxuchao/add-patch-to-clientset
...
Automatic merge from submit-queue
[client-gen]Add Patch to clientset
* add the Patch() method to the clientset.
* I have to rename the existing Patch() method of `Event` to PatchWithEventNamespace() to avoid overriding.
* some minor changes to the fake Patch action.
cc @Random-Liu since he asked for the method
@kubernetes/sig-api-machinery
ref #26580
```release-note
Add the Patch method to the generated clientset.
```
2016-06-25 19:15:11 -07:00
saadali
926bb4cca0
Add patch status to Node internalclientset
2016-06-19 23:54:02 -07:00
Chao Xu
a29f6aa8ae
add Patch to clientsets
2016-06-17 10:30:58 -07:00
mqliang
17d5a302bb
make podcidr mask size configurable
2016-05-20 20:44:40 +08:00
mqliang
cf7a3475f3
Don't allow node controller to allocate into service CIDR range
2016-05-20 20:44:40 +08:00
gmarek
6d27009db1
NodeController doesn't evict Pods if no Nodes are Ready
2016-05-17 23:03:21 +02:00
mqliang
9011207f18
add namespace index to rc and pod
2016-05-06 17:12:36 +08:00
Chao Xu
8537095415
use fully qualified resource in fake clients actions
2016-04-20 19:44:40 -07:00
Chao Xu
49559a3332
Generate the typed clients under the clientset folder
2016-03-31 15:28:45 -07:00
harry
8472cfa214
Refactor throttle into util pkg
...
Fix missing throttle.go
2016-03-25 08:32:23 +08:00
harry
b0900bf0d4
Refactor diff into sub pkg
2016-03-21 20:21:39 +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
CJ Cullen
e7fc608df7
Immediately evict pods and delete node when cloud says node is gone.
2016-03-07 06:07:51 -08:00
Mike Danese
c1a7e280a3
fix pod eviction for gracefully terminationg pods
2016-02-26 17:34:15 -08:00
Chao Xu
ad46715f51
generate fake client for release_1_2
2016-02-17 16:10:02 -08:00
Chao Xu
97aecd002a
remove underscore in imported pkg names
2016-02-16 10:54:51 -08:00
gmarek
6b2507485f
Add FakeNeverRateLimitter
2016-02-08 11:06:25 +01:00
Daniel Smith
d84ac764a9
Merge pull request #20492 from erictune/labselunver
...
Move extensions.LabelSelector to unversioned
2016-02-04 23:17:40 -08:00
Chao Xu
1b047f8e67
rename legacy to core
2016-02-04 14:26:56 -08:00
Eric Tune
6133cb1f21
Move extensions.LabelSelector to unversioned.
...
Move type LabelSelector and type LabelSelectorRequirement from pkg/apis/extensions
This avoids an import loop when Job (and later DaemonSet, Deployment, ReplicaSet)
are moved out of extensions to new api groups.
Also Move LabelSelectorAsSelector utility from pkg/apis/extensions/ to pkg/api/unversioned/
Also its test.
Also LabelSelectorOp* constants.
Also the pkg/apis/extensions/validation functions ValidateLabelSelectorRequirement and
ValidateLabelSelector move to pkg/api/unversioned
The related type in pkg/apis/extensions/v1beta1/ is staying there. I might move
it in another PR if neccessary.
2016-02-04 13:46:34 -08:00
Chao Xu
fe7887f1ec
replace the client with clientset in controllers
2016-02-02 20:28:45 -08:00
Matt Liggett
0ba1b49b42
When a node becomes unreachable, do not evict DaemonSet-managed pods.
...
Part of the graduation requirement for DaemonSet spelled out in #15310 .
2016-01-28 11:08:52 -08:00
Minhan Xia
01829432db
update pod status once node becomes NotReady
2016-01-14 17:41:36 -08:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
Mike Danese
f784be33ac
actually validate semver in node controller rather than prefix checking
2015-12-03 14:49:44 -08:00
Wojciech Tyczynski
6dcb689d4e
Simplify List() signature in clients.
2015-12-03 09:54:07 +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
Wojciech Tyczynski
b6ef62af24
Use unversioned.ListOptions in clients.
2015-11-24 16:52:09 +01: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
Wojciech Tyczynski
f4d75e0a0a
Support timeout in watch requests
2015-10-24 13:12:49 +02: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
Mike Danese
836b68368b
make nodecontroller delete terminating pods on 1.0 nodes
2015-10-21 13:07:03 -07:00
feihujiang
a456b4c424
Remove useless codes about Minion kind
2015-10-19 19:29:45 +08:00
eulerzgy
4ed5f9d240
adjust package name for pkg/controller directory
2015-10-12 09:51:27 +08:00
gmarek
a3723e2045
Separate deletion and termination evictors in NodeController, and fix rate_limited_queue.go
2015-09-30 09:42:01 +02:00
Mike Danese
87cacda8a7
delete a bunch of dead code in pkg/controller
2015-09-21 16:38:43 -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
jiangyaoguo
079f1e7015
Fix reason reporting in controller
2015-09-13 11:49:14 +08: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
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
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Veres Lajos
9f77e49109
typofix - https://github.com/vlajos/misspell_fixer
2015-08-08 22:31:48 +01:00
gmarek
819777e9e8
Correctly handle Node deletion in NodeController
2015-08-06 15:17:44 +02:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
deads2k
182885e897
make testclient more precise
2015-08-04 13:35:59 -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