Commit Graph

9516 Commits (3e211d4f842a8ffde738208fd05dabcd36a50bf0)

Author SHA1 Message Date
k8s-merge-robot 20b4fa6fbd Merge pull request #18494 from brendandburns/perf3
Auto commit by PR queue bot
2015-12-16 15:01:10 -08:00
Yifan Gu 5f4e6d0908 rkt: Add GetPodStatus(), GetPodStatusAndAPIPodStatus().
Also add ConvertPodStatusToAPIPodStatus().
Add tests for GetPodStatus().
2015-12-16 14:35:19 -08:00
Jeff Lowdermilk 6adf227879 Merge pull request #18583 from jsravn/fix-rolling-update-rollback
Fix rolling-update rollback from an unavailable rc
2015-12-16 14:26:55 -08:00
Paul Morie 14368fd5e2 Skip volume metrics test on os x 2015-12-16 17:16:38 -05:00
k8s-merge-robot 91ef756bea Merge pull request #18423 from tombenner/improve_label_validation_error_messages
Auto commit by PR queue bot
2015-12-16 14:08:21 -08:00
Timothy St. Clair c505a5d49d Updating kubernetes proper to use latest etcd client library 2015-12-16 15:56:35 -06:00
nikhiljindal 2d952aaa87 Extracting APIServer machinery code into a library 2015-12-16 13:54:23 -08:00
Jan Safranek d4f6271b21 Implement Creater and Deleter interfaces for GCE PD. 2015-12-16 16:14:01 -05:00
Saad Ali bae050ffea Merge pull request #18607 from pmorie/devel/provisioner-cinder
Dynamic provisioner for Cinder
2015-12-16 12:56:46 -08:00
k8s-merge-robot b0a453c9b8 Merge pull request #18189 from timstclair/allocatable-impl
Auto commit by PR queue bot
2015-12-16 12:48:58 -08:00
k8s-merge-robot 4dc17d8eeb Merge pull request #18522 from liggitt/close_websocket
Auto commit by PR queue bot
2015-12-16 12:06:13 -08:00
Jan Safranek e8f08a969c Extract common function for OpenStack checking. 2015-12-16 14:23:16 -05:00
Jan Safranek 2f06ebf9b7 Implement Creater and Deleter interfaces for Cinder. 2015-12-16 14:23:14 -05:00
Isaac Hollander McCreery a5d895ac49 Add version-guarding around calls to SubResource proxy in e2es 2015-12-16 11:18:47 -08:00
Tim St. Clair 8fdd321dc1 Add `Allocatable` to `NodeStatus`
Adds `Allocatable` to `NodeStatus`, as described in
[17201](https://github.com/kubernetes/kubernetes/pull/17201)
2015-12-16 11:01:15 -08:00
Saad Ali 3968a5e63c Merge pull request #18601 from pmorie/devel/provisioner-aws
Dynamic provisioner for AWS EBS
2015-12-16 10:51:35 -08:00
k8s-merge-robot e80f05d155 Merge pull request #6245 from tmrts/master
Auto commit by PR queue bot
2015-12-16 10:24:05 -08:00
k8s-merge-robot c2189fd60d Merge pull request #18518 from Random-Liu/fix-potential-data-race
Auto commit by PR queue bot
2015-12-16 09:45:52 -08:00
k8s-merge-robot 12552912c8 Merge pull request #18042 from markturansky/nil_pointer_fix
Auto commit by PR queue bot
2015-12-16 09:12:41 -08:00
k8s-merge-robot 5a579a2555 Merge pull request #16028 from derekwaynecarr/make_cmd
Auto commit by PR queue bot
2015-12-16 08:41:59 -08:00
Tamer Tas 70ac1366f8 Regenerate for ConfigMap 2015-12-16 11:19:59 -05:00
Tamer Tas c798a6ef01 ConfigMap resource and its REST implementation 2015-12-16 11:19:26 -05:00
deads2k 41b78ad2b6 find partial resource matches 2015-12-16 10:19:31 -05:00
k8s-merge-robot e309583ff1 Merge pull request #18473 from smarterclayton/change_runtime_object
Auto commit by PR queue bot
2015-12-16 04:24:22 -08:00
k8s-merge-robot 6716290903 Merge pull request #18388 from nikhiljindal/clusterName
Auto commit by PR queue bot
2015-12-16 03:50:11 -08:00
k8s-merge-robot 0be54ae771 Merge pull request #18507 from feihujiang/supportRemoveFlagForKubectlRun
Auto commit by PR queue bot
2015-12-16 01:19:26 -08:00
k8s-merge-robot fc7c70dba3 Merge pull request #18373 from deads2k/gv-codecfor
Auto commit by PR queue bot
2015-12-15 19:28:48 -08:00
k8s-merge-robot d62318e1e8 Merge pull request #17555 from pmorie/volume-attributes
Auto commit by PR queue bot
2015-12-15 16:33:13 -08:00
Tim St. Clair facb0a5c42 Concurrency fixes for prober tests
Fix leaking go routines and race conditions in prober unit tests.
2015-12-15 14:37:48 -08:00
Chao Xu 5ba4f836f8 some small fix 2015-12-15 12:00:48 -08:00
Clayton Coleman 8f203a28f1 Change runtime.Object signature 2015-12-15 13:36:25 -05:00
Tim St. Clair 89bc7992f9 Refactor kubelet server into its own package
Refactor Kubelet's server functionality into a server package. Most
notably, move pkg/kubelet/server.go into
pkg/kubelet/server/server.go. This will lead to better separation of
concerns and a more readable code hierarchy.
2015-12-15 10:20:38 -08:00
kargakis 0c58170ad0 Move port utility out of endpoints controller 2015-12-15 18:54:08 +01:00
markturansky 4aacb76149 added cast checks to controllers to prevent nil panics 2015-12-15 11:34:03 -05:00
k8s-merge-robot 114f6f76dc Merge pull request #18412 from resouer/fix-validation
Auto commit by PR queue bot
2015-12-15 08:15:27 -08:00
deads2k 6e33403abf update CodecFor for GroupVersion 2015-12-15 10:56:00 -05:00
k8s-merge-robot 7de177b8b5 Merge pull request #18459 from deads2k/gv-group-registration
Auto commit by PR queue bot
2015-12-15 07:41:14 -08:00
k8s-merge-robot f6466b0852 Merge pull request #18462 from wojtek-t/fix_node_events
Auto commit by PR queue bot
2015-12-15 06:05:28 -08:00
deads2k 7a83ce60e6 refactor group registration 2015-12-15 08:37:07 -05:00
k8s-merge-robot 5429d15fcf Merge pull request #18449 from timstclair/race
Auto commit by PR queue bot
2015-12-15 05:32:17 -08:00
k8s-merge-robot a581f04106 Merge pull request #18332 from hurf/fix_time_test
Auto commit by PR queue bot
2015-12-15 05:06:26 -08:00
k8s-merge-robot c2af9cac58 Merge pull request #18590 from mikedanese/transit
Auto commit by PR queue bot
2015-12-15 04:09:02 -08:00
k8s-merge-robot 3680268c52 Merge pull request #18353 from deads2k/gv-use-constants
Auto commit by PR queue bot
2015-12-15 03:25:09 -08:00
Jan Safranek 1b7445a6e2 Use SSD as default volume type.
General purpose SSD ('gp2') volume type is just slighly more expensive than
Magnetic ('standard' / default in AWS), while the performance gain is pretty
significant.

So far, the volumes were created only during testing, where the extra cost
won't make any difference. In future, we plan to introduce QoS classes, where
users could choose SSD/Magnetic depending on their use cases.

'gp2' is just the default volume type for (hopefuly) short period before these
QoS classes are implemented.
2015-12-15 12:14:48 +01:00
k8s-merge-robot 25acc9bafa Merge pull request #18301 from yujuhong/remove_wait
Auto commit by PR queue bot
2015-12-15 02:51:55 -08:00
k8s-merge-robot abeda72863 Merge pull request #18231 from caesarxuchao/client-gen-test
Auto commit by PR queue bot
2015-12-15 02:19:16 -08:00
k8s-merge-robot b5387da0d7 Merge pull request #17669 from WeixuZhuang/describ
Auto commit by PR queue bot
2015-12-15 01:45:38 -08:00
Jan Safranek 6ff5286df9 Implement Creater and Deleter interfaces for AWS EBS.
Also mark the created EBS volumes with tags, so the admin knows
who/what created the volumes.
2015-12-15 10:22:49 +01:00
k8s-merge-robot b3ccad2341 Merge pull request #18680 from caesarxuchao/clean-client
Auto commit by PR queue bot
2015-12-15 01:21:32 -08:00
k8s-merge-robot 06df5c97e7 Merge pull request #18499 from wojtek-t/fix_reflector_race
Auto commit by PR queue bot
2015-12-15 01:19:06 -08:00
Jan Safranek 700d92c2a8 AWS: Use GiB as units for disk sizes.
From some reason, MiBs were used for public functions and AWS cloud provider
recalculated them to GiB. Let's expose what AWS really supports and don't hide
real allocation units.
2015-12-15 10:18:00 +01:00
mqliang 04763abbbb remove TODO:binding validation 2015-12-15 14:47:55 +08:00
Brendan Burns 9f7199d5bb Clean up some dead code. 2015-12-14 20:19:44 -08:00
Brendan Burns 4bd234b679 Correct a typo in the json/yaml tags for 3rd party objects. 2015-12-14 20:18:49 -08:00
k8s-merge-robot 414ebd2ddb Merge pull request #17991 from krousey/errorstatus
Auto commit by PR queue bot
2015-12-14 20:18:19 -08:00
Brendan Burns beda3fd92d Switch to index rather than copy indexing.
This was 17% of all allocations on a recent profile.
2015-12-14 20:17:02 -08:00
k8s-merge-robot 29e8b6123f Merge pull request #17529 from jayunit100/hammer-backoff-expo-part2
Auto commit by PR queue bot
2015-12-14 19:48:40 -08:00
k8s-merge-robot 1f0e46abb8 Merge pull request #16237 from ZJU-SEL/fix-util
Auto commit by PR queue bot
2015-12-14 18:41:14 -08:00
k8s-merge-robot 6fbbe9a60e Merge pull request #18602 from mikedanese/merge-conflict
Auto commit by PR queue bot
2015-12-14 13:57:20 -08:00
Chao Xu f565646ea5 remove dead code in client 2015-12-14 13:34:07 -08:00
James Ravn e5a558c35f Fix rolling-update rollback from an unavailable rc
Rolling back from a broken update with only one replica fails with a
timeout in the existing code.

The problem is the scale down logic does not consider unavailable
replicas in the old replication controller when calculating how much to
scale down by. This leads to an obvious problem with a single replica
when min unavailable is 1.

The fix is to allow scaling down all unavailable replicas in the old
controller, while still maintaining the min unavailable invariant.
2015-12-14 19:35:08 +00:00
Chao Xu 05e3cb8bfb adding a mock.testType to test the generated client code 2015-12-14 11:24:44 -08:00
Paul Morie e757fac2f5 Regenerate for volume info changes 2015-12-14 14:19:51 -05:00
Paul Morie b592e1f6e8 Add information about ownership management, selinux relabeling to volumes 2015-12-14 14:00:54 -05:00
derekwaynecarr 5e0948586c Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
Prashanth Balasubramanian b5303b9978 Tell kubernetes-master not to wait on flannel. 2015-12-14 09:47:09 -08:00
Solly Ross 15fc230a59 Make HPA Controller use Namespacers
The HPA controller had previously used a single Client
object to act as three different Namespacers.  To improve
ease of extensibility and to make it clearer what the HPA
controller actually needs to use from the client, it should
use separate Namespacers for each of its needs (Scales, HPAs,
and Events).
2015-12-14 11:41:00 -05:00
Mike Danese 56bb8138bf remove merge conflict comments 2015-12-14 07:57:52 -08:00
Paul Morie eb89c2519a Fix assumptions about tmpfs in metrics du tests 2015-12-14 10:47:21 -05:00
deads2k d0aaf13920 use constants for group names 2015-12-14 10:04:10 -05:00
Clayton Coleman 6824530ae1 Debugging round tripper should wrap CancelRequest 2015-12-14 09:39:06 -05:00
Wojciech Tyczynski 8a76c1932f Regenerate auto-generated files 2015-12-14 14:26:09 +01:00
Wojciech Tyczynski 960808bf08 Switch to versioned ListOptions in client. 2015-12-14 14:26:09 +01:00
Filip Grzadkowski 4ef062c22f Merge pull request #18476 from caesarxuchao/fix-query-convert
Fix queryparams convert
2015-12-14 13:22:27 +01:00
k8s-merge-robot 7e942bf9b3 Merge pull request #18384 from deads2k/gv-clientcache
Auto commit by PR queue bot
2015-12-14 02:25:49 -08:00
Harry Zhang 8fe92c69d2 Update highwatermark 2015-12-14 16:47:47 +08:00
Wojciech Tyczynski 6a7e8861c2 Fix data-race in reflector test in Go 1.5.1 2015-12-14 09:47:45 +01:00
feihujiang 9ab06cfa62 Support remove flag for kubectl run command 2015-12-14 16:16:43 +08:00
k8s-merge-robot 51e8c2e5f8 Merge pull request #17841 from mqliang/constant
Auto commit by PR queue bot
2015-12-13 23:40:27 -08:00
k8s-merge-robot 266ab4a796 Merge pull request #18487 from smarterclayton/guard_encode_decode
Auto commit by PR queue bot
2015-12-13 23:08:18 -08:00
harry zhang 5405a5d98d Move atomic_value into folder
Change pkg to atomic
2015-12-14 05:50:29 +00:00
David Oppenheimer 725a84ffe0 Merge pull request #18157 from sdminonne/LabelSelector_internalSelector
renaming labels.LabelSelector to labels.internalSelector
2015-12-13 20:03:49 -08:00
k8s-merge-robot 9723ff7ffd Merge pull request #12043 from derekwaynecarr/describe_node
Auto commit by PR queue bot
2015-12-13 18:24:59 -08:00
Chao Xu 367872a63a add label test to deployment client 2015-12-13 13:56:01 -08:00
Chao Xu 2eba8b7f1f fix queryparams convertStruct 2015-12-13 13:53:28 -08:00
k8s-merge-robot c458cd7bb7 Merge pull request #18379 from deads2k/gv-newobject
Auto commit by PR queue bot
2015-12-13 13:33:16 -08:00
k8s-merge-robot 47d2f41680 Merge pull request #18370 from deads2k/gv-interfacesfor
Auto commit by PR queue bot
2015-12-13 10:27:17 -08:00
k8s-merge-robot f0782a54e9 Merge pull request #18327 from tmrts/refactor/method
Auto commit by PR queue bot
2015-12-13 06:24:44 -08:00
Wojciech Tyczynski 342eee680c Revert "[hpa] Parameterize tolerance, downscale, and upscale into HPAController, and add corresponding unit test for backsolved tolerance." 2015-12-13 09:54:43 +01:00
harry d94945c179 Fix empty string check inconsistency in validation.go 2015-12-13 00:11:56 +08:00
k8s-merge-robot 9b07349013 Merge pull request #18315 from jayunit100/hpa-tolerance-config
Auto commit by PR queue bot
2015-12-12 01:55:46 -08:00
k8s-merge-robot 583b733a1e Merge pull request #18309 from brendandburns/3rdparty2
Auto commit by PR queue bot
2015-12-12 01:23:06 -08:00
k8s-merge-robot f1505486b1 Merge pull request #18256 from caesarxuchao/fix-17266
Auto commit by PR queue bot
2015-12-12 00:51:56 -08:00
mqliang a21dd8a32b replace OsImage to OSImage 2015-12-12 15:53:34 +08:00
mqliang 9d21b6dc85 pkg/set MaxUnavailable as 1 2015-12-12 12:04:11 +08:00
k8s-merge-robot 3d24d25fd8 Merge pull request #17764 from jiangyaoguo/make-containerspecchange-private
Auto commit by PR queue bot
2015-12-11 17:40:34 -08:00
Jeff Lowdermilk 9f3d28c788 Merge pull request #18305 from yujuhong/podfullname
Replace podFullName with format.Pod() in logging messages
2015-12-11 14:31:47 -08:00
Mike Danese 5c1ead8869 add leader transitions to leader election record 2015-12-11 13:51:01 -08:00
nikhiljindal 724b098855 Deleting unused master.ClusterName param 2015-12-11 13:39:19 -08:00
Jeff Lowdermilk f6686ba3a4 Merge pull request #18290 from wojtek-t/fast_namespace_deletion
Support collection deletion in apiserver.
2015-12-11 13:34:56 -08:00
Jeff Lowdermilk 9c49cdaa6e Merge pull request #18276 from thockin/airplane_validation_pt6
Validation cleanup parts 5 & 6 together
2015-12-11 13:34:37 -08:00
Jeff Lowdermilk 06421d5ff7 Merge pull request #18589 from mikedanese/leader-test
fix testcase in pkg/client/leaderelection that wasn't testing what it said it was testing
2015-12-11 13:25:29 -08:00
Jeff Lowdermilk c103825ef4 Merge pull request #14537 from markturansky/pv_provisioner
PersistentVolume Provisioner Controller
2015-12-11 13:09:33 -08:00
Jeff Lowdermilk e53acfe19c Merge pull request #17111 from munnerz/multi-rolling-update
Allow rolling-update of a single container in multi-container pods
2015-12-11 13:08:13 -08:00
Mike Danese 5e03250577 fix testcase in pkg/client/leaderelection that wasn't testing what it said it was testing 2015-12-11 10:58:46 -08:00
deads2k ec87d74ecb update InterfacesFor to use GroupVersion 2015-12-11 13:45:41 -05:00
derekwaynecarr 9cdeb4cb20 describe nodes improvements 2015-12-11 13:09:49 -05:00
markturansky 4fc1bf1f23 Added PersistentVolumeController 2015-12-11 10:33:30 -05:00
k8s-merge-robot d3243b8778 Merge pull request #18383 from timothysc/tools_removal
Auto commit by PR queue bot
2015-12-11 07:17:14 -08:00
feihujiang 3a3421b742 Print how to reattch to seesion when session ends 2015-12-11 17:00:56 +08:00
k8s-merge-robot 23baca87b5 Merge pull request #18232 from pwittrock/fsacct
Auto commit by PR queue bot
2015-12-11 00:48:09 -08:00
k8s-merge-robot 90b5db167f Merge pull request #18356 from deads2k/make-broken-test-correct
Auto commit by PR queue bot
2015-12-11 00:34:15 -08:00
k8s-merge-robot 6b8eb902ce Merge pull request #17969 from dgonyeo/rkt_api_get_pods
Auto commit by PR queue bot
2015-12-10 23:13:37 -08:00
k8s-merge-robot caf4b1e47f Merge pull request #18191 from thockin/ingress-egress-annotations
Auto commit by PR queue bot
2015-12-10 23:01:26 -08:00
k8s-merge-robot 4e553f0dd8 Merge pull request #17425 from feiskyer/desc-ingress
Auto commit by PR queue bot
2015-12-10 22:42:30 -08:00
Tim St. Clair b4116eb718 Handle `nil` Amount in resource.Quantity.{Add,Sub}
Treat `nil` Amount as 0 in `resource.Quantity.Add` and
`resource.Quantity.Sub`. Also, allow adding/subtracting resources with
different Formats (since Format has no effect on the underlying value).
2015-12-10 19:24:23 -08:00
Brendan Burns cee738871e Add a client implementation for third party resources 2015-12-10 15:43:05 -08:00
markturansky 34c063cfe1 attempt recycling once, fail pv permanently 2015-12-10 18:23:45 -05:00
Nikhil Jindal aaa1fe67f6 Merge pull request #18321 from janetkuo/fix-deployment-getoldrcs
Fix bug when getting old RCs of a deployment
2015-12-10 14:22:56 -08:00
Kris ca7c765f0a Remove APIStatus from the client
Everything that used it also depended on pkg/api/errors. It was a
needless abstraction since it was always an *errors.StatusError.
2015-12-10 13:12:21 -08:00
Nikhil Jindal 9d1f07da4e Merge pull request #18331 from janetkuo/fix-deployment-getnewrc
Fix bug when getting new RC of a deployment
2015-12-10 12:26:51 -08:00
Tim Hockin 872faffdac Internal errors are internal 2015-12-10 11:48:19 -08:00
Tim Hockin 7fb8f60735 Shorten names for better reading 2015-12-10 11:48:19 -08:00
Tim Hockin 87a35047dd Move FieldPath and errors to a sub-package
This makes the naming and reading a lot simpler.
2015-12-10 11:48:16 -08:00
Tim Hockin ad07709461 Fully close sockets in kube-proxy
We were trying to be clever and respect TCP's notion of half-open sockets, but
it causes leaks when we can't unblock io.Copy().  This fixes those leaks and
seems to follow most expectations.  I think we were just be too clever.
2015-12-10 11:34:13 -08:00
Jordan Liggitt 993ef54e12 Close web socket watches correctly 2015-12-10 14:20:46 -05:00
Random-Liu eb551f388c Fix potential data race 2015-12-10 10:35:02 -08:00
k8s-merge-robot 0bf11d89cf Merge pull request #18277 from wojtek-t/better_traces
Auto commit by PR queue bot
2015-12-10 09:56:13 -08:00
k8s-merge-robot 34c32a5615 Merge pull request #18498 from feihujiang/fixDocOfNetworkPluginVersion
Auto commit by PR queue bot
2015-12-10 09:44:32 -08:00
Weixu Zhuang a5a2b94c5f In pkg/kubectl/describe.go function Matches support unordered types matches.
The argument of function need to be matched. It did not support unorder matches.
This is a TODO and I fix it.(line 1763 in pkg/kubectl/describe.go)
I use a map to solve it which could compare two types array's difference.
2015-12-10 09:24:30 -08:00
k8s-merge-robot 0127c45395 Merge pull request #18163 from timothysc/storage_error_handling
Auto commit by PR queue bot
2015-12-10 08:06:54 -08:00
Jay Vyas 5161d169ba Parameterization for downscale, upscale, and tolerance with backsolving
unit test for visible testing of tolerance algorithm expectations. Logs for dScale, uScale, tol creation.
2015-12-10 10:59:21 -05:00
Maciej Szulik 34c72552a5 Updated kubectl help info with resource names 2015-12-10 16:04:44 +01:00
k8s-merge-robot 2ef2544faa Merge pull request #18237 from yifan-gu/refactor_getphase
Auto commit by PR queue bot
2015-12-10 06:55:02 -08:00
k8s-merge-robot dd0d1fb780 Merge pull request #18229 from caesarxuchao/move-testclient
Auto commit by PR queue bot
2015-12-10 06:22:22 -08:00
Timothy St. Clair a428246960 Abstract the error handling for the storage layer to eliminate the
direct etcd dependency.
2015-12-10 08:06:19 -06:00
Marcin Wielgus f6f7725f90 Merge pull request #18340 from wojtek-t/pod_intra_communication_test
Set timeout for clients created in e2e tests
2015-12-10 14:54:36 +01:00
k8s-merge-robot 9b9daca0c4 Merge pull request #18213 from wojtek-t/enable_list_from_memory
Auto commit by PR queue bot
2015-12-10 05:47:42 -08:00
deads2k cf58201ff4 update client cache to key on groupversion 2015-12-10 07:41:34 -05:00
k8s-merge-robot 815fcc3334 Merge pull request #18131 from brendandburns/3rdparty
Auto commit by PR queue bot
2015-12-10 04:10:44 -08:00
k8s-merge-robot 073661514e Merge pull request #18129 from yujuhong/fix_status
Auto commit by PR queue bot
2015-12-10 03:35:33 -08:00
feihujiang 5cfdcfd8f6 Fix the doc of network plugin version 2015-12-10 16:57:27 +08:00
Wojciech Tyczynski 2ef5e320db Fix node events 2015-12-10 09:52:33 +01:00
Wojciech Tyczynski f28bb68d8c Support collection deletion in apiserver. 2015-12-10 09:46:25 +01:00
feisky 0d611416c2 kubectl describe more fields for ingress 2015-12-10 15:12:35 +08:00
Clayton Coleman 1e21054134 Hide common codec methods under helpers
The pending codec -> conversion split changes the signature of
Encode and Decode to be more complicated. Create a stub helper
with the exact semantics of today and do the simple mechanical
refactor here to reduce the cost of that change.
2015-12-09 21:15:02 -05:00
Phillip Wittrock c67ce887f2 Volume Metrics Interface and base implementation.
- Add volume.MetricsProvider function to Volume interface.
- Add volume.MetricsDu for providing metrics via executing "du".
- Add volulme.MetricsNil for unsupported Volumes.
2015-12-09 16:06:24 -08:00
Derek Gonyeo 5a16b4751b rkt: rewrote GetPods to use rkt's api service
This involved adding annotations to the rkt pod's manifest that contain
information about the kubernetes pod, which is later read by the
kubelet.
2015-12-09 14:43:50 -08:00
k8s-merge-robot 361405e4b3 Merge pull request #18311 from brendandburns/3rdparty3
Auto commit by PR queue bot
2015-12-09 12:19:38 -08:00
k8s-merge-robot 5f7019ab9d Merge pull request #16877 from anish/iscsi_iface
Auto commit by PR queue bot
2015-12-09 11:52:37 -08:00
Wojciech Tyczynski f1de51567d Set timeout for e2e clients 2015-12-09 20:44:25 +01:00
k8s-merge-robot e477503cf8 Merge pull request #18249 from mvdan/apiserver-test-close
Auto commit by PR queue bot
2015-12-09 11:38:31 -08:00
Tim St. Clair 246442514c Expose Start method, don't call in constructor 2015-12-09 10:58:15 -08:00
Chao Xu 6f0eb521a6 Move pkg/client/unvrsioned#testClient to pkg/client/unversioned/testclient#simple 2015-12-09 10:39:28 -08:00
Tim St. Clair 32794b18f0 Fix data race in prober test 2015-12-09 10:20:57 -08:00
Timothy St. Clair 413d8d18fe Futher storage isolation and removal of the tools interface. 2015-12-09 11:04:14 -06:00
k8s-merge-robot 56cd501598 Merge pull request #18427 from mesosphere/sttts-cloud-provider-npe
Auto commit by PR queue bot
2015-12-09 08:45:06 -08:00
k8s-merge-robot b46cee885a Merge pull request #18378 from krousey/controllerflake
Auto commit by PR queue bot
2015-12-09 08:44:29 -08:00
k8s-merge-robot f525c2e587 Merge pull request #18268 from tmrts/sort/constants
Auto commit by PR queue bot
2015-12-09 08:44:01 -08:00
Wojciech Tyczynski 0cefb43707 Enable listing from memory 2015-12-09 16:24:14 +01:00
Wojciech Tyczynski 029d906074 Merge pull request #18170 from xiang90/scale
api/resource: optimize scale function
2015-12-09 16:18:28 +01:00
deads2k 7118f90eff update test to pass properly and reflect actual behavior 2015-12-09 09:12:44 -05:00
Wojciech Tyczynski 0369805308 Merge pull request #18207 from wojtek-t/string_resource_version
Change resourceVersion to string in storage.Interface
2015-12-09 15:00:54 +01:00
Wojciech Tyczynski a915b8b29a Merge pull request #18080 from wojtek-t/list_options_in_listwatch
Pass ListOptions to List in ListWatch.
2015-12-09 14:27:51 +01:00
deads2k 519b4e80d1 update NewObject for groupversionkind 2015-12-09 08:13:15 -05:00
Dr. Stefan Schimanski 60ce27cb50 cloudprovider/mesos: fix panics when the Mesos master cannot be reached 2015-12-09 12:58:38 +01:00
k8s-merge-robot 8d633458cd Merge pull request #18148 from feihujiang/addEnumTypeForStatusReansonConstants
Auto commit by PR queue bot
2015-12-09 03:35:55 -08:00
k8s-merge-robot 2adcd77dbd Merge pull request #18407 from mikedanese/doc-fix
Auto commit by PR queue bot
2015-12-09 01:32:34 -08:00
Tom Benner c354c12712 Improve label selector validations' error messages 2015-12-09 00:45:31 -08:00
k8s-merge-robot 85789f319f Merge pull request #18103 from deads2k/gv-remove-groupmetaVersion
Auto commit by PR queue bot
2015-12-08 23:31:52 -08:00
k8s-merge-robot 637a33924c Merge pull request #18004 from jiangyaoguo/print-absolute-time-when-watch-event
Auto commit by PR queue bot
2015-12-08 22:58:12 -08:00
k8s-merge-robot a486977e19 Merge pull request #17982 from deads2k/gv-testapi-01
Auto commit by PR queue bot
2015-12-08 22:16:59 -08:00
Anish Bhatt 6e46fa1fd4 Add support for open-iscsi transports.
This enables use of software or hardware transports viz. be2iscsi,
bnx2i, cxgb3i, cxgb4i, qla4xx, iser and ocs. The default transport
(tcp) happens to be called "default".

Use of non-default transports changes the disk path to the following format:
/dev/disk/by-path/pci-<pci_id>-ip-<portal>-iscsi-<iqn>-lun-<lun_id>
2015-12-08 17:28:06 -08:00
Mike Danese 0b6167c0c4 fix package doc so it shows up on godoc.org 2015-12-08 17:19:44 -08:00
Mike Danese 68cf14695c implement client leaderelection library 2015-12-08 13:39:56 -08:00
Kris cec9c47f41 Only delete pods when they reach final state 2015-12-08 11:35:42 -08:00
Robert Bailey 2ecf504a2e Change the gce constant for session affinity to have the capitalization
shown in the documentation.

Fixes #18347
2015-12-08 09:36:49 -08:00
Janet Kuo 72bd4e8caf Fix bug when getting new RC of a deployment 2015-12-07 23:57:30 -08:00
hurf fb6ea4385b Use fixed days to test translateTimestamp for months
Use fixed days to avoid days in different months.
2015-12-08 15:53:38 +08:00
Tamer Tas ac06001ca2 Refactor formatMap method 2015-12-08 09:12:33 +02:00
Janet Kuo 524ec8b48b Fix bug when getting old RCs of a deployment 2015-12-07 18:09:51 -08:00
Jay Vyas 76e6281168 Exponential backoff for request client, rebased. Updated license to
2015, cleaned more //[a-z] comments. Added in support for Environment
variable gaurds over the backcoff w/ default NoBackoff. Rebased.
2015-12-07 20:19:51 -05:00
Brendan Burns 59bd1d24a2 Fix some typos in third party resource printing 2015-12-07 14:17:55 -08:00
Yu-Ju Hong c646255579 Replace podFullName with format.Pod() in logging messages 2015-12-07 13:41:52 -08:00
Yu-Ju Hong fda73c04ec Change to include UID by default in formatting 2015-12-07 13:32:02 -08:00
Brendan Burns 9574a4b782 Switch to KindToResource for ThirdPartyResourceData 2015-12-07 12:54:41 -08:00
deads2k 2ee3dfe415 update testapi to eliminate redundant fields 2015-12-07 15:54:26 -05:00
k8s-merge-robot ec1ba7438f Merge pull request #17796 from deads2k/gv-object-typer
Auto commit by PR queue bot
2015-12-07 12:34:55 -08:00
k8s-merge-robot dc4bc2a566 Merge pull request #18024 from deads2k/gv-kubectl02
Auto commit by PR queue bot
2015-12-07 11:47:40 -08:00
Yu-Ju Hong e0d9ccde65 Minor clean up on checking container runtime status
Remove redundant function and consolidate the code.
2015-12-07 11:13:59 -08:00
k8s-merge-robot 0ed4dc55af Merge pull request #17972 from deads2k/gv-admission
Auto commit by PR queue bot
2015-12-07 11:12:27 -08:00
Fabio Yeon 5457f5ace2 Merge pull request #18240 from timstclair/readiness
Update PodReady condition when updating container readiness
2015-12-07 10:43:22 -08:00
Abhi Shah bb3f49e526 Merge pull request #18089 from ArtfulCoder/oneNSAgain
SkyDNS is the only NS for Pods with DNSPolicy=ClusterFirst
2015-12-07 10:20:29 -08:00
deads2k 66eecb963a update more kubectl bits for groupversion 2015-12-07 09:01:44 -05:00
deads2k 3f045cf168 udpate admission for API groups 2015-12-07 08:55:01 -05:00
deads2k f764e0099c Update ObjectTyper to GroupVersion 2015-12-07 08:35:05 -05:00
Wojciech Tyczynski b0fcb5adef Pass ListOptions to List in ListWatch. 2015-12-07 11:53:53 +01:00
k8s-merge-robot 316a8ac41c Merge pull request #18073 from ingvagabund/garbage-collector-low-high-threshold-test
Auto commit by PR queue bot
2015-12-07 02:10:57 -08:00
Wojciech Tyczynski 793da62c7f Change resourceVersion to string in storage.Interface 2015-12-07 09:22:59 +01:00
Wojciech Tyczynski 788218d7bb Better traces for api calls. 2015-12-07 09:15:54 +01:00
Tamer Tas 5ac372dfce Alphabetize kubectl resource shortcuts list 2015-12-07 06:05:42 +02:00
jackgr b11dec7aec Implement conflict detection in strategic merge patch. 2015-12-06 17:54:32 -08:00
jiangyaoguo 5f77f2b5a9 make PodContainerSpecChange private 2015-12-07 09:28:15 +08:00
k8s-merge-robot 810181fb7b Merge pull request #17278 from ZJU-SEL/fix-nil-tag
Auto commit by PR queue bot
2015-12-06 12:52:39 -08:00
k8s-merge-robot db11f1b6c6 Merge pull request #17133 from derekwaynecarr/quota_controller_improvements
Auto commit by PR queue bot
2015-12-06 12:24:00 -08:00
k8s-merge-robot c6b59353e1 Merge pull request #18022 from deads2k/gv-request
Auto commit by PR queue bot
2015-12-05 22:38:40 -08:00
k8s-merge-robot 8e496e3fa3 Merge pull request #18015 from wojtek-t/list_traces
Auto commit by PR queue bot
2015-12-05 22:10:01 -08:00
Chao Xu c07c9dd450 let --version flag be treated as --version=true 2015-12-05 17:18:44 -08:00
Clayton Coleman ac9fd648d3 Strip go2idl instructions from generated swagger doc
Ignore doc lines starting with +
2015-12-05 18:15:49 -05:00
Clayton Coleman a512d83a87 Skip SetVersionAndKind for ConvertToVersion to internal 2015-12-05 18:15:48 -05:00
Clayton Coleman 9fea762917 Add protobuf preparation objects, guarded by proto tag 2015-12-05 18:15:48 -05:00
k8s-merge-robot e2679abdb8 Merge pull request #18011 from sdminonne/podSelector_labelSelector
Auto commit by PR queue bot
2015-12-05 13:56:04 -08:00
k8s-merge-robot fc92833238 Merge pull request #17973 from liggitt/validate_node_name
Auto commit by PR queue bot
2015-12-05 13:23:26 -08:00
k8s-merge-robot e1230eb57e Merge pull request #17420 from Random-Liu/use-raw-pod-status-in-docker
Auto commit by PR queue bot
2015-12-05 12:16:04 -08:00
k8s-merge-robot 50af1d6550 Merge pull request #17756 from zhengguoyong/check_ref_before_use
Auto commit by PR queue bot
2015-12-05 10:52:56 -08:00
k8s-merge-robot 510949261a Merge pull request #17752 from yujuhong/docker_health
Auto commit by PR queue bot
2015-12-05 10:24:48 -08:00
Jordan Liggitt 7d10fd3591 Validate pod spec.nodeName 2015-12-05 11:34:09 -05:00
k8s-merge-robot ab35fff6f0 Merge pull request #18234 from krousey/clienttest
Auto commit by PR queue bot
2015-12-05 07:36:34 -08:00
k8s-merge-robot 2f4d4d9e94 Merge pull request #17968 from dgonyeo/rkt_api_list_images
Auto commit by PR queue bot
2015-12-05 05:50:06 -08:00
k8s-merge-robot 3180b00f6c Merge pull request #17673 from hongchaodeng/metrics
Auto commit by PR queue bot
2015-12-05 05:30:08 -08:00
Daniel Martí 5ec087fa30 Properly close http connection on TestList
If not, using `go test -count=n` would make them pile up and ultimately
get to the limit of open files:

	apiserver_test.go:984: 17: unexpected error: Get http://127.0.0.1:44131/apis/test.group/version/simple: dial tcp 127.0.0.1:44131: socket: too many open files

Steps to reproduce (no longer fails):

	godep go test -short -run '^$' -o test .
	./test -test.run '^TestList$' -test.count 100

Note that this might not fail if your `ulimit -n` is not low enough.
2015-12-05 13:29:03 +01:00
k8s-merge-robot ee8598fd91 Merge pull request #17137 from janetkuo/deployment-minreadysec
Auto commit by PR queue bot
2015-12-05 01:37:35 -08:00
jiangyaoguo 7153ff80ff print absolute time when watch event 2015-12-05 13:52:53 +08:00
mqliang 0fd51b9e72 make 'deployment.kubernetes.io/podTemplateHash' as constant 2015-12-05 11:17:12 +08:00
Yifan Gu 4ac6129578 kubelet: Small refactor on GetPhase(). 2015-12-04 18:43:09 -08:00
Random-Liu 3cbdf79f8c Change original PodStatus to APIPodStatus, and start using kubelet internal PodStatus in dockertools 2015-12-04 17:37:39 -08:00
k8s-merge-robot c55b136ae2 Merge pull request #17149 from zhengguoyong/refactor_set_node_status
Auto commit by PR queue bot
2015-12-04 16:10:04 -08:00
Tim St. Clair 2430454eea Update PodReady condition when updating container readiness 2015-12-04 15:40:33 -08:00
Kris e2583e294d Cleaning up test organization for impending move
I'm moving/deleting some tests to make an upcoming RESTClient refactor
PR cleaner.

 - TestDoRequestBearer is redundant to
   pkg/client/transport.TestBearerAuthRoundTripper
 - Added a case to pkg/client/transport.TestBasicAuthRoundTripper to
   cover what TestDoRequestWithoutPassword was testing
 - Moved TestSetsCodec, TestRESTClientRequires,
   TestValidateHostParameter to helper_test.go since they were really
   testing helper functions and not the RESTClient directly.
 - Modified TestValidateHostParameter during the moved to just use
   DefaultServerURL instead of creating a client.
2015-12-04 14:21:06 -08:00
Janet Kuo 8fb0caa15b Implement MinReadySeconds for Deployment 2015-12-04 12:58:34 -08:00
derekwaynecarr 54f5bb393b Fix missing field selector conversions in v1 2015-12-04 15:43:05 -05:00
Derek Gonyeo 7ae6bf9d39 rkt: rewrote ListImages to use rkt's API service 2015-12-04 11:25:56 -08:00
James Munnelly 61306c2a0f Allow rolling-update of a single container in multi-container pods
Accept codec as parameter to CreateNewControllerFromCurrentController function. Add tests for performing a rolling update on a container in a multi-container pod.
2015-12-04 18:38:55 +00:00
k8s-merge-robot 9e896e3416 Merge pull request #16948 from swagiaal/move-formatAndMount
Auto commit by PR queue bot
2015-12-04 10:37:33 -08:00
k8s-merge-robot 37d22999b4 Merge pull request #17572 from yujuhong/kubeutil
Auto commit by PR queue bot
2015-12-04 03:15:54 -08:00
zhengguoyong 08c6bab575 Refactor fun setNodeStatus 2015-12-04 19:00:33 +08:00
k8s-merge-robot 9bd5995841 Merge pull request #18158 from gmarek/master
Auto commit by PR queue bot
2015-12-04 02:14:38 -08:00
Salvatore Dario Minonne 80575c3093 renaming PodSelector to LabelSelector 2015-12-04 09:49:08 +01:00
Salvatore Dario Minonne 3288ce0dcb renaming labels.LabelSelector to labels.internalSelector 2015-12-04 09:21:33 +01:00
Tim Hockin 29a2fded52 Revert "Change to alpha/beta for bandwidth annotations"
This reverts commit 2f4c3035be.
2015-12-03 17:20:23 -08:00
Xiang Li cf82d6b004 resource: optimize scale function
The original scale function takes around 800ns/op with more
than 10 allocations. It significantly slow down scheduler
and other components that heavily relys on resource pkg.
For more information see #18126.

This pull request tries to optimize scale function. It takes
two approach:

1. when the value is small, only use normal math ops.
2. when the value is large, use math.Big with buffer pool.

The final result is:

BenchmarkScaledValueSmall-4	20000000	        66.9 ns/op	       0 B/op	       0 allocs/op
BenchmarkScaledValueLarge-4	 2000000	       711 ns/op	      48 B/op	       1 allocs/op

I also run the scheduler benchmark again. It doubles the throughput of
scheduler for 1000 nodes case.
2015-12-03 17:00:13 -08:00
k8s-merge-robot a5100ef057 Merge pull request #17248 from thockin/airplane_validation_pt4
Auto commit by PR queue bot
2015-12-03 16:59:23 -08:00
k8s-merge-robot c849825d18 Merge pull request #16400 from caesarxuchao/fix-proxy-content-length
Auto commit by PR queue bot
2015-12-03 15:56:03 -08:00
Zach Loafman a7da123836 Merge pull request #18173 from mikedanese/pod-stuck
actually validate semver in node controller rather than prefix checking
2015-12-03 15:55:22 -08:00
k8s-merge-robot b9f31ca2c4 Merge pull request #11827 from deads2k/make-permissive-sas
Auto commit by PR queue bot
2015-12-03 15:16:50 -08:00
Mike Danese f784be33ac actually validate semver in node controller rather than prefix checking 2015-12-03 14:49:44 -08:00
derekwaynecarr 55d4f70f8e Resource quota observes deletes faster 2015-12-03 17:35:05 -05:00
Mike Danese 2c49893733 Merge pull request #18032 from mikedanese/semver
add semver parsing of gitversion to pkg/version
2015-12-03 13:49:06 -08:00
Yu-Ju Hong c8a075ad62 Do not delete pod status entry when apiserver returns NotFound error
The logic doesn't apply to static pods as their corresponding mirror pod may
not have been created yet, or may be in the process of recreation. Deleting the
pod status immediately resets the version of the status for the static pod,
while the apiStatusVersion remains unchanged. This could lead to incorrect
versioning and hence stale pod status in the apiserver.
2015-12-03 13:11:48 -08:00
Yu-Ju Hong a4816b3bcb Make kublet/util/format.go a separate package
The formatting function is used often in logging. This improves the readability
by shortening the length of the call. Also change the fomartted string to
include the pod UID.
2015-12-03 12:47:36 -08:00