Commit Graph

855 Commits (433c74b87de95587dd0fb0398c75a23437f864cb)

Author SHA1 Message Date
Satnam Singh 1d44d06190 Merge pull request #10032 from deads2k/client-debugging
add debugging transport for client
2015-06-18 14:24:03 -07:00
Mike Danese 3de11e2fa8 reenable patch serverside using strategic-merge-patch 2015-06-18 12:06:46 -07:00
deads2k bab0a61ef1 add debugging transport for client 2015-06-18 14:51:00 -04:00
Chao Xu 1be9789795 remove references to v1beta1/2 in listwatch_test.go 2015-06-17 17:23:33 -07:00
Jeff Lowdermilk 57a6355807 Unittest for #9762
Started looking at refactoring of the kubectl Factory, which
caused me to experience all 5 stages of grief. There are some options
for improving, but it probably warrants a proposal with some discussion/
feedback. In the meantime this tests `NegotiateVersion` in isolation.
2015-06-16 20:04:51 -07:00
Daniel Smith f990899290 fix annoying 'please check...' messages; remove v1beta1&2 ref 2015-06-16 16:21:54 -07:00
Brendan Burns 1dd18673ec Merge pull request #9762 from jlowdermilk/negotiate-api-version
kubectl negotiates api version to use based on client,server supported versions
2015-06-16 11:18:08 -07:00
Jeff Lowdermilk f31191224b kubectl negotiates apiversion to use based on client,server supported 2015-06-16 10:12:39 -07:00
nikhiljindal 3d63c71cbc Removing legacyBehavior param from pkg/client 2015-06-15 16:49:11 -07:00
Clayton Coleman bdbf477207 REST Client metrics capture grows unbounded
The URLs were unique by namespace and query parameter value, which means
an infinite number of metrics counters could be created.
2015-06-15 11:03:20 -04:00
krousey 934a5382ec Merge pull request #9496 from caesarxuchao/event_test-v1
update fieldPath in event_test.go to v1
2015-06-09 13:41:36 -07:00
krousey 3e7bcd1ecc Merge pull request #9182 from jdef/abspath_drops_config_prefix
ServerAPIVersions incorrectly squashes config.Prefix
2015-06-09 13:00:58 -07:00
Chao Xu 030099a5bd update fieldPath in event_test.go to v1 2015-06-09 10:45:55 -07:00
James DeFelice b5583db1d2 add UnversionedPath() to fix ServerAPIVersions() 2015-06-09 17:30:48 +00:00
krousey 5aa0219ada Merge pull request #9292 from cjcullen/test_pull_8946
Add an ssh tunnel option to the /proxy endpoint
2015-06-08 14:30:12 -07:00
krousey 49a6b629f8 Merge pull request #9171 from jdef/parse_prefix_from_server
parse apiserver prefix from client config host spec
2015-06-08 10:17:41 -07:00
CJ Cullen cb317604ab Some refactoring. Only selectively use ssh proxy.
Add NetworkName to gce.Config.
Add locking to uses of master.tunnels.
2015-06-05 14:55:16 -07:00
CJ Cullen 1ae8801387 Fix transport creation logic.
Refactor loadTunnels to allow one path for load, another for refresh.
Make SSHTunnelList.Close sleep for a minute before actually closing each tunnel.
2015-06-05 14:55:16 -07:00
Brendan Burns 7ea533d871 Add the SSHTunnel transport to the kubelet client. 2015-06-05 14:55:15 -07:00
Quinton Hoole 8b01ecb53a Merge pull request #9024 from markturansky/recyc_controllers
PersistentVolumeRecycler controller
2015-06-05 11:39:08 -07:00
James DeFelice 4b8995f009 parse apiserver prefix from client config host spec, with unit test 2015-06-04 20:20:19 +00:00
markturansky 2829fadfad PV Recycling API 2015-06-04 15:39:34 -04:00
Brian Grant 656fa7bea1 Merge pull request #9225 from caesarxuchao/add-v1-tests-general
Add v1 tests
2015-06-03 22:18:21 -07:00
Chao Xu ca72165b20 remove most references to api.PreV1Beta3 2015-06-03 20:09:03 -07:00
Chao Xu 6b81c064ed change v1beta3 to v1 in test cases 2015-06-03 17:50:22 -07:00
Daniel Smith 67f53d2eff Make kubectl work inside a container in k8s 2015-06-03 12:48:07 -07:00
Eric Tune 6e3ff01fa7 Merge pull request #9092 from lavalamp/no-ro-nonbreaking
Nonbreaking changes working towards removing the RO port
2015-06-03 09:25:46 -07:00
Daniel Smith e3c0e38f1b Move cluster client creation to client.NewInCluster()
Built & pushed nettest:1.4.
2015-06-02 18:47:06 -07:00
Filip Grzadkowski 7cdfb2ac7f Reduce number of list requests in watch-based cache 2015-06-03 00:55:49 +02:00
Prashanth B 6c209ec193 Revert "Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones"" 2015-05-29 09:24:39 -07:00
Tim Hockin b69fad211e Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones" 2015-05-28 10:23:55 -07:00
Wojciech Tyczynski 6ffe46a9e0 Merge pull request #8822 from bprashanth/fifo_rc
Wake up rcs when pods get DeletionFinalStateUnknown tombstones
2015-05-28 10:50:28 +02:00
Prashanth Balasubramanian 8fa66bd962 Delta fifo includes objects in DeleteFinalStateUnknow, rcs stop faster 2015-05-27 16:45:51 -07:00
Tim Hockin fc8aa104ae Merge pull request #8670 from jbdalido/nilparameters
Quick fix for listPods with nil parameters
2015-05-27 15:39:23 -07:00
Dawn Chen b31505bfba Merge pull request #8646 from andronat/failed_test_TestCreateMissingContext
Test fails when arbitrary kubernetes master is set
2015-05-22 14:56:53 -07:00
jbdalido 6ea63e69ce fix for listPods with nil parameters 2015-05-22 16:21:13 +02:00
Anastasis Andronidis 66a758b85d Test fails when env variables are set 2015-05-22 01:12:55 +02:00
Jeff Lowdermilk 4ef79733b6 Remove pkg/api dependency from pkg/client/clientcmd/api 2015-05-21 11:47:50 -07:00
Daniel Smith 80c3506484 Merge pull request #8494 from liggitt/gate_tokens_controller
Wait until stores are filled before processing service account token events
2015-05-21 10:29:53 -07:00
Jordan Liggitt 49ceb82179 Wait until stores are filled before processing service account token events 2015-05-20 22:19:42 -04:00
Tim Hockin 75617e8760 Better kubelet logging for probes
Log when we actually run probes and event when they fail.  Print the output of
a probe, too.
2015-05-20 08:56:45 -07:00
Tim Hockin 70c94fad6d Don't rename api imports in conversions 2015-05-19 11:21:21 -07:00
Tim Hockin f66ca25d9f Rename AccessMode to PersistentVolumeAccessMode 2015-05-18 17:21:30 -07:00
Jeff Lowdermilk db09ceae25 Remove dependency on pkg/api from pkg/client/clientcmd/api 2015-05-15 19:03:34 -07:00
Yu-Ju Hong 4b40db3367 Remove /podInfo endpoint on kubelet
Kubelet sends pod status updates to the API server now. This endpoint is no
longer needed.
2015-05-14 17:51:26 -07:00
Masahiro Sano 3b27e73726 add client for podTemplate resource 2015-05-14 22:05:03 +09:00
Derek Carr f3835c1f7e Merge pull request #8123 from deads2k/expose-flag-bind
expose FlagInfo binding methods
2015-05-13 13:56:24 -04:00
deads2k bd66e9011d expose FlagInfo binding methods 2015-05-12 13:33:11 -04:00
Nikhil Jindal d75bd8bf2a Merge pull request #7101 from liggitt/service_account
ServiceAccounts
2015-05-12 10:23:41 -07:00
Derek Carr 3e4713787a Merge pull request #7436 from akram/fix_port_forward_listens_ipv_and_ipv4
Port forward now listens on IPv4 and IPv6 localhost address
2015-05-12 10:27:56 -04:00
Jordan Liggitt 53d55f4192 Add ServiceAccount API type, client 2015-05-11 17:18:05 -04:00
deads2k 19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
deads2k 6498fc1fda remove cmd respect for auth-path 2015-05-08 16:33:33 -04:00
Cesar Wong d954c31b22 Update Exec and Portforward client to use pod subresource 2015-05-07 14:25:14 -04:00
Prashanth Balasubramanian 4b0607cf0b Scheduler ignored nodes with unknown condition status 2015-05-06 18:32:52 -07:00
Daniel Smith 16a6fb8ef7 Replace calls to time.After with time.NewTimer for explicit stopping 2015-05-04 14:29:33 -07:00
Daniel Smith 36977ecb67 Merge pull request #7643 from bprashanth/rc_status
Requeue rc if a single get/put retry on status.Replicas fails
2015-05-04 12:15:30 -07:00
Prashanth Balasubramanian 864e12d995 Retry once and requeue on failure to update status.Replicas 2015-05-01 18:10:58 -07:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Clayton Coleman 1a8845af61 Merge pull request #7490 from smarterclayton/alter_list
Do not automatically decode runtime.RawExtension
2015-05-01 16:48:26 -04:00
Prashanth Balasubramanian a8fdf3d78b Update expiration timeout based on observed latencies 2015-05-01 08:53:51 -07:00
Piotr Szczesniak 11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Akram Ben Aissi a788002d0d Port forward now listens on IPv4 and IPv6 localhost address
- Tries to listen 127.0.0.1 and the given port
- Tries to listen [::1] and the given port
- If both of them fails port-forward fails
- If at least one succeeds, port-forward listens on the corresponding interface and displays a warning for the other
- If both succeeds, port-portfward listens on both the interfaces
2015-04-30 09:17:41 +02:00
Clayton Coleman 53ca1fcc7a Expose URL() on Request to allow building URLs
The client/Request type is the appropriate place to build
URLs, this allows callers to generate URLs for providing to
others (such as SelfLinks or relative links to objects).
2015-04-29 23:27:13 -04:00
Victor Marmol 209b4fcbef Merge pull request #6718 from vishh/sys_oom1
Adding system oom events from kubelet
2015-04-29 14:29:38 -07:00
Clayton Coleman 12ba4e2452 Do not automatically decode runtime.RawExtension
Make clients opt in to decoding objects that are stored
in the generic api.List object by invoking runtime.DecodeList()
with a set of schemes. Makes it easier to handle unknown
schema objects because decoding is in the control of the code.

