Commit Graph

7336 Commits (3c90d3a5efd52aade2b36d1b3c3f1a851aacec1d)

Author SHA1 Message Date
Yifan Gu e7b9c50ba1 kubelet/rkt: add support for different stage1 image.
Also enable grace stop for service files.
2015-09-10 14:58:03 -07:00
k8s-merge-robot 381a723814 Merge pull request #13532 from JanetKuo/kubectl-dont-use-specific-printer
Auto commit by PR queue bot
2015-09-10 14:39:02 -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
jackgr 3ecb1bac83 Add method to create strategic merge patch. 2015-09-10 14:01:07 -07:00
Brendan Burns 2b3bb33569 Address comments. 2015-09-10 13:07:13 -07:00
Brendan Burns 56a1cd76cb Address changes. 2015-09-10 13:05:32 -07:00
Brendan Burns b485821bb1 Enable custom columns printing in kubectl 2015-09-10 13:05:32 -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
Daniel Martí 71ca503d30 Try to fix flaky test in record/event
The error messages were inconsistent with what was actually being tested in
regards to timestamps being equal or not.
2015-09-10 11:44:14 -07:00
Daniel Martí ad243edaa3 Fix race condition in watch
The Shutdown() call returned immediately, without waiting for all event
distributions to be completed. Even worse, it would close all the watcher
result channels before all the info was sent to them.

Properly wait for all distributor goroutines - currently only one - to be
finished.

This fixes the flaky test TestBroadcasterDropIfChannelFull. Bonus cleanup on
said test too.
2015-09-10 11:44:14 -07:00
Daniel Martí 7aca60f636 Fix probe/tcp test on some systems
Depending on your system, the error might be "Servname not supported for
ai_socktype" instead of "unknown port". Accept both.

For example:
http://www.ducea.com/2006/09/11/error-servname-not-supported-for-ai_socktype/
2015-09-10 11:44:14 -07:00
Daniel Martí 0b10c6cfae Fix failing test in probe/http
The error that Go 1.5 returns is different compared to 1.4. Support both.
2015-09-10 11:44:13 -07:00
Daniel Martí 5f3aff2c43 Fix struct input test in jsonpath 2015-09-10 11:44:13 -07:00
Bobby Abbott 9a5f43e16d Kubelet#GetNode now uses GetNodeInfo instead of List
Both GetNode and the cache.ListWatch listfunc in the
kubelet package call List unnecessary.

GetNodeInfo is sufficient for GetNode and makes looping
through a list of nodes to check for a matching name
unnecessary.

resolves #13476
2015-09-10 10:50:41 -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
hurf f61d434e1f Remove duplicate value assginment when validating limitrange
It's unnecessary to get the quantities again from limit.
2015-09-10 21:26:53 +08: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
Michal Fojtik fb14c8cdf3 Allow to replace os.Exit() with panic when CLI command fatal error 2015-09-10 09:42:22 +02:00
k8s-merge-robot 950e5d9a53 Merge pull request #13563 from a-robinson/timeout
Auto commit by PR queue bot
2015-09-09 18:52:14 -07: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
Chao Xu 58b01bee1c Merge pull request #13453 from aveshagarwal/master-kubectl-get-fixes
Adds serviceaccounts to kubectl get/describe cli help and docs description.
2015-09-09 17:42:58 -07:00
Chao Xu d6ce719081 Merge pull request #13732 from hurf/ac_doc
Doc fix for admission/plugin.go
2015-09-09 16:21:38 -07:00
k8s-merge-robot 46d94b5fe6 Merge pull request #13688 from derekwaynecarr/fix_validate_limitrange
Auto commit by PR queue bot
2015-09-09 16:04:11 -07:00
k8s-merge-robot c993cf6509 Merge pull request #13192 from jiangyaoguo/rate-limit-events-in-kubelet
Auto commit by PR queue bot
2015-09-09 14:58:28 -07:00
k8s-merge-robot 4e0546c82d Merge pull request #13553 from jszczepkowski/hpa-remove
Auto commit by PR queue bot
2015-09-09 13:49:07 -07:00
k8s-merge-robot 6ddc30c46e Merge pull request #13648 from markturansky/voltesting_mockrecycler
Auto commit by PR queue bot
2015-09-09 13:03:17 -07:00
derekwaynecarr ea919f6d1e Fix precision handling in validating LimitRange 2015-09-09 15:52:29 -04:00
Abhishek Shah da06ecfc1f ShuffleStrings uses a seeded rand object 2015-09-09 12:08:57 -07:00
Brendan Burns 682c68c2fb Address comments, and fix some bugs in kubectl. 2015-09-09 11:48:04 -07:00
Avesh Agarwal 6d6f338fac Adds servicesaccounts to kubectl get/describe cli help and docs. 2015-09-09 12:15:25 -04:00
Wojciech Tyczynski cd1ac360de Rename "minion" to "node" in few places. 2015-09-09 16:18:23 +02:00
hurf 7b4f91c4ee Doc fix for admission/plugin.go
Complete unfinished doc, changed some comments to be more readable.
2015-09-09 21:23:03 +08:00
k8s-merge-robot 9351ef36fe Merge pull request #13723 from ingvagabund/fix-incorrect-replacement-of-util-CheckErr-for-resource-NewBuilder
Auto commit by PR queue bot
2015-09-09 05:09:46 -07:00
k8s-merge-robot 79f40d6800 Merge pull request #13660 from jsafrane/devel/fix-cloud-init
Auto commit by PR queue bot
2015-09-09 03:42:15 -07:00
Jan Chaloupka 70c74fbe4b Commit cd7d78b696 replaced use of
util.CheckErr(err)

