Commit Graph

937 Commits

Author SHA1 Message Date
Sergiusz Urbaniak
9b7e40570e scheduler: fix shadowing in doSchedule 2015-11-10 20:54:58 +01:00
Sergiusz Urbaniak
6a16fe314f scheduler: remove err param from Register 2015-11-10 14:39:57 +01:00
Sergiusz Urbaniak
6fced095ce scheduler: simplify if-then-else handling in doSchedule 2015-11-10 14:39:57 +01:00
Sergiusz Urbaniak
c3311744c5 scheduler: correct doc in doSchedule 2015-11-10 14:39:56 +01:00
Sergiusz Urbaniak
71bd54adc6 scheduler: remove shadowed offer var in doSchedule
The variable `offer` is shadowed in the if block causing the `then`
branch to be non-effective.
2015-11-10 14:39:56 +01:00
Sergiusz Urbaniak
d53b716e97 scheduler: add newlines for readibility in doSchedule 2015-11-10 14:39:56 +01:00
Sergiusz Urbaniak
0ad0c1f2b1 scheduler: remove error param from doSchedule func
doSchedule currently accepts err values from previous invocation delegating
error handling in a location different from the caller which can be hard
to debug and is not a good practice.

We still maintain the same invariants after the refactoring. If an err
happened in a previous invocation to Register, the returned task object
was nil causing task.AcceptedOffer() to return false.