Add runtime.Unstructured, which is a simple in memory
representation of an external object.
2015-04-29 12:53:07 -04:00
Daniel Smith 4d2f7a38c2 Merge pull request #6866 from bprashanth/rc_watch_pods
RcManager watches pods and RCs instead of polling every 10s
2015-04-29 09:10:55 -07:00
Victor Marmol 587d5a6b85 Merge pull request #7408 from vishh/kubelet_namespace
Set the default namespace for events to be "default"
2015-04-29 08:23:27 -07:00
Vishnu Kannan 820d0f3e83 Adding a 'PastEventf' method to EventRecorder interface. This will be
useful for recording the timestamp of events that happened in the past.
2015-04-28 16:13:29 -07:00
Vishnu Kannan 84e2c36cf7 Set namespace of events to "default" if the involved object does not have
any namespace set.
2015-04-28 16:08:16 -07:00
Prashanth Balasubramanian 7592dabeba RcManager uses informers 2015-04-28 13:45:15 -07:00
Jordan Liggitt ac67fff1cf Convert Secret registry to use update/create strategy, allow filtering by Type 2015-04-28 15:00:20 -04:00
Brian Grant 60d7bad147 Merge pull request #7128 from nikhiljindal/fixbeta1tests
Removing more references to v1beta1 from pkg/
2015-04-24 11:07:53 -07:00
Michal Fojtik 1d496a030e Suppress 'use of closed network connection' error in iowatcher
Signed-off-by: Michal Fojtik <mfojtik@redhat.com>
2015-04-24 14:32:00 +02:00
nikhiljindal dcc368c781 Removing more references to v1beta1 from pkg/ 2015-04-24 00:45:17 -07:00
Satnam Singh bb478a9e21 Merge pull request #7007 from jlowdermilk/kubeconfig-verbose
Add a --short flag to kubectl config view
2015-04-23 14:51:13 -07:00
Jeff Lowdermilk fa6ce7b7bf Add a --raw flag to kubectl config view
Defaults to false, unless --flatten is specified. Default behavior
(--raw=false) is that byte data (Client{Certificate,Key}data,
CertificateAuthorityData) is redacted for a more human-readable view.
Useful for manually inspecting files that have embeded data.
2015-04-23 09:19:45 -07:00
Akram Ben Aissi 0883bfa6d3 Fixes an issue with hosts having an IPv6 address on localhost
- When 'getent hosts localhost' returns '::1' the creation of the
  listener fails because of the port parsing which uses ":" as a