with

if err != nil {
	return err
}

One replacement is incorrent. The current call of resource.NewBuilder is returned in r variable. Which was tested with util.CheckErr(r.Err()) before cd7d78b696 commit. It was replaced by

if err != nil {
	return err
}

which is incorrect as err is not set by resource.NewBuilder call. The correct use is

err := r.Err()
if err != nil {
	return err
}
2015-09-09 12:40:55 +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
jiangyaoguo 1460a1fb9e Rate limit events in kubelet
1. Add EvnetRecordQps and EventBurst parameter in kubelet.
2. If  EvnetRecordQps and EventBurst was set, rate limit events in kubelet
with a independent ratelimiter as setted.
2015-09-09 16:57:21 +08:00
k8s-merge-robot 0f4fa4ed25 Merge pull request #13704 from feihujiang/removeTheRedundantDefiniiteArticle
Auto commit by PR queue bot
2015-09-08 23:48:18 -07:00
k8s-merge-robot 0a7921e988 Merge pull request #13538 from brendandburns/thirdparty
Auto commit by PR queue bot
2015-09-08 23:17:56 -07:00
Brendan Burns 61f272c8cd Update the third party data codec to automatically include everything
in api.ObjectMeta.  Add more tests.
2015-09-08 21:13:06 -07:00
feihujiang d4a3e30edd Remove the redundant definite article 2015-09-09 11:40:36 +08:00
k8s-merge-robot 0f1525ce9b Merge pull request #13678 from pmorie/serialization-debug
Auto commit by PR queue bot
2015-09-08 16:37:18 -07:00
Chao Xu 1c02ea04a7 Merge pull request #13605 from caesarxuchao/fix-verify-descriptions
Fix verify-descriptions.sh
2015-09-08 11:41:44 -07:00
Chao Xu a6566031be Merge pull request #13422 from feihujiang/supportSettingEnvInKubectlRun
Support setting env vars in kubectl run
2015-09-08 10:32:48 -07:00
Paul Morie 502492f3ed Make serialization tests easier to debug 2015-09-08 13:19:08 -04:00
Chao Xu 10c8179030 enable verify-description.sh for pkg/expapi/v1/types.go 2015-09-08 08:59:52 -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 67adc27221 Merge pull request #13656 from wojtek-t/revert_pod_startup_time
Auto commit by PR queue bot
2015-09-08 02:35:28 -07:00
Jan Safranek f7384827b8 Fixed error handling of cloud init.
Avoid creating a new 'err' variable in the 'if'-branch, shadowing the one
in the outer scope.

Any error from subsequent 'cloud, err = GetCloudProvider()' was not propagated
to 'err' variable in the outer scope and thus errors were never returned from
this function.

