Commit Graph

2449 Commits (eeb712d1638d22d810a7562a436eeb14deb41588)

Author SHA1 Message Date
Tim Hockin e045c6ce2f Split portals into host and container
After this DNS is resolvable from the host, if the DNS server is targetted
explicitly.  This does NOT add the cluster DNS to the host's resolv.conf.  That
is a larger problem, with distro-specific tie-ins and circular deps.
2014-12-29 09:18:12 -08:00
Tim Hockin 652479a3b1 Add kubelet DNS flags & api disable for DNS
This adds --cluster_dns and --cluster_domain flags to kubelet.  If
non-empty, kubelet will set docker --dns and --dns-search flags based on
these.  It uses the cluster DNS and appends the hosts's DNS servers.
Likewise for DNS search domains.

This also adds API support to bypass cluster DNS entirely, needed to
bootstrap DNS.
2014-12-29 09:18:12 -08:00
Tim Hockin 6624b64f44 Merge pull request #3142 from vishh/oom_score
Set oom_score_adj for kubelet and kube-proxy to a low value
2014-12-23 17:24:30 -08:00
Vishnu Kannan 6f53f33fda Set oom_score_adj for kubelet and kube-proxy to a low value to help them survive system memory pressure. 2014-12-24 00:34:28 +00:00
Tim Hockin 1c9ac79e78 Merge pull request #3141 from lavalamp/optimize
Fix e2e; add template function to make this possible
2014-12-23 15:03:33 -08:00
Daniel Smith 7f46d420dd add existence func and unit test 2014-12-23 14:05:26 -08:00
Tim Hockin fb0a7a9693 Add apiserver proxy support for pods.
This is useful for testing mostly.
2014-12-23 12:51:24 -08:00
Daniel Smith 16c624b2e6 improve error reporting for bad templates 2014-12-23 11:21:38 -08:00
Brendan Burns 1d58958db8 Fix the build. 2014-12-23 10:28:26 -08:00
Brendan Burns c7d3b12d43 Merge pull request #2051 from anguslees/openstack-provider
Openstack provider
2014-12-23 09:33:19 -08:00
Daniel Smith 05a0c5ca17 Merge pull request #3097 from brendandburns/img
Add support for garbage collecting images.
2014-12-22 17:08:41 -08:00
Brendan Burns b8781c04bb Add support for garbage collecting images. 2014-12-22 16:56:58 -08:00
Daniel Smith bf67e14e9f Merge pull request #3096 from brendandburns/update
Clear node status before the validation check.
2014-12-22 16:39:02 -08:00
Daniel Smith 65cf5f29b7 Merge pull request #3095 from derekwaynecarr/events_not_namespace
Namespace scope events in storage
2014-12-22 16:01:38 -08:00
Daniel Smith 6916235513 Make locking simpler
add test for node existence cache behavior
2014-12-22 15:11:28 -08:00
Daniel Smith dc5383dcf8 add ttl as param to ip cache 2014-12-22 14:14:03 -08:00
Daniel Smith 545d87d554 Move clock to util 2014-12-22 14:14:03 -08:00
Daniel Smith 5b8e91595a Make pod listing costant-time
* move ip cache out of registry/pod
* combine, rationalize, and move pod status logic
* Fix unit and integration tests
2014-12-22 14:14:03 -08:00
Brendan Burns 9884142061 Clear node status before the validation check. 2014-12-22 11:57:31 -08:00
Clayton Coleman 203246b7e0 Allow the api-version on the command to override the client builder 2014-12-22 14:52:03 -05:00
Clayton Coleman 158f322301 Use preferred resource version 2014-12-22 14:46:31 -05:00
Clayton Coleman 8bef68d475 RESTMapper should take into account multiple versions
When a CLI command `kubectl get rc --api-version=v1beta3` is called,
the API resource name should match v1beta3, not whatever the default
RESTMapper version is.  This allows the correct resource name to be
returned ("replicationcontrollers", instead of "replicationControllers").
2014-12-22 14:46:31 -05:00
Daniel Smith 4ab8f238ce Fix proxy bug where it is confused by gzip encoding 2014-12-22 11:35:47 -08:00
derekwaynecarr b47cde2465 Namespace scope events in storage 2014-12-22 13:01:20 -05:00
derekwaynecarr 652b7aa665 Rename namespaceAsPath 2014-12-22 12:24:21 -05:00
Daniel Smith 36cfc02c6c Merge pull request #3066 from derekwaynecarr/client_update
Do not use namespace in url paths pre v1beta3 from client
2014-12-19 18:02:55 -08:00
Dawn Chen bbaff08991 Fixed #2632 2014-12-19 17:23:47 -08:00
Brendan Burns ba25ae49d7 Merge pull request #3070 from nikhiljindal/setApiVersion
Adding skeleton swagger UI
2014-12-19 17:16:04 -08:00
Daniel Smith 9fee1b0503 Merge pull request #3051 from brendandburns/flake
Add a PodUnknown phase and make ListPods return even when there are errors
2014-12-19 16:45:44 -08:00
nikhiljindal bf96e95899 ran gofmt 2014-12-19 16:16:54 -08:00
Brendan Burns 5e8490d5fe Add a PodUnknown phase and make ListPods return even when there are errors
obtaining info for some pods.
2014-12-19 15:08:48 -08:00
nikhiljindal f12f5ed34b 1. Adding swagger-ui/dist files.
2. Updating datafile.go to include it.
3. Updating master,go to use it.
2014-12-19 14:56:20 -08:00
bgrant0607 486e92963b Merge pull request #3043 from brendandburns/api
Add Host to PodSpec and add a predicate to make the scheduler work.
2014-12-19 13:35:05 -08:00
derekwaynecarr abb6632d75 Do not use namespace in url paths pre v1beta3 from client 2014-12-19 16:32:42 -05:00
Daniel Smith be9f3be709 better logging 2014-12-19 12:28:51 -08:00
Brendan Burns 5807b3d6bc Merge pull request #3031 from foleymic/master
Sticky Session Implementation
2014-12-19 10:12:08 -08:00
Brendan Burns 5c14fc610b Merge pull request #3045 from nikhiljindal/setApiVersion
Setting apiVersion in restful.WebService
2014-12-19 10:11:15 -08:00
Brendan Burns 96eede60dc Merge pull request #3047 from lavalamp/optimize
Remove an unneeded trip over the network when getting/listing pods.
2014-12-19 10:10:50 -08:00
Brendan Burns bcf87843df Merge pull request #3048 from saad-ali/3002
Fix Issue #3002: kubectl get pods/log podname don't work well together
2014-12-19 10:03:17 -08:00
Brendan Burns 2e17193161 Add Host to PodSpec and add a predicate to make the scheduler work. 2014-12-18 20:12:29 -08:00
saadali 0db4b8e2ad Fix Issue #3002: kubectl get pods/log podname don't work well together 2014-12-18 18:15:47 -08:00
Daniel Smith 5bd560de51 Merge pull request #2969 from liggitt/policy_groups
Initial addition of groups to user info and policy
2014-12-18 18:06:59 -08:00
Daniel Smith a63bd1bdfa Remove an unneeded trip over the network when getting/listing pods. 2014-12-18 17:47:59 -08:00
Dawn Chen f073ecf4cc Understand OOMKilled reason 2014-12-18 15:59:44 -08:00
Mike Foley c4e94efe16 Sticky Session Implementation
- Added process to cleanup stale session affinity records
- Automatically set cloud provided load balancer for sticky session if the service requires it - Note, this only works on GCE right now.
- Changed sessionAffinityMap a map to pointers instead of structs to improve performance
- Commented out cookie and protocol from sessionAffinityDetail to avoid confusion as it is not yet implemented.
2014-12-18 18:46:10 -05:00
nikhiljindal cfee8f1355 done 2014-12-18 15:38:09 -08:00
Vish Kannan c34f2d354c Merge pull request #3035 from dchen1107/master
Update fsouza/go-dockerclient pkg to latest revision and fix some compiling issues.
2014-12-18 14:07:40 -08:00
Dawn Chen 8860851f94 Merge pull request #3039 from brendandburns/e2e
Remove some dead code.
2014-12-18 14:04:27 -08:00
Dawn Chen 608c3d5046 Update kubelet package on latest go-dockerclient package. 2014-12-18 13:49:13 -08:00
Daniel Smith a50f8034c8 Merge pull request #3037 from smarterclayton/hide_spurious_watch_errors
When connections are broken on Watch, write fewer errors to logs
2014-12-18 13:33:03 -08:00
Brendan Burns 845fb5013d Remove some dead code. 2014-12-18 13:32:20 -08:00
Daniel Smith 3ade280f89 Merge pull request #2813 from derekwaynecarr/ns_url
Move namespace from query param to path part
2014-12-18 13:31:45 -08:00
Clayton Coleman b2434de777 When connections are broken on Watch, write fewer errors to logs
Watch depends on long running connections, which intervening proxies
may break without the control of the remote server. Specific errors
handled are io.EOF, io.EOF wrapped by *url.Error, http connection
reset errors (caused by race conditions in golang http code), and
connection reset by peer (simply tolerated).
2014-12-18 16:15:51 -05:00
Jordan Liggitt 9d8d313113 Initial addition of groups to user/policy 2014-12-18 15:33:45 -05:00
derekwaynecarr cbbe61d115 Fix path ordering in client 2014-12-18 15:27:27 -05:00
Daniel Smith af571a239e Merge pull request #3011 from saad-ali/2948
Issue 2948: fix "kubectl get events" result not sorted
2014-12-18 11:18:27 -08:00
saadali ae1db31a0f Issue 2948: fix "kubectl get events" result not sorted 2014-12-18 11:02:12 -08:00
Brendan Burns 82d0d68571 Merge pull request #3027 from jdef/rest_no_network_settings
only log about no network settings for running pods
2014-12-18 10:19:20 -08:00
Brendan Burns 36bc3604b9 Merge pull request #2893 from brendandburns/pd3
Make it easier to update nodes, make it possible to update capacity.
2014-12-18 10:18:54 -08:00
bgrant0607 0892fd3d6d Merge pull request #3029 from ddysher/get-err-code
Fix node Get() error code
2014-12-18 09:52:45 -08:00
bgrant0607 19f0b8b807 Merge pull request #2825 from mikedanese/scheduler-factory-plugins
Scheduler plugin configuration
2014-12-18 07:12:01 -08:00
Deyuan Deng 677f68ec02 Fix node Get() error code 2014-12-18 23:03:52 +08:00
James DeFelice b3c7aa8a53 only log about no network settings for running pods 2014-12-18 08:41:56 -05:00
Rajdeep Dua 05f0a9846b Added test cases for NewKubeletClient with TLS enabled 2014-12-18 00:57:33 -08:00
Brendan Burns b58785b27d Merge pull request #3019 from dchen1107/cleanup
suppress unnecessary stacktrace when http status code is redirect relate...
2014-12-17 22:08:43 -08:00
Brendan Burns 4427672cde Merge pull request #2875 from foleymic/master
add SessionAffinity type to ServiceSpec
2014-12-17 21:53:35 -08:00
Brendan Burns cf0b41535f Make it easier to update nodes, make it possible to update capacity. 2014-12-17 21:50:26 -08:00
Dawn Chen 71fc5940f1 suppress unnecessary stacktrace when http status code is redirect related. 2014-12-17 18:42:11 -08:00
Daniel Smith 8379966ac5 Merge pull request #3015 from brendandburns/fix
Remove HTTP Server support for pushing pods onto the kubelet.
2014-12-17 17:30:14 -08:00
Brendan Burns 928f52056e Remove HTTP Server support for pushing pods onto the kubelet. 2014-12-17 17:15:36 -08:00
Clayton Coleman 7fde4583f2 v1beta1 should return Minion as kind, rather than Node
This changes the internal name logic (for conversion) to prefer the
internal registered preferred name for a resource, and then makes
v1beta1 and v1beta2 prefer Minion.