separator
- Use of net.SplitHostPort() to do the job
- Adding unit tests to ensure that the creation succeeds
- On docker.go: adds a test on the presence the socat command which was
  failing silenty if not installed

- Code Review 1
  - Fixed typo on Expected
  - The UT now fails if the PortForwarder could not be created

- Code Review 2
  - Simplify socat error message
  - Changing t.Fatal to to.Error on unit tests

- Code Review 3
  - Removing useless uses cases in unit tests

- Code Review 4
  - Removing useless initiliasiation of PortForwarder
  - Changing error message

- Code Review 5
  - Simplifying TestCast struct
  - Adding addition test in one test case
  - Closing the listener

- Code Review 6
  - Improving unit test
2015-04-22 22:20:51 +02:00
Brian Grant 15c2986a07 Merge pull request #7067 from ravigadde/master
Added field selector for listing pods
2015-04-22 07:12:21 -07:00
Akram Ben Aissi b7fc22be8a Fixes an issue with hosts having an IPv6 address on localhost
- When 'getent hosts localhost' returns '::1' the creation of the
  listener fails because of the port parsing which uses ":" as a
separator
- Use of net.SplitHostPort() to do the job
- Adding unit tests to ensure that the creation succeeds
- On docker.go: adds a test on the presence the socat command which was
  failing silenty if not installed

- Code Review 1
  - Fixed typo on Expected
  - The UT now fails if the PortForwarder could not be created

- Code Review 2
  - Simplify socat error message
  - Changing t.Fatal to to.Error on unit tests

- Code Review 3
  - Removing useless uses cases in unit tests

- Code Review 4
  - Removing useless initiliasiation of PortForwarder
  - Changing error message

- Code Review 5
  - Simplifying TestCast struct
  - Adding addition test in one test case
  - Closing the listener

- Code Review 6
  - Improving unit test