This is hard to debug error on OpenStack, when content of --cloud-config=
file is wrong or connection to OpenStack fails. Such error is never logged
and Kubernetes thinks everything is OK.
2015-09-08 10:46:49 +02:00
Wojciech Tyczynski b85d0557b4 Revert #13052 2015-09-08 09:40:12 +02:00
k8s-merge-robot 196f58b9cb Merge pull request #13187 from hurf/expose_out
Auto commit by PR queue bot
2015-09-08 00:36:36 -07:00
feihujiang 84e94e39cd Support setting env vars in kubectl run 2015-09-08 14:31:29 +08:00
feihujiang 008a26f690 Get the terminated pod by name 2015-09-08 14:15:36 +08: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
markturansky a5feac5739 improved recycler unit test 2015-09-07 14:44:49 -04:00
k8s-merge-robot d448c83d76 Merge pull request #13636 from feihujiang/addPodNameToErrorMessage
Auto commit by PR queue bot
2015-09-07 11:39:32 -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
feihujiang d713826aa9 Add pod name to error message when getting logs of a container 2015-09-07 17:03:54 +08:00
hurf 8efc62bcce Simplify default output of "expose" command
Use simple output string such as "rc nginx exposed" to show the
result. Users can still use options like "-o yaml" to view detailed
result.

IP will be printed with detailed result now.
2015-09-07 15:17:17 +08:00
Dai Zuozhuo 2e2ef3e830 change -o template to -o go-template=... 2015-09-05 22:30:47 +08:00
Dai Zuozhuo 9ccceac5e8 sort jsonpath_test results 2015-09-05 22:29:35 +08:00
k8s-merge-robot 2e2def36a9 Merge pull request #13581 from caesarxuchao/APIGroup-testapi-2
Auto commit by PR queue bot
2015-09-04 20:38:45 -07:00
Chao Xu 9fc79e9d99 refactor testapi and test scripts to prepare for multiple API groups. 2015-09-04 18:01:32 -07:00
k8s-merge-robot e6e69e31ec Merge pull request #13363 from mesosphere/abort-kubelet-syncloop
Auto commit by PR queue bot
2015-09-04 17:45:32 -07:00
k8s-merge-robot 24430525ac Merge pull request #13334 from pedro-r-marques/kubelet_annotation_update
Auto commit by PR queue bot
2015-09-04 17:07:31 -07:00
Quinton Hoole 19017c761f Merge pull request #13590 from markturansky/fix_empty_pv_list
Fixed empty PV/C lists by removing omitempty
2015-09-04 15:12:07 -07:00
Quinton Hoole be19554bae Merge pull request #13383 from hurf/label_drun
Add --dry-run option for label command
2015-09-04 14:03:14 -07:00
Quinton Hoole e188ea6a61 Merge pull request #13202 from jimmidyson/prometheus-with-no-cadvisor-port
Ensure container metrics are registered with prometheus even without cadvisor http server
2015-09-04 13:58:31 -07:00
Quinton Hoole 49702f9059 Merge pull request #13584 from wojtek-t/remaining_test_refactorings
Refactor registry tests to reduce dependency on go-etcd.
2015-09-04 13:12:45 -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 c324fdd54d Merge pull request #13322 from ncdc/fix-noninteractive-stdin-exec
Various exec fixes
2015-09-04 12:31:28 -07:00
Quinton Hoole 058fe7ad44 Merge pull request #13285 from uruddarraju/UnionAuthz
Union of authorizers
2015-09-04 12:30:28 -07:00
Quinton Hoole 059d762e64 Merge pull request #13594 from ihmccreery/tokens
Second attempt at GCE tokens behavior to new format
2015-09-04 11:38:08 -07:00
Ruddarraju, Uday Kumar Raju f8d6f13f7c Union of authorizers 2015-09-04 11:04:50 -07:00
James DeFelice de064f4254 fix kubelet syncLoop busy loop upon close of updates chan 2015-09-04 17:56:02 +00:00
k8s-merge-robot aff690bdee Merge pull request #13575 from mikedanese/description-tag
Auto commit by PR queue bot
2015-09-04 10:33:57 -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 ded8569524 Merge pull request #12908 from mwielgus/kubectl_get_hpa
HorizontalPodAutoscaler in kubectl get
2015-09-04 09:07:08 -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
Quinton Hoole 8ea1078f6e Merge pull request #10416 from swagiaal/iscsi-remount
iSCSI Plugin: Remove remounting of device in global path.
2015-09-04 09:05:58 -07:00
Isaac Hollander McCreery 219a1fae62 Second attempt at GCE tokens behavior to new format 2015-09-04 08:36:55 -07:00
Andy Goldstein c83786979c Various exec fixes
If stdin is noninteractive, the io.Copy from stdin to remoteStdin will
unblock when it finishes reading from stdin. In this case, make sure to
close remoteStdin so the server knows the client won't be sending any
more data. This ensures that the remote process terminates. For example:

echo foo | kubectl exec -i <pod> -- cat

Without this change, the `cat` process never terminates and `kubectl
exec` hangs.

Fix interactive exec sessions hanging after you type 'exit'.

Add e2e test to cover noninteractive stdin: `echo a | kubectl exec -i <pod>
cat`

Add e2e test to cover psuedo-interactive stdin: `kubectl exec -i <pod> bash`

Prep for sending multiple data frames over multiple streams in remote command
test, which is more likely to find flakes (requires bump of spdystream
once an issue with the frame worker queues not being fully drained when
a goaway frame is received).
2015-09-04 10:40:53 -04:00
markturansky b6feefbd9f fixed empty PV/C lists by removing omitempty 2015-09-04 09:51:17 -04:00
Piotr Szczesniak de92c9bac2 Merge pull request #13482 from jlowdermilk/resource-builder-err-msg
Print recognized file extensions in resource builder error
2015-09-04 13:45:41 +02:00
Piotr Szczesniak 7fc1fe2dd9 Merge pull request #13444 from hurf/run_out
Change default output of `run` command
2015-09-04 13:43:00 +02:00
Piotr Szczesniak 48b9c365c7 Merge pull request #13308 from timothysc/watch-cache-disable
Plumb through configuration option to disable watch cache
2015-09-04 13:40:46 +02:00
Piotr Szczesniak b813ebadee Revert "GCE tokens behavior to new format" 2015-09-04 10:26:19 +02:00
Wojciech Tyczynski 2b2d6b677d Refactor registry tests to reduce dependency on go-etcd. 2015-09-04 09:52:54 +02:00
Piotr Szczesniak 57e35b794f Merge pull request #13445 from hurf/ru_out
Make -o option working for rolling-update
2015-09-04 09:11:28 +02:00
Piotr Szczesniak 30d7f0e101 Merge pull request #13449 from ihmccreery/tokens
GCE tokens behavior to new format
2015-09-04 09:11:09 +02:00
Piotr Szczesniak b7ac895fc2 Merge pull request #13474 from ivant/fix-scope-matching
Recognize cloud-platform scope on GCP
2015-09-04 09:10:07 +02:00
Piotr Szczesniak b2cfb8cb8e Merge pull request #13486 from JanetKuo/kubectl-rolling-generateName
Fix the bug that rolling-update throws error when using generateName
2015-09-04 09:07:45 +02:00
Piotr Szczesniak 6698257239 Merge pull request #13523 from roofmonkey/experimental-api-fixes
Experimental api fixes
2015-09-04 09:07:14 +02:00
Piotr Szczesniak 14f4d3ad0e Merge pull request #13425 from jszczepkowski/hpa-kind
Fixed kind to resource convertion in scale client.
2015-09-04 09:04:00 +02:00
Piotr Szczesniak fcbf63f3f3 Merge pull request #13509 from wojtek-t/refactor_etcd_delete_test
Refactor registry etcd delete tests
2015-09-04 09:03:26 +02:00
Timothy St. Clair 2b7e758c3c Fixes the experimental api, which appeared to be completely broken.
Fix for rebase with nikhiljindal/deploymentController
2015-09-03 21:56:45 -05:00
Mike Danese 8a2e430b1d remove some descritpion tags from expapi 2015-09-03 19:22:41 -07:00
Abhi Shah 0758a298db Merge pull request #13366 from feihujiang/printValidContainersNames
Print valid container names when the command not specify the container
2015-09-03 16:36:27 -07:00