Fixes #3010
2014-12-17 19:55:56 -05:00
Dawn Chen edfae8660e Merge pull request #2994 from brendandburns/exec
Track the sources that the kubelet has seen
2014-12-17 16:17:48 -08:00
Mike Danese 4850bdbe63 refactor scheduler factory to use plugin architecture style like credentialprovider and cloudprovider for configuring priority functions and fit predicates 2014-12-17 14:55:28 -08:00
bgrant0607 3f22854e77 Merge pull request #2999 from dchen1107/podstatus
Determine PodStatus based on ContainerStatus and RestartPolicy
2014-12-17 13:51:41 -08:00
Brendan Burns 7da0378f3c Track the sources that the kubelet has seen, and only delete pods
when every source has been seen at least once.
2014-12-17 13:08:43 -08:00
Mike Foley 569ce87f0e Updated types API to include session affinity. …
- changed CLIENT-IP and NONE to be ClientIP and None respectively
 - updated conversions to support translating between api versions.
 - updated validations to validate session affinity type if specified.
2014-12-17 15:59:20 -05:00
Dawn Chen deafd90280 PodStatus 2014-12-17 11:39:09 -08:00
Salvatore Dario MINONNE 61ac2f7437 kubectl delete command: adding labelSelector
Add a Visitor pattern on top of ResourcesFromArgs

Allows ResourcesFromArgs to return an opaque list of items and have client
commands react to them.