2015-04-21 20:16:22 +02:00
Ravi Gadde bf8f258471 Added field selector for listing pods. 2015-04-21 06:33:28 -07:00
Brendan Burns e079e23e47 Merge pull request #6597 from fabioy/kubectl-validate
Add "kubectl validate" command to do a cluster health check.
2015-04-20 11:21:06 -07:00
Daniel Smith a2953fdc7e Make endpoint controller use framework 2015-04-17 15:21:51 -07:00
Daniel Smith da5111891c Fix selector handling in listers.go. 2015-04-17 15:21:37 -07:00
Daniel Smith 8a17ea4894 Add Delete method to endpoints client. 2015-04-17 14:55:19 -07:00
Kris Rousey 81497f3ed2 Changing the scheduler package to use *api.Pod instead of api.Pod to
avoid unnecessary shallow copies. The change rippled through a lot of
code.
2015-04-17 13:34:31 -07:00
Fabio Yeon 951a125751 Add "componentstatus" to API for easier cluster health check. 2015-04-17 11:58:23 -07:00
Brian Grant a927c239fe Merge pull request #6881 from nikhiljindal/errHandle
Registering a serviceErrorHandler with go-restful to always return JSON responses
2015-04-16 16:44:17 -07:00
nikhiljindal f9132dc572 Registering serviceErrorHandler with go-restful 2015-04-16 14:59:44 -07:00
Jeff Lowdermilk 97e4549170 Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
Eric Tune e300bf3e13 Merge pull request #6922 from fabianofranz/fix_config_dir_creation
Create complete parent dir structure when saving config to file
2015-04-16 13:40:32 -07:00
Quinton Hoole 31dc4851ef Merge pull request #6870 from a-robinson/client
Make client service requests use the default timeout now that external load balancers are created asynchronously
2015-04-16 11:41:05 -07:00
fabianofranz f71aa6ad38 Create complete parent dir structure when saving config to file 2015-04-16 14:17:54 -03:00
deads2k de4be5422c change kubeconfig loading order 2015-04-16 13:05:09 -04:00
Alex Robinson 4e7248e47b Make client service requests use the default timeout now that external
load balancers are created asynchronously.
2015-04-15 18:37:53 +00:00
Wojciech Tyczynski afb94c43b1 Fix listing nodes in scheduler 2015-04-15 14:26:25 +02:00
Derek Carr 9b6ba23622 Merge pull request #6761 from deads2k/deads-kubeconfig-squash
add flattening and minifying options to config view
2015-04-14 11:45:39 -04:00
deads2k bac5cbbe82 add flattening and minifying options to config view 2015-04-14 10:23:10 -04:00
Jordan Liggitt 8faf02ba58 Make secrets client honor namespace 2015-04-13 21:17:09 -04:00
Fabio Yeon e99141de0d Merge pull request #6729 from smarterclayton/chaosclient
Add a new Chaos transport that can simulate network failure and add it to the kubelet
2015-04-13 16:06:53 -07:00
deads2k e7baa94404 allow selective removal of kubeconfig override flags 2015-04-13 13:14:23 -04:00
markturansky ac4d34e5d7 Added PV & PVC client tests 2015-04-13 10:10:52 -04:00
markturansky d8c87e93dc Adding missing UpdateStatus methods to client 2015-04-13 10:10:52 -04:00
Clayton Coleman 0146e318f5 Allow client.Config to wrap the underyling Transport 2015-04-11 13:20:48 -04:00
Clayton Coleman 66e746bade Add a transport that can simulate random network errors 2015-04-11 13:20:48 -04:00
Daniel Smith 66d55e0959 Merge pull request #6546 from lavalamp/fix
Add to controller framework; use in scheduler
2015-04-10 16:20:17 -07:00
Daniel Smith 5f7715f0e9 Make scheduler not miss deletion events even in the case of a resync. 2015-04-10 14:05:08 -07:00
Daniel Smith 880f922bb6 Add easy setup for simple controller
Also add tests; coverage up to 86.7%
2015-04-10 14:05:07 -07:00
Deyuan Deng 868e05ce96 Remove nodeinfo endpoint from kubelet 2015-04-10 15:47:32 -04:00
Daniel Smith 8dfd7001f5 Merge pull request #6671 from smarterclayton/ensure_body_is_closed
Reorganized Request.DoRaw() to guarantee streams are closed
2015-04-10 11:46:42 -07:00
Daniel Smith e2093798cb Merge pull request #6675 from wojtek-t/nodes_support_field_selector
FieldSelector for node List()
2015-04-10 10:30:55 -07:00
Timothy St. Clair 2b60111fca Performance change to option enable client.QPS, client.Burst
and change default on max_requests_inflight.
2015-04-10 07:53:54 -05:00
Wojciech Tyczynski 88eb0b0295 FieldSelector for node List() 2015-04-10 12:53:16 +02:00
Clayton Coleman 852ef7b637 Reorganized Request.DoRaw() to guarantee streams are closed
Added a test to verify 429 triggers a client retry based on
header. Forced resp.Body.Close() to close after each request,
which allows Golang to reuse the TCP connection to the server
(should reduce connection establishment under retries).
Possibly fixed a server leak of request bodies.
2015-04-10 01:10:35 -04:00
Daniel Smith 629d94657e Merge pull request #6624 from gmarek/status_to_subresource
Update NodeStatus use subresources.
2015-04-09 16:00:15 -07:00
Jeff Lowdermilk 96076eb129 Merge pull request #6585 from deads2k/deads-config-takes-factory
make kubectl config behave more expectedly
2015-04-09 14:54:55 -07:00
Daniel Smith 71dd4ddc52 Merge pull request #6627 from bprashanth/watcher_cancel
Fix RunUntil and stop leaking watch channel on etcd error
2015-04-09 12:47:54 -07:00
deads2k b2e3f2185e make kubectl config behave more expectedly 2015-04-09 15:43:57 -04:00
Prashanth Balasubramanian 5234c2dc82 Fix RunUntil and stop leaking watch channel on etcd error 2015-04-09 11:03:30 -07:00
Andy Goldstein c07e98b7f5 Fix flakey port forward test
Only simulate data for the data stream, not for the error stream too.

