Commit Graph

4510 Commits

Author SHA1 Message Date
Clayton Coleman
e355f54eda Update references from Path() to the appropriate segment use 2014-12-29 15:38:52 -05:00
Clayton Coleman
afedbba3fc Introduce Resource/ResourceName/Prefix/Suffix options to RESTClient
RESTClient is an abstraction for simplifying access to resources that
follow the Kubernetes API pattern.  Currently, both Namespace and Path
are coupled, which means changes across versions is complex.  In general,
most access to resources should be to a resource collection (e.g.
"services") with a name (e.g. "foo"). Other constructs, like prefix sections
("watch") or proposed suffix sections ("/pods/foo/spec") only modify this
core pattern.

This commit removes the Path() helper from Request and introduces:

* Prefix(segments ...string) - segments that should go to the beginning of the path.
* Suffix(segments ...string) - segments that should go to the end of the path.
* Resource(string) - collection name, should be after prefix
* Namespace(string) - if specified, should be set after resource but before name
* Name(string) - if specified, should be after namespace

Now, only Prefix and Suffix are order dependent (and with variadics, should be
simpler).  Resource, Namespace, and Name may be specified in any order.

Path() has been removed to prevent downstream consumers of RESTClient from experiencing
behavior change.
2014-12-29 15:37:30 -05:00
Daniel Smith
998061677b Merge pull request #2909 from smarterclayton/passversiontorestmapper
Allow --api-version to properly override various default behaviors in CLI
2014-12-29 12:14:32 -08:00
Daniel Smith
9873d8a7d5 Merge pull request #2958 from rajdeepd/master
Added test cases for NewKubeletClient with TLS enabled
2014-12-29 11:47:47 -08:00
Daniel Smith
1a70421630 Merge pull request #3144 from saad-ali/3041ChangeUnhealthyStatus
Have Http Liveness Probe report "Unhealthy" on connection failure instead of "Unknown"
2014-12-29 11:36:17 -08:00
saadali
99acb9688c Have Http Probe report "Unhealthy" on connection failure instead of "Unknown". 2014-12-29 11:09:06 -08:00
Joe Beda
ebb448dff0 Merge pull request #3110 from mdshuai/master
Solve apt-get update 404 Not Found Package error
2014-12-29 10:38:13 -08:00
Joe Beda
a2e58d490e Merge pull request #2224 from thockin/dns
Enable DNS for services
2014-12-29 10:27:57 -08:00
Joe Beda
75085279eb Merge pull request #3149 from adimania/master
"kind" is needed to start the pod
2014-12-29 09:49:01 -08:00
Joe Beda
6c1203bdb8 Merge pull request #3151 from tscherf/master
Added config note for ssh root logins.
2014-12-29 09:43:27 -08:00
Joe Beda
a039ead186 Merge pull request #3159 from justinsb/wget_no_dot
Remove erroneous . from wget commands
2014-12-29 09:38:55 -08:00
bgrant0607
e1b9a953f5 Merge pull request #3145 from smarterclayton/better_scheduler_warning
Scheduler is printing the wrong value when no default algorithms available
2014-12-29 09:23:18 -08:00
Justin Santa Barbara
e682997b3d Remove erroneous . from wget commands
wget always downloads into current directory
2014-12-29 12:19:45 -05:00
Tim Hockin
32a59477a5 Add an e2e test for DNS from pods. 2014-12-29 09:18:12 -08:00
Tim Hockin
b0268f3833 Use a kubernetes-hosted minimal container for skydns 2014-12-29 09:18:12 -08:00
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
59164ca844 Make DNS an option for cluster turnup 2014-12-29 09:18:12 -08:00
Tim Hockin
1291c718cf Use a helper bridge between k8s and SkyDNS
Rather than have to keep SkyDNS up to date with Kubernetes, use a
buddy-container "kube2sky" to watch kubernetes and sync Service records
into etcd for SkyDNS ot find.  This also adds namespace support.
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
2a110b097d add contrib/dns/MAINTAINERS 2014-12-29 09:18:12 -08:00
Thorsten Scherf
91df16f96b Added config note for ssh root logins. 2014-12-27 18:36:00 +01:00
dma
39f3015bc3 Merge branch 'master' of github.com:GoogleCloudPlatform/kubernetes 2014-12-26 13:24:54 +08:00
Rohit Jnagal
a99bb4823b Merge pull request #3150 from vishh/cadvisor
Update cadvisor static manifest file completely.
2014-12-25 10:55:46 -08:00
Vishnu Kannan
2d5432bc91 update cadvisor static manifest file completely. 2014-12-25 18:22:59 +00:00
Aditya Patawari
f86af137e0 it gets confusing without the output sometimes 2014-12-25 23:46:16 +05:30
Aditya Patawari
7c99d960fe kind is needed to start the pod
fix for the following error:
the provided version "v1beta1" and kind "" cannot be mapped to a supported object
2014-12-25 22:37:20 +05:30
Clayton Coleman
c9501128b6 Scheduler is printing the wrong value when no default algorithms available 2014-12-24 00:01:54 -05: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
eff054515a fix update.sh 2014-12-23 22:48:43 +00:00
Daniel Smith
7f46d420dd add existence func and unit test 2014-12-23 14:05:26 -08:00
Daniel Smith
8824e46340 Merge pull request #3115 from thockin/proxy-pods
Add apiserver proxy support for pods.
2014-12-23 13:00:21 -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
Eric Tune
8cdaab5a10 Merge pull request #3114 from brendandburns/e2e
Add some extra checks to (hopefully) prevent flakes.
2014-12-23 11:17:23 -08:00
Eric Tune
e905234834 Merge pull request #3116 from brendandburns/master
Fix the build.
2014-12-23 10:34:06 -08:00
Brendan Burns
1d58958db8 Fix the build. 2014-12-23 10:28:26 -08:00
Brendan Burns
3f43dd32be Add some extra checks to (hopefully) prevent flakes. 2014-12-23 09:34:27 -08:00
Brendan Burns
c7d3b12d43 Merge pull request #2051 from anguslees/openstack-provider
Openstack provider
2014-12-23 09:33:19 -08:00
mdshuai
98b1c7c72f Solve apt-get update 404 Not Found Package error 2014-12-23 12:52:46 +08:00
Brendan Burns
119fe37f06 Update CHANGELOG.md 2014-12-22 20:08:39 -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
Rohit Jnagal
f67c7bc8a1 Merge pull request #3105 from vishh/update_cadvisor
Update cadvisor manifest to bind mount "/sys" from global namespace.
2014-12-22 15:59:38 -08:00
Vishnu Kannan
9a4476a60c Update cadvisor manifest to bind mount "/sys" from global namespace. 2014-12-22 23:49:22 +00:00
Brendan Burns
474cf20810 Merge pull request #3083 from lavalamp/optimize
Make list pods constant time
2014-12-22 15:38:54 -08:00
Daniel Smith
6916235513 Make locking simpler
add test for node existence cache behavior
2014-12-22 15:11:28 -08:00