Ivan Shvedunov
5651f822fd
Fix DaemonSet namespace handling for predicates
...
In order to determine whether a node should run its daemon pod,
DaemonController creates a dummy pod based on DaemonSet's template and
then uses scheduler predicates (currently GeneralPredicates) to test
whether such pod can be run by the node. The problem was that
DaemonController was not setting Namespace for the dummy pod. This was
not affecting currently used GeneralPredicates but this problem could
bite later when some namespace-dependent predicates are added to
GeneralPredicates or directly to DaemonController's node checks
(e.g. pod affinity).
Stumbled upon it while working on e2e test for #31136
2016-09-26 22:14:28 +03:00
Kubernetes Submit Queue
cd051703b3
Merge pull request #32877 from deads2k/client-09-fixup-lister
...
Automatic merge from submit-queue
change factorization of listers to make them easier to add
`Listers` have a tremendous amount of duplicate code. This factors that out.
@smarterclayton ptal.
2016-09-16 22:39:37 -07:00
deads2k
1bf17eb4e9
change factorization of listers to make them easier to add
2016-09-16 14:49:00 -04:00
deads2k
234d68be83
convert daemonset controller to shared informers
2016-09-16 10:40:46 -04:00
Mike Danese
a765d59932
move informer and controller to pkg/client/cache
...
Signed-off-by: Mike Danese <mikedanese@google.com>
2016-09-15 12:50:08 -07:00
deads2k
385831825b
update error handling for daemoncontroller
2016-09-12 11:01:46 -04:00
Mike Danese
9d7d77d4a3
fix log message to include ds name
...
and lower log level
2016-09-05 18:57:04 -07:00
Mike Danese
a615c426a5
Revert "daemonset controller should respect taints"
2016-09-01 12:54:16 -07:00
deads2k
4317173d3f
add names for workqueues to gather controller latency/depth metrics
2016-08-30 09:51:50 -04:00
Mike Danese
00f05b441e
daemonset controller should respect taints
2016-08-19 11:51:15 -07:00
Wojciech Tyczynski
331083727f
Change podNamespacer API
2016-08-17 16:55:01 +02:00
Wojciech Tyczynski
acfd8c787f
Avoid computing super-expensive DeepEqual on every pod update
2016-08-11 08:35:36 +02:00
mksalawa
2749ec7555
Create PredicateFailureReason, modify scheduler predicate interface.
2016-08-09 14:01:46 +02:00
Dominika Hodovska
816f6d32ca
Collapse duplicate informer creation paths
2016-08-04 09:02:13 +02:00
Michal Rostecki
59ca5986dd
Print/log pointers of structs with %#v instead of %+v
...
There are many places in k8s where %+v is used to format a pointer
to struct, which isn't working as expected.
Fixes #26591
2016-08-01 22:27:56 +02:00
k8s-merge-robot
a049a97820
Merge pull request #28803 from lukaszo/ds
...
Automatic merge from submit-queue
Make Daemonset use GeneralPredicates
fixes : #21454 #22205
2016-07-18 22:12:14 -07:00
Davanum Srinivas
2b0ed014b7
Use Go canonical import paths
...
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports
Fixes #29014
2016-07-16 13:48:21 -04:00
Łukasz Oleś
528bf7af3a
Make Daemonset use GeneralPredicates
...
fixes #21454 , fixes #22205
2016-07-13 14:50:29 +02:00
gmarek
d8958257c4
DaemonController doesn't take any actions when being deleted.
2016-07-12 09:43:08 +02:00
k8s-merge-robot
c12de567cd
Merge pull request #26931 from xiang90/fix_daemon
...
Automatic merge from submit-queue
daemon/controller.go: fix bugs in updateDaemonSetStatus
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel )]()
1. return when there is any error
2. fix StatusUpdateRetries loop
3. a few minor cleanup
2016-07-09 15:31:48 -07:00
k8s-merge-robot
8135154f7f
Merge pull request #26868 from xiang90/rm_all
...
Automatic merge from submit-queue
daemon/controller.go: remove unused func enqueueAllDaemonSets
2016-07-06 23:36:45 -07:00
Xiang Li
8e4966da82
daemon/controller.go: fix bugs in updateDaemonSetStatus
...
1. return when there is any error
2. fix StatusUpdateRetries loop
3. a few minor cleanup
2016-07-05 12:34:15 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Xiang Li
880432ca71
daemon/controller.go: minor code cleanup
2016-06-27 10:43:06 -07:00
Xiang Li
053d971853
daemon/controller.go: remove unused func enqueueAllDaemonSets
2016-06-27 10:40:37 -07:00
Xiang Li
9a1779110c
daemon/controller.go: refactor worker
2016-06-05 23:29:57 -07:00
Paul Weil
4d6fee74d0
daemonset handle DeletedFinalStateUnknown
2016-05-19 17:16:34 -04:00
Saad Ali
19169889d4
Merge pull request #24908 from pmorie/daemon-controller-loc
...
Reduce LOC in daemon controller tests
2016-05-12 15:51:55 -07:00
k8s-merge-robot
08440b5dcc
Merge pull request #24836 from Clarifai/gpu-impl
...
Automatic merge from submit-queue
WIP v0 NVIDIA GPU support
```release-note
* Alpha support for scheduling pods on machines with NVIDIA GPUs whose kubelets use the `--experimental-nvidia-gpus` flag, using the alpha.kubernetes.io/nvidia-gpu resource
```
Implements part of #24071 for #23587
I am not familiar with the scheduler enough to know what to do with the scores. Mostly punting for now.
Missing items from the implementation plan: limitranger, rkt support, kubectl
support and docs
cc @erictune @davidopp @dchen1107 @vishh @Hui-Zhi @gopinatht
2016-05-12 14:04:15 -07:00
Rudi Chiarito
362c763fca
WIP v0 NVIDIA GPU support
...
Implements part of #24071
I am not familiar with the scheduler enough to know what to do with the scores. Punting for now.
Missing items from the implementation plan: limitranger, rkt support, kubectl
support and user docs
2016-05-09 19:20:05 -04:00
mqliang
c10f43a2e5
implement AddIndexers for SharedIndexInformer
2016-05-06 21:23:18 +08:00
mqliang
9011207f18
add namespace index to rc and pod
2016-05-06 17:12:36 +08:00
Clayton Coleman
fdb110c859
Fix the rest of the code
2016-04-29 17:12:10 -04:00
Paul Morie
b7089f81da
Reduce LOC in daemon controller tests
2016-04-28 00:04:45 -04:00
gmarek
3171aac57c
Generated clients can return their RESTClients, RESTClient can return its RateLimiter
2016-04-27 22:15:10 +02:00
deads2k
8b707016f9
convert daemonset controller to SharedInformer
2016-04-21 08:20:39 -04:00
Mike Danese
14284291da
only include running and pending pods in daemonset should place calculation
2016-04-06 12:30:50 -07:00
k8s-merge-robot
9ad3b9d669
Merge pull request #23463 from mikedanese/ds-event
...
Automatic merge from submit-queue
add an event for when a daemonset can't place a pod due to insufficen…
…t resource or port conflict
https://github.com/kubernetes/kubernetes/issues/23013#issuecomment-201076147
2016-04-03 05:16:31 -07:00
Chao Xu
49559a3332
Generate the typed clients under the clientset folder
2016-03-31 15:28:45 -07:00
k8s-merge-robot
e35efb5765
Merge pull request #23467 from mikedanese/dont-sync-deployment
...
Auto commit by PR queue bot
2016-03-29 06:42:20 -07:00
Mike Danese
fb4a5c6c42
add an event for when a daemonset can't place a pod due to insufficent resource or port conflict
2016-03-28 13:58:51 -07:00
Mike Danese
c4305762b2
don't sync deployment when pod selector is empty
2016-03-28 10:12:41 -07:00
goltermann
32d569d6c7
Fixing all the "composite literal uses unkeyed fields" Vet errors.
2016-03-25 15:25:09 -07:00
Mike Danese
625ce91d54
don't sync daemonsets or controllers with selectors that match all pods
2016-03-24 14:46:49 -07:00
k8s-merge-robot
2808973503
Merge pull request #22038 from mqliang/daemonset-cache
...
Auto commit by PR queue bot
2016-03-05 03:38:55 -08:00
Mike Danese
cd6c288d45
Fix daemonset flapping when using a host port
2016-03-02 22:22:14 -08:00
mqliang
7e1ab26c06
add lookup cache for daemonset
2016-03-01 22:04:56 +08:00
Kris
e664ef922f
Move restclient to its own package
2016-02-29 12:05:13 -08:00
Mike Danese
d7a7f87eee
fix nil pointer in dameonset controller
2016-02-25 16:17:33 -08:00
mqliang
ced5eb7a71
return early if has not synced
2016-02-18 11:56:52 +08:00