Fixes #6529
2015-04-09 13:18:51 -04:00
gmarek ccc56d3c3c Update NodeStatus use subresources. 2015-04-09 14:07:40 +02:00
Vish Kannan b12d75d0ee Merge pull request #6610 from markturansky/fifos_typos
Fixed typos in FIFO comments
2015-04-08 18:08:42 -07:00
Vish Kannan 844e375ceb Merge pull request #6603 from nikhiljindal/encoder
Removing some references to v1beta1 from test code
2015-04-08 18:06:32 -07:00
markturansky e5f280b79e fixed typos 2015-04-08 21:00:48 -04:00
nikhiljindal 08d9e244f7 Removing some references to v1beta1 from test code 2015-04-08 17:28:06 -07:00
Daniel Smith 43ec88fda5 Merge pull request #6179 from bprashanth/ts_ttl_scheduler
Modeler uses a ttl store for assumed pods
2015-04-08 15:25:05 -07:00
Clayton Coleman 4a31da0808 Merge pull request #6579 from deads2k/deads-fix-stream
make .Stream handle error status codes
2015-04-08 18:21:06 -04:00
Prashanth Balasubramanian a7864aa230 Scheduler uses TTLStore for assumed pods 2015-04-08 15:01:04 -07:00
Vish Kannan 094cbcc6fe Merge pull request #6074 from derekwaynecarr/reflector_last_sync_resource_version
Expose last sync resource version on reflector
2015-04-08 14:56:33 -07:00
derekwaynecarr 9df41301f0 Expose last sync resource version 2015-04-08 17:09:06 -04:00
deads2k dbda3f7303 make .Stream handle error status codes 2015-04-08 13:52:16 -04:00
Masahiro Sano d04cc5ced4 List in NodesInterface takes label selector 2015-04-08 23:41:27 +09:00
Daniel Smith c1390a0836 version field selector field names in the client 2015-04-07 16:59:57 -07:00
Derek Carr 6eb54e73e0 Merge pull request #5270 from lavalamp/fix7
Controller framework
2015-04-07 16:58:09 -04:00
Nikhil Jindal 842b9d8d3a Merge pull request #6493 from smarterclayton/make_client_pluggable
Make the client.Fake more powerful by standardizing how the fake loads data
2015-04-07 12:48:27 -07:00
Clayton Coleman 51db3bd654 Create a new testclient package that can be backed by disk files
Standardize how our fakes are used so that a test case can use a
simpler mechanism for providing large, complex data sets, as well
as represent queries over time.
2015-04-07 14:56:15 -04:00
markturansky 8f24fbc40c fixed typo 2015-04-07 12:38:09 -04:00
Rohit Jnagal 0400339d01 Merge pull request #6494 from lavalamp/fix2
compute query parameter names in the client.
2015-04-06 18:44:45 -07:00
Daniel Smith 44bc29631e compute query parameter names in the client. 2015-04-06 16:54:26 -07:00
derekwaynecarr b1dca3232f Improve test case to ensure finalize does desired behavior 2015-04-06 13:13:06 -04:00
Rohit Jnagal fe735d33ac Merge pull request #6441 from smarterclayton/hide_already_exists_error
Do not log "event already exists" errors
2015-04-06 08:59:46 -07:00
markturansky 95bd170ca2 PV & PVC Client implementation 2015-04-06 08:46:43 -04:00
Clayton Coleman aee73d6729 Do not log "event already exists" errors
When the server rejects an event because it has already been created, log it
at a very high level (debug) instead of the default level. Duplicate events
typically only occur due to programmer error or failure conditions, so they
can safely be ignored in production environments.
2015-04-04 11:35:56 -04:00
Yu-Ju Hong dbd7b186a0 Merge pull request #6338 from smarterclayton/improve_config_error
Return a typed error for config validation, and make errors simple
2015-04-03 18:08:15 -07:00
Brian Grant b0b6418ca3 Merge pull request #6377 from nikhiljindal/kubevtl
Updating components to use v1beta3
2015-04-03 15:58:09 -07:00
nikhiljindal f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Brian Grant 0d95883593 Merge pull request #6027 from ghodss/kube-patch
Implement Strategic Merge Patch in apiserver
2015-04-03 15:08:51 -07:00
Brian Grant 8e91097f82 Merge pull request #6423 from lavalamp/fix
Fix incorrect reference to name in v1beta3 API.
2015-04-03 14:45:47 -07:00
Brendan Burns 88dbdc4a69 Merge pull request #6203 from brendandburns/qps
Add a QPS limiter to the kubernetes client.
2015-04-03 14:24:29 -07:00
Eric Tune e49424785e Merge pull request #6380 from roberthbailey/kubelet-ssl
Configure the kubelet to use HTTPS (take 2)
2015-04-03 13:43:00 -07:00
Daniel Smith 0c2d3ffe68 Single-key matching behavior in generic.Matcher 2015-04-03 13:11:21 -07:00
Brendan Burns 3f98ac07c2 Add a QPS limiter to the kubernetes client. 2015-04-03 11:58:51 -07:00
Sam Ghods 2c977db1b3 Implement Strategic Merge Patch in apiserver 2015-04-03 11:51:02 -07:00
Filip Grzadkowski 4c50767c80 Add metrics to REST client 2015-04-03 14:42:06 +02:00
Daniel Smith cc5ef8c5ad make undelta store use go's implementatio inheritance mechanism 2015-04-02 15:31:19 -07:00
Daniel Smith 8ee9ee9920 add ListKeys method to Store 2015-04-02 15:26:39 -07:00
Robert Bailey f15e34a1bf Revert "Merge pull request #6309 from GoogleCloudPlatform/revert-6243-kubelet-ssl"
This reverts commit 96a0a0d618, reversing
changes made to 2af9b54147.
2015-04-02 10:44:37 -07:00
Federico Simoncelli 8849cf21d3 event: fallback to creation when update fails
Updating may fail because the item was removed from apiserver. This
patch makes sure to retry using creation instead of update.