By not invoking doSchedule in case of an error we can eliminate the
first `err == nil` check in doScheduler.
2015-11-10 14:34:53 +01:00
Sergiusz Urbaniak
9bbfc35fa9 scheduler: add err check for procurement 2015-11-10 14:12:05 +01:00
k8s-merge-robot
afe121669b Merge pull request #16852 from feiskyer/kubectl-desc-ep
Auto commit by PR queue bot
2015-11-09 05:21:12 -08:00
feisky
3adb929eb9 Add kubectl describe for endpoints 2015-11-07 14:58:12 +08:00
Janet Kuo
a6a64820d7 Make generation of the apply annotation optional 2015-11-06 15:08:50 -08:00
Dr. Stefan Schimanski
9b00b7ef35 Avoid MockPodsListWatch deadlock of blocked channel while lock is hold 2015-11-05 13:20:29 +01:00
Daniel Smith
241551e36e set-gen example 2015-11-03 15:14:51 -08:00
k8s-merge-robot
9b953d75d2 Merge pull request #16111 from mesosphere/sttts-sandbox-overlay
Auto commit by PR queue bot
2015-11-03 03:00:57 -08:00
Dr. Stefan Schimanski
8fb77ce13e Exit scheduler if sandbox overlay does not exist 2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
ed09e5c29d Add supported archive format for --mesos-sandbox-overlay 2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
60ac1b932f Simplify serveFrameworkArtifact with library function for basenames 2015-11-03 11:27:41 +01:00
Dr. Stefan Schimanski
4062e2be2f Add executor sandbox overlay mechanism to distribute nsenter and socat 2015-11-03 11:27:40 +01:00
Wojciech Tyczynski
aac55d4795 Unify List() signature in clients 2015-10-30 15:43:40 +01:00
Fabiano Franz
d9161cb3b5 stdin is not a valid file extension for bash completions 2015-10-29 00:00:34 -02:00
Daniel Smith
19c1064293 Merge pull request #16099 from jsafrane/devel/move-ceph-image
Move CephFS test container to test/images.
2015-10-27 15:47:16 -07:00
Daniel Smith
6219b50280 Merge pull request #16160 from kargakis/windows-fixes-for-edit
edit: Windows fixes
2015-10-27 15:44:26 -07:00
Wojciech Tyczynski
d47e21f19f Reuse TCP connections in Reflector between resync periods. 2015-10-26 19:35:25 +01:00
kargakis
73713ce268 edit: Windows fixes
Contains the following fixes for Windows users of kubectl edit:
* Defaults to notepad as the default Windows editor
* Uses CRLF line endings
* Ensures a file lock is freed
2015-10-24 17:06:49 +02:00
Wojciech Tyczynski
f4d75e0a0a Support timeout in watch requests 2015-10-24 13:12:49 +02:00
Jan Safranek
e0e482e4c8 Move CephFS test container to test/images. 2015-10-22 15:20:20 +02:00
Jeff Lowdermilk
d4de35e177 Merge pull request #15921 from brendandburns/fix2
Add a --expose flag to kubectl run
2015-10-21 13:17:26 -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
Brendan Burns
54fd60727e add a --expose flag to kubectl run 2015-10-20 20:21:09 -07:00
Steve Milner
8da2d4002f Fixes remaining imports per #15319 2015-10-20 07:13:13 -04:00
Janet Kuo
8105aa44a0 Implement kubectl autoscale 2015-10-19 09:59:22 -07:00
feihujiang
a456b4c424 Remove useless codes about Minion kind 2015-10-19 19:29:45 +08:00
k8s-merge-robot
09a3871506 Merge pull request #15755 from zhengguoyong/del_capatical_packagename_for_cadvisorApi2
Auto commit by PR queue bot
2015-10-18 04:04:11 -07:00
k8s-merge-robot
d329a66434 Merge pull request #15518 from ravilr/mesos_graceful_termination_tasklost
Auto commit by PR queue bot
2015-10-17 02:51:21 -07:00
k8s-merge-robot
1bba475a9d Merge pull request #15735 from mesosphere/jdef-fix-tasks-and-profiling
Auto commit by PR queue bot
2015-10-17 02:20:18 -07:00
Clayton Coleman
e9a465d635 Make kubectl run attach behave like docker run
Have stdin closed by default, can be left open with --leave-stdin-open.
Add e2e tests for the behavior.
2015-10-16 20:33:51 -04:00
eulerzgy
31c09bdcb8 Del capatical local packagename for cadvisorApi 2015-10-16 11:03:50 +08:00
James DeFelice
b28333ca43 enable profiling for the kubelet/executor when turned on at the scheduler 2015-10-15 21:22:41 +00:00
James DeFelice
df246991e0 avoid blocking on full-pipe conditions for procs that write to stdout, which we continue to ignore 2015-10-15 21:20:23 +00:00
Ravi L R
99b03baa9b handle task lost status update from executor on docker daemon crash/restart by deleting the pod, so that the RC creates a new one, if the pod is backed by RC 2015-10-15 12:03:50 -07:00
Ravi L R
0e296c3dcd while deleting pod on terminal task status update, delete with grace_period=0 as the corresponding pod is already gone 2015-10-15 12:03:50 -07:00
k8s-merge-robot
a3f2ba2e34 Merge pull request #11694 from ncdc/add-spdy-proxy-support
Auto commit by PR queue bot
2015-10-15 06:56:15 -07:00
Brendan Burns
0c730f4ea7 update 2015-10-14 18:22:19 -07:00
Wojciech Tyczynski
647aa1bc8c Unify per-resource List for unversioned client 2015-10-14 08:37:57 +02:00
eulerzgy
4ed5f9d240 adjust package name for pkg/controller directory 2015-10-12 09:51:27 +08:00
k8s-merge-robot
f051cb71b1 Merge pull request #14260 from mesosphere/sttts-kubelet-capacity
Auto commit by PR queue bot
2015-10-10 13:09:06 -07:00
k8s-merge-robot
40b5d0583f Merge pull request #15376 from mesosphere/sttts-fix-default-limits-in-predicate
Auto commit by PR queue bot
2015-10-10 12:20:27 -07:00
Dr. Stefan Schimanski
1435077820 Set executor cpu resources to an integer to avoid rounding errors
This avoid that we either waste cpu resources due to rounding or that we report
to much to the kubelet such that the e2e tests think they can schedule more than
resources are available.

This fixes https://github.com/mesosphere/kubernetes-mesos/issues/437
2015-10-10 21:19:08 +02:00
Dr. Stefan Schimanski
ae7830b4be Pass Mesos cpu and mem values to cadvisor 2015-10-10 21:19:08 +02:00
k8s-merge-robot
71e9565815 Merge pull request #15163 from thockin/gcloud-preview
Auto commit by PR queue bot
2015-10-10 12:04:55 -07:00