Change request.go to return apiserver errors for arbitrary status codes to
better respond to generic actions that don't make sense (kubectl delete operations foo)
2014-12-17 18:15:03 +00:00
Joe Beda 93ed9173e3 Merge pull request #2781 from commonlisp/master
simplify util.ErrorList by eliminating errorListInternal
2014-12-16 15:43:55 -08:00
Brendan Burns bb28949291 Merge pull request #2831 from jdef/unit_test_for_2815
unit test for #2815, as requested by @brendandburns
2014-12-16 15:08:41 -08:00
Brendan Burns 3a0d16ff35 Add an e2e test for exec liveness probes. Fix the docker exec integration. 2014-12-16 13:53:32 -08:00
derekwaynecarr 6694a45542 Add doc for {namespace} path param, fixup and verify proxy paths 2014-12-16 15:55:48 -05:00
derekwaynecarr 14dd466e83 Added namespace test case for POST to /pods 2014-12-16 15:55:48 -05:00
derekwaynecarr 7cf664439f Move namespace from query param to path part 2014-12-16 15:55:47 -05:00
Clayton Coleman eb0f32bf0f Merge pull request #2911 from smarterclayton/event_field_should_be_condition
Rename Event.Status to Event.Condition to match v1beta3 agreement
2014-12-16 14:28:18 -05:00
Joe Beda 52e165a4fd Merge pull request #2954 from brendandburns/rev7
Release v0.7.0
2014-12-16 09:25:26 -08:00
Clayton Coleman 4760b287f9 Merge pull request #2956 from ddysher/fix-magic-number
Use constant for port number
2014-12-16 09:44:15 -05:00
Clayton Coleman 88715cc6ef Rename Event.Status to Event.Condition to match v1beta3 agreement
Question - should this be a phase?  Seems like no, since phase implies
defined lifecycle and this field is explicitly not defined.
2014-12-16 09:43:10 -05:00
Clayton Coleman 61e8baeef9 Merge pull request #2662 from ddysher/node-watch
Enable watch on node labels.
2014-12-16 09:17:43 -05:00
Deyuan Deng 3f84924095 Use constant for port number 2014-12-16 11:45:27 +08:00
Daniel Smith 6902f6ab21 Merge pull request #2844 from brendandburns/fix
Handle a missing apiserver flag better.
2014-12-15 17:25:09 -08:00
Brendan Burns feb80f0c52 Kubernetes version v0.7.0-dev 2014-12-15 16:57:39 -08:00
Brendan Burns ad44234f71 Kubernetes version v0.7.0 2014-12-15 16:57:39 -08:00
bgrant0607 f621a05d74 Merge pull request #2945 from smarterclayton/support_optional_swagger
Make Swagger API support optional, so that consumers can define their own
2014-12-15 16:13:13 -08:00
Deyuan Deng 45bfcb451b Enable watch on node changes. 2014-12-16 08:12:31 +08:00
bgrant0607 9bc8915eeb Merge pull request #2912 from smarterclayton/small_v1beta3_refactors_2
More small refactors for v1beta3 -> internal
2014-12-15 15:16:36 -08:00
Brendan Burns 1a5a7ebd69 Handle a missing apiserver flag better. 2014-12-15 15:14:41 -08:00
Brendan Burns 2c64db5943 Merge pull request #2938 from vishh/exec
Updated docker version that supports exec to '1.3.0'.
2014-12-15 14:49:12 -08:00
Clayton Coleman d9ad8cfac0 Conversions missing from v1beta1
They were in v1beta2, not sure how they got removed.
2014-12-15 16:50:05 -05:00
Clayton Coleman dadb8431c4 Remove internal PodState in favor of internal PodStatus object 2014-12-15 16:50:05 -05:00
Clayton Coleman 787b5c488a Add PodIP and Image to v1beta3
Fixes #2900
2014-12-15 16:50:05 -05:00
Clayton Coleman 1f442d4429 Remove LivenessProbe.Type in v1beta3 2014-12-15 16:50:05 -05:00
bgrant0607 9b40c52c24 Merge pull request #2910 from smarterclayton/small_v1beta3_refactors
Fix internal -> v1beta3 round trip issues
2014-12-15 13:21:12 -08:00
Daniel Smith f1f20f820a Merge pull request #2942 from brendandburns/kubelet
revert the revert along with fixes to make it pass e2e tests.
2014-12-15 13:17:52 -08:00
Daniel Smith a2638da2a7 Merge pull request #2899 from derekwaynecarr/update_generic_etcd
Update generic etcd to enable namespace scoped resources
2014-12-15 13:10:51 -08:00
Vishnu Kannan f4ef05bc20 Updated docker version that supports exec to '1.3.0'. 2014-12-15 20:44:58 +00:00
Clayton Coleman cd4135666e Make Swagger API support optional, so that consumers can define their own
OpenShift would like to also enable swagger, but we need to register our
services as swagger services prior to the SwaggerAPI being started. I've
added a bool (default false) to master.Config to enable swagger, and split
the method in master out so that a downstream consumer can call it.
2014-12-15 15:29:55 -05:00
Brendan Burns bf1a695be5 Merge pull request #2882 from bgrant0607/bugfix1
Count only non-dead pods in replicationController current state replicas count
2014-12-15 11:50:12 -08:00
Brendan Burns 2d1b279311 Merge pull request #2905 from smarterclayton/misc_cleanup
Small fixes to prepare for v1beta3
2014-12-15 11:49:29 -08:00
Brendan Burns af4fb611cf Merge pull request #2913 from smarterclayton/side_by_side_diff
Add a side-by-side diff option for verbose output
2014-12-15 11:48:08 -08:00
Brendan Burns d345dda1e5 Fix the kubelet uses api encode/decode by actually adding PodContainerInfo to v1beta1 2014-12-15 11:38:55 -08:00
Joe Beda 26e5c1d0eb Merge pull request #2928 from rajdeepd/master
Added test cases for Event Create and Event List
2014-12-15 11:11:37 -08:00
Brendan Burns a6f967b6e7 Revert "Revert "Add an api object for the kubelet, and a versioned endpoint.""
This reverts commit dcfcf315e5.
2014-12-15 09:29:04 -08:00
derekwaynecarr 92e2c2b302 Updated default function names, keyroot to keyrootfunc 2014-12-15 10:42:13 -05:00
derekwaynecarr 6353612f40 Update generic etcd to enable namespace scoped resources 2014-12-15 10:42:13 -05:00
jhadvig 019ca75fc6 Streaming container logs 2014-12-15 12:12:11 +01:00
Rajdeep Dua a6fd5601c2 Added test cases for
* Event Create
* Event List
2014-12-14 21:41:34 -08:00
Brendan Burns dcfcf315e5 Revert "Add an api object for the kubelet, and a versioned endpoint."
This reverts commit d4b9979382.
2014-12-12 21:13:44 -08:00
James DeFelice 3afc9fffba fixed minor formatting 2014-12-12 20:43:07 -05:00
Clayton Coleman 1edff23935 Merge pull request #2916 from lavalamp/fix3
Fix taking addr() of map value/key
2014-12-12 20:12:25 -05:00
Daniel Smith 3868417ec5 Merge pull request #2917 from dchen1107/cleanup
Make httplog more useful by using glog.*Depth.
2014-12-12 16:44:10 -08:00
Dawn Chen 83453baeb3 Make httplog more useful by using glog.*Depth.
Close #2100
2014-12-12 16:08:48 -08:00
Daniel Smith 9c0fbf1f02 Merge pull request #2908 from brendandburns/kubelet
Add an api object for the kubelet, and a versioned endpoint.
2014-12-12 16:01:46 -08:00
Brendan Burns d4b9979382 Add an api object for the kubelet, and a versioned endpoint. 2014-12-12 15:26:28 -08:00
Daniel Smith f3148e9965 Fix taking addr() of map value/key 2014-12-12 15:26:17 -08:00
Clayton Coleman b1b255f90a Prevent infinite loop in apiserver errorJSON 2014-12-12 18:23:17 -05:00
Clayton Coleman a636e44e3d Add a side-by-side diff option for verbose output
Make regular diff better by eliding pointer values
2014-12-12 18:14:46 -05:00
Clayton Coleman d6d87e1e3b Status should be a ListMeta, not ObjectMeta internally 2014-12-12 18:08:41 -05:00
Clayton Coleman eb906f2993 PodStatus Message needs to be round-trippable 2014-12-12 18:08:41 -05:00
Clayton Coleman 904d0d46c3 Rename ServerOp to Operation in v1beta3 and internal
Add the appropriate rename logic internally.
2014-12-12 18:08:41 -05:00
Brian Grant 9b539262a8 Count only non-dead pods in replicationController current state replicas count. 2014-12-12 22:23:14 +00:00
George Kuan 5e1fc1f4e0 Fixes #1605: make ErrorList introspectable by replacing ErrorList and
ErrorList#ToError with []error and util.SliceToError() respectively
2014-12-12 10:56:31 -08:00
Brendan Burns 771c538932 Merge pull request #2864 from deads2k/deads-tighten-validation-on-bad-gets
tighten validation for client resource gets
2014-12-12 10:34:53 -08:00
Brendan Burns ad4185ef3a Merge pull request #2891 from rajdeepd/master
Added test case for events Create
2014-12-12 10:25:23 -08:00
bgrant0607 21a1bf24fa Merge pull request #2892 from erictune/delete_whoami
Remove whoami handler.
2014-12-12 09:51:27 -08:00
Tim Hockin 129074671c Merge pull request #2886 from brendandburns/pd2
Fix GCE-PD so that it works even if the PD is attached.
2014-12-12 08:54:22 -08:00
bgrant0607 ef76981e78 Merge pull request #2871 from zulily/kubectl-log-default-container
Modifies kubectl log cmd to not require container arg for single-contain...
2014-12-12 08:25:39 -08:00
Eric Tune 029a9b6400 Remove whoami handler.
This was a temporary thing.  Not aware of anyone using it.
2014-12-11 21:31:06 -08:00
Rajdeep Dua b5c3e2d619 Added test case for events Create 2014-12-11 20:46:35 -08:00
Dylan Carney ba5c18816e Updates kubectl log cmd per PR feedback 2014-12-11 17:44:44 -08:00
Clayton Coleman c5ba95ee26 Add Type() method on flags for compat with pflag library
Allows our flag objects to be used with both golang flags and pflags
2014-12-11 20:10:54 -05:00
Brendan Burns 3da84e1844 Fix GCE-PD so that it works even if the PD is already attached. 2014-12-11 16:41:01 -08:00
Vojtech Vitek (V-Teq) 87263b4380 Remove duplicated assignment from API conversion 2014-12-12 01:37:15 +01:00
Brendan Burns 1dcb025559 Handle PD already being attached to the machine. 2014-12-11 13:00:26 -08:00
Dylan Carney 3f88f27d7b Modifies kubectl log cmd to not require container arg for single-container pods (for #2847) 2014-12-11 12:32:18 -08:00
bgrant0607 ecbb6c45d0 Merge pull request #2315 from ddysher/node-status
Add node status to API object.
2014-12-11 10:19:17 -08:00
bgrant0607 222c819800 Merge pull request #2855 from brendandburns/validatez
Turn on node level validation, and make the validation set dynamic.
2014-12-11 09:56:47 -08:00
bgrant0607 2232a29af7 Merge pull request #2833 from liggitt/util_time
Use util.Time consistently in types.go
2014-12-11 09:17:50 -08:00
bgrant0607 473376b085 Merge pull request #2820 from ravigadde/master
MountPath in VolumeMount is a required field. Removing the omitempty.
2014-12-11 08:55:40 -08:00
deads2k fa900e5d67 require names for gets 2014-12-11 11:21:40 -05:00
Jordan Liggitt 51bfb50698 Use util.Time consistently in types.go 2014-12-11 11:14:25 -05:00
Deyuan Deng 0332c8d4d1 Add node status to API object (all versions). 2014-12-11 08:12:27 -05:00
Brendan Burns 59b5546b28 Turn on node level validation, and make the validation set dynamic. 2014-12-10 22:02:45 -08:00
Brendan Burns bac915a066 Return an error if a user attempts to create an externalized UDP balancer. 2014-12-10 20:08:03 -08:00
Joe Beda 5523e0344a Merge pull request #2814 from satnam6502/list
Do not consider an empty string to be an error in list.go
2014-12-10 16:31:18 -08:00
Dawn Chen 5865ab750e Merge pull request #2808 from simon3z/master
api: add container's id to ContainerStatus
2014-12-10 16:30:08 -08:00
Daniel Smith f81ec248d0 Merge pull request #2786 from smarterclayton/load_opaque_objects
Allow runtime.Object to be encoded as runtime.RawExtension
2014-12-10 16:24:05 -08:00
Joe Beda b7705d25c8 Merge pull request #2827 from liggitt/tlsv1
Bump minimum TLS version from SSLv3 to TLSv1.0
2014-12-10 13:15:29 -08:00
Ravi Gadde 66f21b0b8b MountPath in VolumeMount is a required field. Removing the omitempty for
json/yaml.

Removed omitempty for mountpath
2014-12-10 12:45:31 -08:00
Federico Simoncelli 4af64b8911 api: add container's id to ContainerStatus
Sometimes for external applications it is useful to correlate the pod
containers to the real docker instances.

This patch adds a new entry in the container status (containerID) which
is used to identify the instance.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2014-12-10 20:38:41 +00:00
James DeFelice 85b4b4677e unit test for #2815, as requested by @brendandburns 2014-12-10 15:33:38 -05:00
Dawn Chen 17475cdbe7 Merge pull request #2821 from lavalamp/fix
Allow, when testing, SelfLinks to be unset.
2014-12-10 12:10:51 -08:00
Dawn Chen 5c79668854 Merge pull request #2815 from jdef/inspect_tagged_image
inspect the full repo/image:tag name
2014-12-10 11:53:14 -08:00
Satnam Singh 7582884f30 Do not consider an empty string to be an error in list.go 2014-12-10 11:41:13 -08:00
Daniel Smith 272bfc97ed Merge pull request #2788 from smarterclayton/roundtrip_node_nodelist
Rename Minions -> Nodes internally
2014-12-10 11:12:15 -08:00
bgrant0607 2d57ac7e40 Merge pull request #2822 from mikedanese/kubelet-test-simplify
simplified TestNewKubeletClient in kubelet_test
2014-12-10 10:49:14 -08:00
bgrant0607 703cf28b65 Merge pull request #2823 from mikedanese/master
explicitly declare gce_cloud package name
2014-12-10 10:48:11 -08:00
Clayton Coleman 6ab6c90ce5 Merge pull request #2665 from ddysher/fix-watch-filter
Move watch filter into storage level
2014-12-10 12:31:55 -05:00
Clayton Coleman 0d887ae7b3 Change podStatus from Nodes.List() -> Nodes.Get(name)
Retrieves a lot less data
2014-12-10 12:08:19 -05:00
Clayton Coleman d1d7505272 Rename client Minions->Nodes, select the correct path for v1beta3
Replaces the client public interface but leaves old references to "minions"
for a later refactor.  Selects the path "nodes" for v1beta3 and "minions"
for older versions.
2014-12-10 12:08:19 -05:00
Clayton Coleman 9030759df8 Add 'nodes' everywhere 'minions' can be used in api / cli 2014-12-10 12:08:18 -05:00
Clayton Coleman 19379b5a38 Internal rename api.Minion -> api.Node 2014-12-10 12:08:18 -05:00
Clayton Coleman 650aead4c4 Support Node/NodeList as a valid name in all versions
Also refactor v1beta1/conversion_test.go `v1beta` -> `current` to allow
easier cut and paste of tests.
2014-12-10 11:53:38 -05:00
Clayton Coleman 5447e74129 Node/Nodelist 2014-12-10 11:48:41 -05:00
Clayton Coleman 279df03377 Allow mismatched type names on all conversions
Allows v1beta3.Node to be converted to api.Minion
2014-12-10 11:48:41 -05:00
Jordan Liggitt 2475123d3c Bump minimum TLS version from SSLv3 to TLSv1.0 2014-12-10 09:13:15 -05:00
Mike Danese 553239d6ee explicitly declare gce_cloud package name 2014-12-09 18:48:39 -08:00
Mike Danese 50a6068b5d simplified TestNewKubeletClient in kubelet_test 2014-12-09 18:27:55 -08:00
Daniel Smith e46bfcf699 Allow, when testing, SelfLinks to be unset. Kubelet now makes events in tests. 2014-12-09 17:53:42 -08:00
Saad Ali 9a1fea6927 Merge pull request #2817 from lavalamp/fix
Compare containers by name, not by pointer equality.
2014-12-09 17:33:56 -08:00
Daniel Smith ba62943b8e Compare containers by name, not by pointer equality. 2014-12-09 17:06:39 -08:00
Brendan Burns 953fa540ee Merge pull request #2505 from abhgupta/abhgupta-dev
Scheduler changes for extensibility
2014-12-09 15:25:37 -08:00
Brendan Burns 4985f58eb5 Merge pull request #2759 from mikedanese/configure-cadvisor-port
make cadvisor port configurable on the kubelet
2014-12-09 15:21:35 -08:00
Brendan Burns e8280364fc Merge pull request #2787 from rajdeepd/master
Added two test cases for KubeletClient
2014-12-09 15:19:01 -08:00
bgrant0607 4a9afe61da Merge pull request #2621 from brendandburns/kubecfg
Add validation back in
2014-12-09 15:10:51 -08:00
Daniel Smith 4e7808089e Merge pull request #2765 from lavalamp/conv
conversion refactoring
2014-12-09 13:57:57 -08:00
James DeFelice ca2840a8e8 inspect the full repo/image:tag name 2014-12-09 15:41:08 -05:00
Brendan Burns 18cfac0d31 Make validation optional, handle YAML 2014-12-09 12:37:49 -08:00
Brendan Burns c29f5db81c Revert "Revert "Add optional validation to kubecfg/kubectl.""
This reverts commit 6590c66dd4.
2014-12-09 12:37:48 -08:00
Clayton Coleman 2c27f7d332 Allow an empty service 2014-12-09 12:48:53 -05:00
Clayton Coleman 8a833ca701 Add a List type that can contain arbitrary objects
Supports objects that the core schema may not recognize and
preserves them unmodified as runtime.Unknown
2014-12-09 10:31:17 -05:00
Clayton Coleman db2c59ff61 Allow conversion between []runtime.Object and []runtime.RawExtension
This allows generic lists with unrecognized objects to be roundtripped
between internal and external objects.
2014-12-09 10:31:17 -05:00
Clayton Coleman 1eaa5c41f9 RawExtension was not properly marshalled
MarshalJSON can't use a pointer to a struct for RawExtension:

http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go
2014-12-09 10:31:14 -05:00
Daniel Smith 3c1d51b19d refactor to hide structs behind an interface 2014-12-08 17:12:40 -08:00
Daniel Smith 564c087062 produce more readable error messages 2014-12-08 17:12:38 -08:00
Daniel Smith 77521a33d3 Add stack of previous values to converter 2014-12-08 17:12:07 -08:00
Daniel Smith 7f2d0c0f71 Merge pull request #2779 from thockin/qualname
Add util to validate namespaced names
2014-12-08 17:08:47 -08:00
Brendan Burns 33b3c1b8ce Fix e2e. 2014-12-08 16:55:56 -08:00
Tim Hockin 5ecce5d60c Add util to validate namespaced names 2014-12-08 15:31:43 -08:00
Abhishek Gupta d17cebcd2a Implementing PR feedback and adding test cases 2014-12-08 14:47:05 -08:00
Abhishek Gupta 5fa1dbc07b Implementing PR feedback
- Making ConfigFactory struct public
 - Added comments for predicate/priority functions and new methods
2014-12-08 14:47:05 -08:00
Abhishek Gupta 13831856c9 Combining scheduler priority functions using weighted averages 2014-12-08 14:47:05 -08:00
Abhishek Gupta 7f374030c1 Fixing gofmt errors 2014-12-08 14:47:05 -08:00
Abhishek Gupta 1eb28b0aa3 Scheduler changes to allow multiple priority functions 2014-12-08 14:47:05 -08:00
Abhishek Gupta 6b712cc700 Scheduler changes for extensibility 2014-12-08 14:47:05 -08:00
Daniel Smith 4845e524af Merge pull request #2667 from thockin/klet-dirs
Kubelet directory-name builder funcs
2014-12-08 13:23:04 -08:00
bgrant0607 9ee00ba240 Merge pull request #2777 from ddysher/node-ip
Query hostIP for Nodes
2014-12-08 11:05:27 -08:00
bgrant0607 0c2be7e9ae Merge pull request #2559 from meirf/add-whitespace-flexibility-to-multivalued-requirement-parser
Make multivalued requirement parser more whitespace tolerant
2014-12-08 11:01:13 -08:00
Rajdeep Dua 00149c88f2 Added two test cases for KubeletClient 2014-12-07 21:46:14 -08:00
Clayton Coleman 714dbf4522 Shrink runtime.TypeMeta to be equivalent to api TypeMeta
Remove unused fuzzing
2014-12-07 20:49:07 -05:00
Clayton Coleman dd24b013cb Use if err := ; err != nil instead of two lines 2014-12-07 20:48:16 -05:00
Clayton Coleman 84d84c50c2 Add a strongly typed error for unrecognized kind/type/version 2014-12-07 20:48:16 -05:00
Tim Hockin acc6b95c21 Add functions to get kubelet directories.
Gets rid of some magic constants and makes volume plugins (coming later)
cleaner.
2014-12-06 11:00:19 -08:00
Mike Danese 722abf1a95 - make cadvisor port configurable on the kubelet.
- added cadvisor port documentation.
2014-12-06 09:48:08 -08:00
Deyuan Deng 2ecea9ce7b Query hostIP for instances 2014-12-05 23:26:33 -05:00
derekwaynecarr ef25520baa make selfLink namespace aware 2014-12-05 17:37:11 -05:00
Brendan Burns b811eb8303 Merge pull request #2760 from liggitt/bindata_bump
Add script to build ui assets, rebuild with latest go-bindata
2014-12-05 14:09:10 -08:00
bgrant0607 b824eb0350 Merge pull request #2771 from rlarocque2/print_synccloud_errors
Print SyncCloud errors
2014-12-05 13:46:10 -08:00
bgrant0607 f95503dc2d Merge pull request #2767 from ironcladlou/watch-error-handling
Log ErrUnexpectedEOF from watches as warnings
2014-12-05 13:43:26 -08:00
Dawn Chen 73ebc9e714 Merge pull request #2769 from jdef/docker_noname
avoid panics when docker CT has no name
2014-12-05 13:39:59 -08:00
bgrant0607 cf7f3de767 Merge pull request #2762 from rajdeepd/master
Added a New test case for GetMinion
2014-12-05 13:24:24 -08:00
James DeFelice 76ef747927 avoid panics when docker CT has no name 2014-12-05 15:48:25 -05:00
Dan Mace 0ad8342a55 Log ErrUnexpectedEOF from watches as warnings
Watches are often established via long-running HTTP GET requests which
will inevitably time out during the normal course of operations. When
the watches time out, an io.EOF or an io.ErrUnexpectedEOF will bubble
up to client components such as StreamWatcher and Reflector. Treat EOF
as a clean watch termination. Treat ErrUnexpectedEOF as a less-clean
but non-fatal watch termination and log the event at the warning level.

This greatly reduces the amount of log noise generated during what is
ultimately normal operation, and adds the flexibility for the operator
to make a distinction between the EOF conditions if so desired (by
adjusting the logging level).
2014-12-05 15:03:07 -05:00
Richard Larocque 51efd38e75 Print SyncCloud errors
This small change would have saved me a lot of time while investigating
issue #2746.
2014-12-05 11:50:21 -08:00
Rajdeep Dua 2791a92f2c Added a New test case for GetMinion 2014-12-05 01:49:43 -08:00
Jordan Liggitt 4ab41f5be8 Add script to build ui assets, rebuild with latest go-bindata 2014-12-04 22:38:00 -08:00
Deyuan Deng 76552423f9 Move watch filter into storage level 2014-12-04 20:15:27 -05:00
Jordan Liggitt 22eee15fe7 Remove uint64 bitshift workaround 2014-12-04 15:00:23 -08:00
Daniel Smith b765d6038a Merge pull request #2747 from erictune/cleanup6
Rename util.config.Watcher -> util.config.Broadcaster.
2014-12-04 11:12:04 -08:00
Daniel Smith df98babf6e Merge pull request #2748 from erictune/clean7
Rename watch.Mux -> watch.Broadcaster
2014-12-04 11:09:43 -08:00
bgrant0607 623964456e Merge pull request #2743 from mikedanese/etcd-kubernetes-bug
fixed bug in tools.NewEtcdClientStartServerIfNecessary
2014-12-04 09:06:27 -08:00
bgrant0607 d67647b078 Merge pull request #2732 from rajdeepd/master
Added test case for ServerAPIVersions
2014-12-04 08:26:29 -08:00
Eric Tune 3f285269cc Rename watch.Mux -> watch.Broadcaster
A few reasons:
- Mux is already widely used in the codebase to refer to a http handler mux.
- Original meaning of Mux was something which sent a chose one of several inputs to
  and output.  This sends one output to all outputs.  Broadcast captures that idea
  better.
- Aligns with similar class config.Broadcaster (see #2747)
2014-12-04 00:30:51 -08:00
Eric Tune 64f1084c1a Rename util.config.Watcher -> util.config.Broadcaster.
Watch is a widely used term in the codebase, which doesn't capture
the key feature of this type: broadcasting a change to several
listeners.
2014-12-04 00:10:27 -08:00
Tim Hockin c31b3f04de Merge pull request #2722 from thockin/iptables
strip quotes in back-compat iptables
2014-12-03 16:10:00 -08:00
Daniel Smith 6cb26e17a4 Merge pull request #2697 from erictune/no_accept_err
Proxy: Avoid log error.  Simplify locking.
2014-12-03 14:06:17 -08:00
Daniel Smith 5466c06b3a Merge pull request #2733 from erictune/handle_error
Handle error from watch.
2014-12-03 14:02:54 -08:00
Mike Danese a98faa1f62 fixed bug in tools.NewEtcdClientStartServerIfNecessary 2014-12-03 12:58:03 -08:00
Eric Tune 909f82f463 Proxy: Avoid log error. Simplify locking.
Don't log an error when Accept failed because the interface (portal)
was just removed.

Don't pass around a pointer to a serviceInfo since another thread
deletes those.  Instead, just check if service name is still in the
service map.

Delete the locking on the serviceInfo object since it is only used
by the "main" proxier thread.
2014-12-03 12:34:54 -08:00
Eric Tune deb101a1fb Handle error from watch.
A watch of the API can return an api.Status rather than the watched
obejct type.  This code didn't handle that.

Tested with services e2e test (in conjunction with other PR).
2014-12-03 12:33:26 -08:00
Daniel Smith 7aaf76af6e Merge pull request #2661 from smarterclayton/allow_loops_to_exit
Add a util.Forever variant that ends on a stop channel
2014-12-03 11:52:59 -08:00
Victor Marmol b1c7893916 Merge pull request #2683 from jimmidyson/cadvisor-0.6.2
Fixes #2681: update to cadvisor 0.6.2
2014-12-04 03:48:40 +08:00
Tim Hockin b1470b6672 strip quotes in back-compat iptables 2014-12-03 08:34:34 -08:00
Clayton Coleman ff173d013a Merge pull request #2682 from mfojtik/cmd_public
Export kubectl/cmd methods
2014-12-03 08:52:04 -06:00
Michal Fojtik 17e24aed47 Export GetKubeNamespace function from kubectl 2014-12-03 13:15:48 +01:00
Daniel Smith 4acc23cbc4 Merge pull request #2734 from erictune/cleanup2
Use plus-v format for some complex structures.
2014-12-02 22:53:52 -08:00
Eric Tune 9964410f77 Use plus-v format for some complex structures. 2014-12-02 22:13:08 -08:00
Rajdeep Dua e47e1ee025 Added test case for ServerAPIVersions 2014-12-02 21:55:44 -08:00
Daniel Smith ffcbe2fa10 Merge pull request #2674 from mattmoor/quiet-credentialprovider
Make credentialprovider less verbose about benign errors.
2014-12-02 18:25:03 -08:00
Sam Ghods 6399854240 Remove unused YAML tags and GetYAML/SetYAML methods
Unneeded after move to ghodss/yaml.
2014-12-02 16:25:28 -08:00
Sam Ghods 9a9a1e0939 Move from go-yaml/yaml to ghodss/yaml 2014-12-02 16:24:05 -08:00
Tim Hockin f4b031d025 Merge pull request #2514 from thockin/label-ns
Add label key namespacing
2014-12-02 13:38:46 -08:00
Eric Tune 860d845d2c Merge pull request #2588 from lavalamp/fix4
Relax search criteria to find both pod & bound pod events
2014-12-02 09:40:32 -08:00
Craig Wickesser 1c02137f48 Update exec health check message logged
Update message logged after performing exec health check per #2708.
2014-12-02 07:15:02 -05:00
Brendan Burns 993ef88eec Merge pull request #2689 from brendandburns/standalone
Refactor kubelet, standalone k8s and integration test to all use the same code.
2014-12-01 21:53:41 -08:00
Daniel Smith 3b2fa9618d Relax search criteria to find both pod & bound pod events 2014-12-01 17:19:42 -08:00
Brendan Burns 85fbcdb981 Kubernetes version v0.6.0-dev 2014-12-01 16:26:48 -08:00
Brendan Burns 20a0d79bf4 Kubernetes version v0.6.0 2014-12-01 16:26:48 -08:00
Brendan Burns d47b510104 Refactor kubelet, standalone k8s and integration test to all use the same code. 2014-12-01 15:37:21 -08:00
Brendan Burns 6b009f06cd Merge pull request #2635 from thockin/public-ip
Enable public IPs even in not createExternal...
2014-12-01 14:56:22 -08:00
Tim Hockin 89875ef09d Loosen DNS 952 for labels 2014-12-01 12:30:43 -08:00
Tim Hockin c857dc1196 Add namespacing for label keys 2014-12-01 12:30:43 -08:00
Tim Hockin d5a6a54391 clean up error message on labels validation errs 2014-12-01 12:30:43 -08:00
Matt Moore 65c246d45a Make credentialprovider less verbose about benign errors.
In particular, a few of the utilities used within the credentialprovider had the pattern:
   glog.Errorf("while blah %s: %v", s, err)
   return nil, err

This change propagates those error message and puts the burden of logging on the caller.

In particular, this allows us to squelch all output during kubelet startup when we are detecting whether certain credentialprovider plugins should even be enabled.

Fixes: https://github.com/GoogleCloudPlatform/kubernetes/issues/2673
2014-12-01 11:54:50 -08:00
Brendan Burns 50cf0c1b23 Merge pull request #2668 from meirf/set-initial-udp-proxy-timeout
Set initial timeout upon UDP proxy connection creation
2014-12-01 10:14:23 -08:00
Brendan Burns b61168835d Merge pull request #2666 from mattmoor/master
add another registry URL
2014-12-01 10:12:31 -08:00
Vojtech Vitek (V-Teq) 28f5d51a5f Add Labels and Annotations to MetadataAccessor 2014-12-01 16:36:24 +01:00
Vojtech Vitek (V-Teq) 508724b1f8 meta_test should not depend on runtime.TypeMeta 2014-12-01 16:36:21 +01:00
Jimmi Dyson 5109ce3356 Fixes #2681: update to cadvisor 0.6.2 2014-12-01 11:38:03 +00:00
Meir Fischer d1c93384e9 Set initial timeout on UDP proxy connection creation 2014-11-29 21:32:45 -05:00
Matt Moore 5c35af5810 add another registry URL 2014-11-29 15:56:25 -08:00
Clayton Coleman 740b824ac2 Add a util.Forever variant that ends on a stop channel 2014-11-28 15:15:52 -05:00
Eric Tune 7eceafa656 Merge pull request #2437 from deads2k/deads-add-utility-to-bind-auth-flags
add utility for binding flags and building api server clients
2014-11-26 15:15:14 -08:00
Tim Hockin 7246727231 Merge pull request #2636 from erictune/service_env_var
Remove format specifiers with no options.
2014-11-27 06:03:55 +08:00
Tim Hockin 9afeaf36ef Fix head 2014-11-26 13:48:50 -08:00
Eric Tune 41f23ffca2 Merge pull request #2638 from thockin/iptables
Fix iptables for old systems
2014-11-26 13:16:45 -08:00
Eric Tune 585afa1bae Merge pull request #2610 from ddysher/node-namespace
Fix node namespace.
2014-11-26 13:02:21 -08:00
Tim Hockin e925deccb0 Fix iptables for old systems
The iptables args list needs to include all fields as they are eventually spit
out by iptables-save.  This is because some systems do not support the
'iptables -C' arg, and so fall back on parsing iptables-save output.  If this
does not match, it will not pass the check.  For example: adding the /32 on
the destination IP arg is not strictly required, but causes this list to not
match the final iptables-save output.  This is fragile and I hope one day we
can stop supporting such old iptables versions.
2014-11-26 12:50:44 -08:00
Eric Tune 54859cf1ea Remove format specifiers with no options. 2014-11-26 12:05:00 -08:00
Tim Hockin 0c03f6e784 Enable public IPs even in not createExternal...
This allows the proxier to portal Public IPs even if the
createExternalLoadBalancer flag is not set.

This also fixes what appears to be a bug in the createExternalLoadBalancer path
wherein multiple PublicIPs would get truncated.
2014-11-26 10:54:28 -08:00
deads2k 2dbfb80349 add utility for binding flags and building api server clients 2014-11-26 07:50:51 -05:00
Angus Lees a00f73c360 Add additional logging to openstack cloud provider
Turned out to be invaluable while debugging issues - I expect it will be
for others too.

Conflicts:
	pkg/cloudprovider/openstack/openstack.go
2014-11-26 16:41:11 +11:00
Angus Lees 5499981ad3 Implement TCPLoadBalancer OpenStack cloud provider
Also add a trivial implementation of Zones() too.

This only supports a single region/zone currently (the region where
kubernetes is running).
2014-11-26 16:40:35 +11:00
Angus Lees f184eebc9b Update openstack provider to gophercloud v1.0 API 2014-11-26 16:08:43 +11:00
Tim Hockin 26ec89c3c0 Merge pull request #2614 from bgrant0607/api
Format JSON by default. Fixes #2243.
2014-11-26 07:58:57 +08:00
Brian Grant e18dcb87c4 Format JSON by default. Fixes #2243. 2014-11-25 23:11:43 +00:00
Joe Beda 6590c66dd4 Revert "Add optional validation to kubecfg/kubectl."
This reverts commit acf6d82800.
2014-11-25 14:45:00 -08:00
Eric Tune f5f5542bb2 Merge pull request #2584 from liggitt/basic_auth
Add password authenticators
2014-11-25 14:21:32 -08:00
Eric Tune 7ca611b1df Merge pull request #2589 from ddysher/show-node-label
Use formatLabel instead of label.Set
2014-11-25 14:08:50 -08:00
Eric Tune 636ffed399 Merge pull request #2515 from thockin/why
Add details on Invalid validation errors
2014-11-25 14:04:27 -08:00
Deyuan Deng c8c7a13ac6 Fix node namespace. 2014-11-25 16:30:55 -05:00
Clayton Coleman a67912f937 Merge pull request #2517 from brendandburns/kubecfg
Add client side validation to kubecfg and kubectl.
2014-11-25 13:46:52 -06:00
Eric Tune ef85243f73 Merge pull request #2570 from derekwaynecarr/endpoints_missing_ns
Endpoint.Namespace is not being set when it has no resolved endpoints
2014-11-25 11:38:51 -08:00
Brendan Burns ded165def5 Merge pull request #2605 from derekwaynecarr/kubectl_log_ns
Log function use namespace
2014-11-25 11:16:27 -08:00
derekwaynecarr f41a44278d Log function use namespace 2014-11-25 13:10:32 -05:00
Joe Beda 12add3bc66 Merge pull request #2579 from brendandburns/e2e
Add an e2e test for gce pd.
2014-11-25 09:08:40 -08:00
Brendan Burns e1764e2e01 Add an e2e test for gce pd.
Add an example for gce pd.
Add an extra log message.
2014-11-25 09:02:00 -08:00
Clayton Coleman c5e9f60f9c Merge pull request #2569 from mfojtik/pluralization_fix
Fix pluralization in RESTMapper when kind ends with 'y'
2014-11-25 09:53:46 -06:00
Michal Fojtik 7235a9b1f0 Fix pluralization in RESTMapper when kind ends with 'y' 2014-11-25 11:33:13 +01:00
Brendan Burns acf6d82800 Add optional validation to kubecfg/kubectl. 2014-11-24 22:25:22 -08:00
Brendan Burns a5bc6301a4 Revert "Using util.Time for ContainerStatus" 2014-11-24 21:32:31 -08:00
Tim Hockin ff8c5f9415 Add a Detail field to Validation Error 2014-11-24 17:28:42 -08:00
Tim Hockin b08e5b24b0 Change ValidationError to a pointer
In Prep for adding at leats one more field, make this operate more list
StatusError.
2014-11-24 17:28:42 -08:00
Tim Hockin d4c37e352e small cleanup on pkg/config 2014-11-24 17:28:41 -08:00
Deyuan Deng ec7d544194 Use formatLabel instead of label.Set 2014-11-24 18:45:29 -05:00
Daniel Smith 610ab9a0db Merge pull request #2586 from dchen1107/cleanup
Using util.Time for ContainerStatus
2014-11-24 15:35:07 -08:00
Dawn Chen acb0f1198b Using util.Time for ContainerStatus 2014-11-24 15:15:33 -08:00
Jordan Liggitt 3532be3c82 Add basicauth and password authenticators 2014-11-24 17:52:10 -05:00
Daniel Smith 668a81e894 Merge pull request #2539 from lavalamp/master
Reduce boilerplate
2014-11-24 13:45:04 -08:00
Brendan Burns e82b88fed8 Merge pull request #2560 from ddysher/fix-git-volume
gitrepo validation
2014-11-24 13:12:04 -08:00
Daniel Smith 8d762c996a Remove boilerplate coversion functions 2014-11-24 12:57:34 -08:00
Daniel Smith f1c21c8fdf add boilerplate reduction struct field copier 2014-11-24 12:57:34 -08:00
derekwaynecarr 039af4a569 Endpoint.Namespace is not being set when it has no resolved pods 2014-11-24 14:15:22 -05:00
bgrant0607 e52579b8e1 Merge pull request #2535 from erictune/move_env
Move service environment vars code.
2014-11-24 09:47:32 -08:00
bgrant0607 c0fb54b8ca Merge pull request #2540 from mikedanese/kubectl-example-fix
Fixed kubectl example
2014-11-24 09:30:33 -08:00
Eric Tune c5e3eb1e3d Merge pull request #2547 from ddysher/show-node-label
Display node label
2014-11-24 09:26:14 -08:00
Eric Tune 517bb074c2 Merge pull request #2551 from meirf/set-error-to-set-deadline-call
reset err value to SetDeadline return
2014-11-24 09:21:21 -08:00
Brendan Burns 4b2a5cdb11 Merge pull request #2520 from mikedanese/proxy-healthz
add health check to kube-proxy
2014-11-24 08:44:33 -08:00
Brendan Burns 428cbcd799 Merge pull request #2531 from jbeda/32bit-fix
Fix 32bit build
2014-11-24 08:43:43 -08:00
Deyuan Deng b5fce5021f gitrepo validation 2014-11-23 23:03:11 -05:00
Meir Fischer 763e48bc6f multivalued requirement parser more whitespace tolerant 2014-11-23 21:55:34 -05:00
Mike Danese 5bda95f9fe added healthz check to the proxy with configurable port 2014-11-23 09:07:19 -08:00
Eric Tune f122fc94bf Move service enviroment vars code.
GetServiceEnvironmentVariables (originally in  pkg/registry/service/rest.go)
is split into two parts: one that lists services, and one that turns
a ServiceList into environment vars.  This will allow a subsequent PR
to add a call to the latter function with an existing ServiceList.
The former part is moved into pkg/registry/pod/bound_pod_factory.go.
The latter part is put in a new package, pkg/kubelet/envvars/envvars.go.
The new package is under kubelet because the container enviroment is more
associated with kubelet than with registry.
Test code moved too.
2014-11-23 05:50:34 -08:00
Meir Fischer 9b441d01ab reset err value to SetDeadline return 2014-11-22 23:48:27 -05:00
Deyuan Deng 6a42b66369 Display node label 2014-11-22 11:33:02 -05:00
Mike Danese 39bdee387e kubectl get format is specified with -o, not -f 2014-11-21 17:55:48 -08:00
Eric Tune 7d3e00c679 Remove never-needed return value.
Make some types private.
2014-11-21 15:11:45 -08:00
Joe Beda e5b988393d Fix 32bit build 2014-11-21 14:58:17 -08:00
bgrant0607 7ca2e06553 Merge pull request #2526 from erictune/addhelper
Add selector making helper
2014-11-21 14:27:18 -08:00
bgrant0607 8298308d34 Merge pull request #2525 from erictune/cleanup1
Rename makeContainerKey -> make BoundPodsKey.
2014-11-21 14:04:11 -08:00
Eric Tune 01434a8c04 Add helper for making simple selector. 2014-11-21 13:34:20 -08:00
Eric Tune 20a8e4bf19 Rename makeContainerKey -> make BoundPodsKey.
Fix some typos too.
2014-11-21 13:15:08 -08:00
markturansky 8159c8fd25 Refactor PodCondition to PodPhase 2014-11-21 15:28:38 -05:00
bgrant0607 9f5ebef3d8 Merge pull request #2513 from lavalamp/verifyNetwork
Fix crash (loop?) in kubelet
2014-11-21 10:10:32 -08:00
bgrant0607 4c5a7e5915 Merge pull request #2492 from brendandburns/valid
Add a swagger schema validator, for validating client side json files.
2014-11-21 07:01:59 -08:00
markturansky 13cba21c6c Add old and new DesiredState/Status to podToSelectableFields for watches 2014-11-21 09:46:05 -05:00
Brendan Burns 6c53d3b462 Add a swagger schema validator, for validating client side json files. 2014-11-20 22:16:55 -08:00
Deyuan Deng a4e7604266 Merge pull request #2478 from smarterclayton/refactor_minion_to_match_v1beta3
Move the internal minion representation to match v1beta3
2014-11-20 21:37:43 -05:00
Daniel Smith 9116c27040 Fix crash (loop?) in kubelet 2014-11-20 18:28:23 -08:00
Clayton Coleman 156000ef6d Move the internal minion representation to match v1beta3
Moves to 'Spec' and 'Status' internally and removes duplicate
fields.  Moves Capacity into Spec and drops use of NodeResources
2014-11-20 20:53:08 -05:00
Tim Hockin 95a9098311 fix 'go vet' warnings 2014-11-21 09:45:28 +08:00
Tim Hockin ea960711ff Clean up error logs.
Use %v for errors, tidy some messages, make error messages start lowe-case
(as per go guidelines).  Just accumulated nits.
2014-11-21 09:45:26 +08:00
Deyuan Deng 762e9a0f57 Create a backgroud task to register static list of machines. 2014-11-20 20:22:32 -05:00
Eric Tune ea58ab7221 Merge pull request #2508 from lavalamp/fix4
Don't hold up the entire event queue for a single bad event.
2014-11-20 17:22:03 -08:00
bgrant0607 6b80abc78c Merge pull request #2494 from bgrant0607/config
Create tool for resizing a replication controller via kubectl.
2014-11-20 16:30:22 -08:00
Daniel Smith 4437f03dbf Don't hold up the entire event queue for a single bad event. Also, don't retry forever. 2014-11-20 16:01:42 -08:00
Daniel Smith 432cf39c0c add test and more helpful error message 2014-11-20 14:11:19 -08:00
Brian Grant e107da34d2 Create tools for resizing and stopping a replication controller via kubectl. 2014-11-20 18:49:44 +00:00
bgrant0607 d6f3caeb94 Merge pull request #2488 from smarterclayton/remove_chatty_error
Do not log an error when file does not exist
2014-11-20 10:25:28 -08:00
Clayton Coleman 2afa12073c Do not log an error when file does not exist 2014-11-19 22:04:36 -05:00