Fixes #6289

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-02 09:15:01 -04:00
Federico Simoncelli b276132e21 event: improve logging on recording failure
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-02 09:07:32 -04:00
Clayton Coleman 323a44e54a Make kubectl errors even more user-friendly
Omit glog prefix when v < 2, show multiline errors for configuration
problems, add new generic messages for server errors that hide some
complexity that is not relevant for users.
2015-04-02 01:40:15 -04:00
Clayton Coleman 9b5b27a12e Return a typed error for config validation, and make errors simple
Will allow clients to determine when the configuration is bad.
2015-04-02 01:40:00 -04:00
Robert Bailey 32a1c052dc Revert "Configure the kubelet to use HTTPS" 2015-04-01 13:59:31 -07:00
Robert Bailey 58bc792e68 Configure the master to connect to the kubelet using HTTPS. 2015-04-01 09:09:29 -07:00
Victor Marmol 2de37624e8 Merge pull request #6252 from krousey/string_format_cleanup
Fixing a lot of string formatting issues
2015-03-31 16:57:36 -07:00
Kris Rousey 6904c4d585 Fixing a lot of string formatting issues with regards to:
* Improper format specifier (e.g. %s for bools or %s for ints)
  * More or less parameters than format specifiers
  * Not calling a formatting function when it should have (e.g. Error() instead of Errorf())
2015-03-31 16:47:10 -07:00
Brendan Burns 313a365712 Merge pull request #5473 from lavalamp/fix6
Add DeltaFIFO (a controller framework piece)
2015-03-31 13:29:00 -07:00
Daniel Smith 68287713a0 Add a "delta fifo", which queues up object changes
Test coverage for module at 80%.
2015-03-31 10:25:29 -07:00
Daniel Smith af870b8772 Add proper key error type 2015-03-31 10:25:29 -07:00
Daniel Smith e8cc126a56 Add ListKeys() to FIFO & test 2015-03-31 10:25:29 -07:00
Daniel Smith a8184e81bc Update FIFO documentation 2015-03-31 10:25:29 -07:00
Tim Hockin eeff1b74fb Fixes from feedback and testing 2015-03-30 23:52:37 -07:00
Tim Hockin 186818d787 WIP: Implement multi-port Services 2015-03-30 19:28:11 -07:00
saadali e0f71cb21f Make each new instance of kubelet generate a new event channel (instead of reusing existing). 2015-03-30 14:22:16 -07:00
Brian Grant c9ad322ba9 Merge pull request #5831 from smarterclayton/add_more_errors
Add more specific error handling and handle generic errors more effectively
2015-03-27 14:17:11 -07:00
Clayton Coleman aa44d29d10 Updated documentation and adjusted field names 2015-03-27 17:08:59 -04:00
Tim Hockin 8ae203825b Implement multi-port endpoints
Instead of endpoints being a flat list, it is now a list of "subsets"
where each is a struct of {Addresses, Ports}.  To generate the list of
endpoints you need to take union of the Cartesian products of the
subsets.  This is compact in the vast majority of cases, yet still
represents named ports and corner cases (e.g. each pod has a different
port number).

This also stores subsets in a deterministic order (sorted by hash) to
avoid spurious updates and comparison problems.

This is a fully compatible change - old objects and clients will
keepworking as long as they don't need the new functionality.

This is the prep for multi-port Services, which will add API to produce
endpoints in this new structure.
2015-03-27 12:36:32 -07:00
Brian Grant 984bc8d5f6 Merge pull request #5635 from ravigadde/master
Add timeout to kubelet client
2015-03-26 14:55:24 -07:00
Clayton Coleman 524f8731b5 Decode errors returned to clients by the Watch interface 2015-03-26 17:30:13 -04:00
Clayton Coleman 30358e8b04 Add more specific error handling and handle generic errors more effectively
The client library should type more generic errors from the server.
2015-03-26 17:30:13 -04:00
derekwaynecarr 267ef26b0f Do not block admission if namespace already exists 2015-03-26 15:59:09 -04:00
Brian Grant 3b0db99692 Merge pull request #5915 from piosz/api
Changed PodInfo to be a list
2015-03-26 12:46:50 -07:00
Vish Kannan f2e47a29e1 Merge pull request #5994 from dchen1107/clean
Fixed an issue on searching events by a given fieldSelector. The issue b...
2015-03-26 10:21:09 -07:00
Dawn Chen ab0e9f1d41 Fixed an issue on searching events by a given fieldSelector. The issue break
the events reported for kubectl describe pods completely.

Fixed #5957
2015-03-26 10:00:10 -07:00
gmarek 5a11748018 Move Capacity from NodeSpec to NodeStatus 2015-03-26 15:28:48 +01:00
Piotr Szczesniak 31901ed9d0 Changed PodInfo to be a list
This change is to make API consistent with our convention.

Fixes #3622
2015-03-26 10:15:25 +01:00
Clayton Coleman b1ab14315b Clients should not check conditions, UpdateStatus() is inconsistent
Corrects some of the cargo culting that has crept into the API.
2015-03-25 16:25:04 -04:00
nikhiljindal ba3746172f Updating unit tests for pkg/client so that they pass with v1beta3 api 2015-03-24 18:54:02 -07:00
Brian Grant d75291dbe7 Merge pull request #5838 from nikhiljindal/clientTests
Updating unit tests so that they pass with v1beta3 api
2015-03-24 17:30:50 -07:00
Piotr Szczesniak fef81150b9 Merge pull request #5858 from a-robinson/timeout
Increase the client-specified timeout for service create/update/delete.
2015-03-24 21:42:01 +01:00
Alex Robinson ab67cba7fb Increase the client-specified timeout for service create/update/delete.
This is only temporary until external load balancer creation is changed to
be asynchronous.
2015-03-24 20:17:36 +00:00
nikhiljindal 7e3b7f9673 Updating unit tests so that they pass with v1beta3 api 2015-03-24 12:13:53 -07:00
Clayton Coleman aee9bdd69a Merge pull request #5805 from liggitt/node_proxy
Improve ResourceLocation API, allow proxy to use authenticated transport
2015-03-24 13:01:54 -04:00
Clayton Coleman 97560c409f Merge pull request #5554 from derekwaynecarr/namespace_controller
Namespace Controller to support Namespace Termination
2015-03-24 12:59:00 -04:00
Jordan Liggitt a75b501821 Improve ResourceLocation API, allow proxy to use authenticated transport 2015-03-24 11:11:34 -04:00
derekwaynecarr 29c491ef2e Namespace.Spec.Finalizer support 2015-03-24 10:36:06 -04:00
Wojciech Tyczynski f7191d626d Change "/ns" to "/namespaces" in few remaining places. 2015-03-24 13:05:32 +01:00
Clayton Coleman d46087db50 Move REST* interfaces into pkg/api/rest
Dependency chain is now api -> api/rest -> apiserver.  Makes the
interfaces much cleaner to read, and cleans up some inconsistenties
that crept in along the way.
2015-03-23 16:52:21 -04:00
Saad Ali e8f70428fb Merge pull request #5715 from jszczepkowski/kubelet-nodesel
Running node selector predicate on kubelet.
2015-03-23 11:06:00 -07:00
Clayton Coleman d19aac80ea Merge pull request #5533 from smarterclayton/burn_yaml_with_fire
Burn YAML with fire (kind of)
2015-03-23 13:45:52 -04:00
Jerzy Szczepkowski 34a8a3a844 Running node selector predicate on kubelet.
Added checking on kubelet if scheduled pods have matching node selector. This is the last step to fix #5207.
2015-03-23 08:21:58 +01:00
Ravi Gadde 5871e53060 Add timeout to kubelet client 2015-03-20 18:46:45 -07:00
nikhiljindal 1b87060aec Adding GetFieldSelector() to client.EventInterface 2015-03-20 13:58:23 -07:00
Clayton Coleman 6918a4d32e Replace automatic YAML decoding with opt-in YAML decoding
Base codecs no longer automically handle YAML.  Instead, clients
must convert to JSON first via yaml.ToJSON and runtime.YAMLDecoder.
2015-03-20 00:03:56 -04:00
Brian Grant 11f9733599 Merge pull request #5587 from nikhiljindal/enable3
Updating integration tests to test both API versions - v1beta1 and 3
2015-03-18 16:14:20 -07:00
nikhiljindal 7e36bbab3c Updating integration tests to test both API versions - v1beta1 and 3 2015-03-18 15:24:11 -07:00
Jeff Lowdermilk 72699606a9 Merge pull request #5541 from deads2k/deads-expose-resolve-local-paths
allow any number of kubeconfig files
2015-03-18 10:46:47 -07:00
Filip Grzadkowski 1a352b74ba Periodically update pod status from kubelet. 2015-03-18 12:11:39 +01:00
Salvatore Dario Minonne 31ddefc347 Finalize fields.Selector 2015-03-17 22:55:43 +01:00
Victor Marmol 668e2dbcd8 Merge pull request #5502 from wojtek-t/completely_remove_bound_pods
Remove BoundPod type from source code
2015-03-17 08:09:50 -07:00
Filip Grzadkowski 18b728ff44 Revert "Periodically update pod status from kubelet." 2015-03-17 13:51:45 +01:00
deads2k 8555ed3ede allow any number of kubeconfig files 2015-03-17 08:49:34 -04:00
Wojciech Tyczynski e6d188fca8 Remove BoundPod structure 2015-03-17 10:27:41 +01:00
Victor Marmol 009737e69e Merge pull request #5205 from fgrzadkowski/sync_pod_status
Periodically update pod status from kubelet.
2015-03-16 17:04:31 -07:00
Brian Grant 2f9a41b898 Merge pull request #5233 from brendandburns/labels
Make label and field selector query strings versionable.
2015-03-16 16:01:37 -07:00
Filip Grzadkowski 336525a27d Periodically update pod status from kubelet. 2015-03-16 23:03:03 +01:00
Jeff Lowdermilk 2a8528704a Merge pull request #5446 from lavalamp/fix2
Add a system modeler to scheduler
2015-03-16 10:21:02 -07:00
Daniel Smith 992d78a32e Add a system modeler to scheduler
So it can try to predict the effect its bindings will have.
2015-03-13 17:48:16 -07:00
derekwaynecarr 799e3fa9cc Eliminate ResourceQuotaUsage in favor of ResourceQuota status 2015-03-13 16:52:09 -04:00
Daniel Smith e3594dfe2f Merge pull request #5404 from derekwaynecarr/delete_events
Client support to delete events
2015-03-13 12:36:43 -07:00
Ravi Sankar Penta f6ecec5880 Allow admin user to explicitly unschedule the node
Setting Unschedulable on the node will not touch any existing pods
on the node but will block scheduling of new pods on the node.
2015-03-12 14:27:27 -07:00
derekwaynecarr 703d2a87bf Client support to delete events 2015-03-12 16:55:31 -04:00
Brendan Burns 266234f3b9 Make label and field selector query strings versionable. 2015-03-12 12:24:07 -07:00
Wojciech Tyczynski 9f2f10d6db Make scheduler to watch PodSpec.Host instead Status.Host 2015-03-12 13:38:58 +01:00
Zach Loafman e780592315 Merge pull request #5264 from jlowdermilk/kube-up
Standalone kubeconfig for gce kube-up (mulligan)
2015-03-11 11:46:45 -07:00
Daniel Smith 6606f9c9f5 double-fix crash on my cluster 2015-03-11 09:54:33 -07:00
Jeff Lowdermilk 7db006ab1a Generate standalone kubeconfig on kube-up, clear on kube-down.
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-10 14:23:34 -07:00
Salvatore Dario Minonne 925fa6baf8 Adding fields selector 2015-03-10 22:13:10 +01:00
Brian Grant 9aa744925e Merge pull request #5030 from simon3z/nodeinfo
Add support for fetching node collected information
2015-03-10 14:05:41 -07:00
Daniel Smith e1f64b2901 Merge pull request #5235 from jszczepkowski/pods-watch
Watch support in PodInterface.
2015-03-10 11:59:04 -07:00
Brian Grant 7aa060bae7 Merge pull request #4706 from mikedanese/PATCH
add PATCH verb to apiserver
2015-03-10 11:38:22 -07:00
Derek Carr 99a5ab4cfa Merge pull request #5248 from pmorie/fix-events
Fix event recorder not to log events without a reference
2015-03-10 14:08:00 -04:00
Mike Danese 46ec580771 add PATCH to apiserver 2015-03-10 10:56:15 -07:00
Brian Grant 6062e14313 Merge pull request #5220 from nikhiljindal/camelCaseFieldSelectors
Changing v1beta3 field selectors to be camelCased
2015-03-10 09:35:03 -07:00
Paul Morie a373b234e9 Fix event recorder not to log events without a reference 2015-03-10 11:36:43 -04:00
Federico Simoncelli 1b18440f35 kubelet: add GetNodeInfo implementation
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 10:11:01 -04:00
Federico Simoncelli eb0b6f2bcf kubelet: improve client url composition
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 10:05:19 -04:00
Jerzy Szczepkowski 0342ba3476 Watch support in PodInterface.
Added Watch support to PodInterface. Extended pods e2e to test watch. Resolves #4777.
2015-03-10 09:45:44 +01:00
nikhiljindal 916ca9cc68 Changing v1beta3 field selectors to be camelCased 2015-03-09 18:01:01 -07:00
Jeff Lowdermilk a280e0da2d Revert "Standalone kubeconfig for gce kube-up" 2015-03-09 17:45:06 -07:00
Brian Grant 7b72d9539f Merge pull request #5054 from smarterclayton/switch_to_sub_bindings
Make Pod binding a subresource (and be generic to other types)
2015-03-09 16:41:26 -07:00
Satnam Singh 89bc7bbea9 Merge pull request #5154 from jlowdermilk/kube-up
Standalone kubeconfig for gce kube-up
2015-03-09 16:22:51 -07:00
Jeff Lowdermilk 4173d369aa Generate standalone kubeconfig on kube-up, clear on kube-down.
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-09 16:02:00 -07:00
Clayton Coleman dfc19185f5 Add a subbindings resource as /pods/{name}/binding
Allows POST to create a binding as a child. Also refactors internal
and v1beta3 Binding to be more generic (so that other resources can
support Bindings).
2015-03-09 15:37:19 -04:00
Clayton Coleman 227a1d306d Support SubResource call on Request
Allows better semantic use of Request when dealing with sub resources,
and allows clients to ignore ordering.  Supports multiple segments because
sub-resources are less tightly structured than regular resources.
2015-03-09 14:39:31 -04:00
Brendan Burns f505a33998 Differentiate between server error messages and client error messages in kubectl 2015-03-07 11:39:23 +01:00
Vish Kannan 53ec66caf4 Merge pull request #5152 from vmarmol/cadvisor-dep
Rename cAdvisor info API to cadvisorApi
2015-03-06 18:09:28 -08:00
Victor Marmol 43b469bd9f Rename cAdvisor info API to cadvisorApi 2015-03-06 16:06:38 -08:00
Vish Kannan 9e5c79a587 Merge pull request #5151 from vmarmol/cadvisor-dep
Update cAdvisor godep
2015-03-06 15:56:48 -08:00
Victor Marmol a35f4374c5 Update cAdvisor ContainerInfo references to v1 API.
The cAdvisor data structures were versioned recently. We use the v1
versions so this commit makes that explicit.
2015-03-06 15:42:06 -08:00
Eric Tune c12303eaa3 Merge pull request #4749 from derekwaynecarr/make_quota_more_efficient
Make admission control plug-ins work from indexes
2015-03-06 14:11:12 -08:00