Clayton Coleman
880ecef6fe
Move locks on watch to allow testing blocking
2015-01-07 14:38:38 -05:00
Clayton Coleman
31fc19efe9
Watching on invalid label/field selectors should error
2015-01-07 14:38:38 -05:00
Clayton Coleman
3b5c3ec786
Merge pull request #3220 from lavalamp/deepEqual
...
Add *useful* DeepEqual
2015-01-07 14:24:26 -05:00
Brendan Burns
fa140767eb
Kubernetes version v0.8.0-dev
2015-01-07 11:22:53 -08:00
Brendan Burns
2b47f5482c
Kubernetes version v0.8.0
2015-01-07 11:22:53 -08:00
Clayton Coleman
e0f0b9c588
Fix inflight merge conflict by adapting rollingupdate to #2861
...
ClientConfig changed right as rollingupdate was introduced.
2015-01-07 13:51:43 -05:00
Clayton Coleman
585d2c8cbd
Merge pull request #2861 from deads2k/deads-add-clicfg-types
...
add kubeconfig types
2015-01-07 13:35:50 -05:00
bgrant0607
6e24273937
Merge pull request #3061 from jlowdermilk/rollingupdate
...
Add a rollingupdate lib and command to kubectl
2015-01-07 10:33:39 -08:00
deads2k
0e688dc271
add kubeconfig file
2015-01-07 13:09:10 -05:00
Tim Hockin
512e262dc8
Merge pull request #3264 from brendandburns/race
...
Add a lock around the other docker pull.
2015-01-07 09:54:47 -08:00
Clayton Coleman
a0d711816d
HealthyRegistry should only decorate minions, not omit them
...
Fixes #3098
2015-01-07 11:09:41 -05:00
Rohit Jnagal
62ecd5f3ff
Fix few vet errors.
...
There are quite a few 'composite literal uses unkeyed fields' errors that I have kept out of this patch.
And there's a couple where vet just seems confused. These are the easiest ones.
2015-01-07 08:40:16 +00:00
Brendan Burns
7c69570663
Add a lock around the other docker pull.
...
Fixes e2e (I hope), certainly passes e2e in my client.
2015-01-07 00:17:57 -08:00
Brendan Burns
733e12e19b
Revert "Avoid race between image pull and garbage collect"
...
This reverts commit 6f14e2e210
.
2015-01-06 23:23:23 -08:00
Brendan Burns
e84b4d03a4
Merge pull request #3183 from anguslees/pull-lock
...
Avoid race between image pull and garbage collect
2015-01-06 21:23:29 -08:00
Jeff Lowdermlk
0ab39df66b
Add a rollingupdate lib and command to kubectl
...
Also decouple conditions from client for testability.
2015-01-06 17:29:05 -08:00
Tim Hockin
ded3ef2827
Merge pull request #1185 from lavalamp/numeric
...
Numeric type for resources
2015-01-06 17:05:08 -08:00
Daniel Smith
cd58e49c78
remove 'i' and nasty rounding; test
2015-01-06 16:13:17 -08:00
Dawn Chen
e3c019128e
Add EventSource to api to have both Component and Host information.
2015-01-06 16:08:20 -08:00
Dawn Chen
2b91c1417c
Create selfLink for pods from config files and indicate hostname as part of event source.
2015-01-06 16:08:20 -08:00
Daniel Smith
2d2df5593c
Add examples & clarify comments further
2015-01-06 15:18:22 -08:00
Daniel Smith
4b61dc84cb
Merge pull request #3223 from liggitt/default_conversion
...
Make default conversion behavior available to conversion funcs
2015-01-06 13:22:25 -08:00
Tim Hockin
1ec3457fc9
Beef up validation tests
2015-01-06 13:02:42 -08:00
Tim Hockin
8b42534f77
Fix kubelet config tests
2015-01-06 13:02:41 -08:00
Tim Hockin
6e8f5fea8e
Fix validation for BoundPods to allow defaults
...
Thunking to Manifest makes a copy of the input, which is not useful for
defaulting.
2015-01-06 13:02:41 -08:00
Tim Hockin
33fcef6b42
Convert DNSPolicy wrt ContainerManifest
2015-01-06 13:02:40 -08:00
Daniel Smith
937d88d829
Merge pull request #3240 from brendandburns/tap
...
Fix the service proxy to re-poll on watch closure no matter what.
2015-01-06 11:59:11 -08:00
Brendan Burns
0f60d7bca3
Reset the resourceVersion so that we poll again for non-timeout errors.
2015-01-06 11:45:03 -08:00
Tim Hockin
88fe5c6f46
Never set pod.Name in kubelet config code
...
I think it is time to tighten up input requirements. The validation code will
reject a pod that has an empty name field.
2015-01-06 11:14:19 -08:00
Jordan Liggitt
2da1865fc2
Make default conversion behavior available to conversion funcs
2015-01-06 13:38:57 -05:00
Joe Beda
b736b42585
Merge pull request #3224 from liggitt/self_signed
...
Automatically serve API on https with self-signed cert if no cert is provided
2015-01-06 10:29:05 -08:00
Eric Tune
25a19039fb
Merge pull request #3250 from a-robinson/failure
...
Minor doc/comment fixes that came up while reading through some code.
2015-01-06 10:18:36 -08:00
Alex Robinson
d8dab5dfb9
Minor doc/comment fixes that came up while reading through some code.
2015-01-06 18:05:33 +00:00
Jordan Liggitt
b36a44f036
Automatically serve API on https with self-signed cert
2015-01-06 09:36:29 -05:00
Brendan Burns
cdad54ba48
Merge pull request #3232 from nikhiljindal/third_party
...
Moving swagger-ui files from www/swagger-ui to third_party/swagger-ui
2015-01-05 21:38:41 -08:00
Daniel Smith
b7b2ee34de
add flag helper func
2015-01-05 17:35:41 -08:00
Daniel Smith
6c6cdac0e9
Add accessor functions; round-trip test
2015-01-05 17:35:41 -08:00
Daniel Smith
18b896645c
Saturation + test, also test negative numbers
2015-01-05 17:20:38 -08:00
Daniel Smith
394c9452e7
Start numeric type for resources
2015-01-05 17:20:38 -08:00
saadali
4bf191a30a
Update copyright year for files created today to current year
2015-01-05 17:01:02 -08:00
Tim Hockin
cae572290b
Merge pull request #3230 from saad-ali/hashingLogging
...
Improve kubelet logging around container being killed due to hash change
2015-01-05 16:48:29 -08:00
saadali
d6d18a32e7
Replace %s with %q to make empty strings more obvious
2015-01-05 16:38:47 -08:00
nikhiljindal
1db30aeb51
Moving swagger-ui files from www/swagger-ui to third-party/swagger-ui
...
and adding LICENSE and README files
2015-01-05 16:27:33 -08:00
Tim Hockin
03baa7234a
Merge pull request #3225 from dchen1107/clean
...
Move GetHostName and GetDockerEndpoint methods to pkg/util
2015-01-05 16:21:51 -08:00
saadali
eb831919d9
Improve kubelet logging around container being killed due to hash change
2015-01-05 16:20:40 -08:00
saadali
f92f830e1f
Modify hash to be computed using spew library so that nested object values are used instead of pointer
2015-01-05 15:48:06 -08:00
Dawn Chen
f718957a79
Move GetHostName and GetDockerEndpoint methods to pkg/util
2015-01-05 11:44:21 -08:00
Dawn Chen
78547d9a87
Merge pull request #3194 from vishh/stats
...
Update "/stats" endpoint on kubelet.
2015-01-05 11:23:00 -08:00
Daniel Smith
f0b7743402
Add useful DeepEqual
2015-01-05 10:37:50 -08:00
Daniel Smith
83f1aa5546
Merge pull request #3178 from thockin/ptr-fields
...
Util to test if all ptr fields are nil
2015-01-05 10:35:32 -08:00
Tim Hockin
e4d239cbb1
Util to test if all ptr fields are nil
2015-01-03 23:57:43 -08:00
Tim Hockin
6fcb646ca5
Set sync frequency during integration
...
Without this, the sync loop runs continuously. IMO: This right here is
why open structs are inferior to explicity constructors that take 75
arguments - you can't forget to pass an argument.
2015-01-03 20:39:39 -08:00
Vishnu Kannan
3ef9e404c1
Update "/stats" endpoint on kubelet to take namespace as an argument as part of the API.
2015-01-03 02:17:25 +00:00
Daniel Smith
53a9d106c4
Merge pull request #3167 from thockin/affinity
...
Don't use pointers for session affinity
2014-12-30 17:43:47 -08:00
Daniel Smith
9c2cd55528
Merge pull request #3181 from smarterclayton/cleanup_http_items
...
Minor cleanups to request - fix initialism on HTTPClientFunc
2014-12-30 17:34:00 -08:00
Angus Lees
6f14e2e210
Avoid race between image pull and garbage collect
...
Hold the pullLock while pulling regular container images, not just the
network container.
Also: previously, the locks were grabbed at too-low a layer in the
callstack, leaving a (narrow) window where images could be pulled and
then garbage collected before being used.
This change takes the existing pullLock a layer higher in the call stack
so the critical regions encompass the entire find+delete and pull+use
operation in both cases.
2014-12-31 11:50:40 +11:00
Clayton Coleman
8005c85e6c
Rename HttpClientFunc -> HTTPClientFunc
2014-12-30 19:34:06 -05:00
Clayton Coleman
502204ad6d
Do not set empty field or label selectors on requests
...
Default behavior for "" is already "everything"
2014-12-30 19:33:40 -05:00
Dawn Chen
dc4e9d66f7
Merge pull request #3180 from thockin/util-mount
...
Add a util/mount pkg
2014-12-30 15:49:48 -08:00
Daniel Smith
6156526d92
Merge pull request #3133 from smarterclayton/remove_request_path
...
Introduce Resource/ResourceName/Prefix/Suffix options to RESTClient
2014-12-30 15:33:11 -08:00
Tim Hockin
fc69379b8c
Add a util/mount pkg
2014-12-30 14:38:49 -08:00
saadali
e8d30f019d
Modify "kubectl get events" to print FieldPath so BoundPod events for the same Pod but different containers can be differentiated
2014-12-29 21:32:49 -08:00
Daniel Smith
0155ede0c2
Merge pull request #3166 from dchen1107/pd
...
Propagate syncPod error as event to upper layer.
2014-12-29 16:16:53 -08:00
Dawn Chen
d38613777b
Propagate syncPod error as event to upper layer.
2014-12-29 15:42:47 -08:00
Tim Hockin
ca27fb259c
Don't use pointers for session affinity
2014-12-29 14:43:17 -08:00
Joe Beda
8eac7303fa
Merge pull request #2989 from lavalamp/fix6
...
Fix proxy bug where it lies about encoding
2014-12-29 14:05:14 -08:00
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
saadali
99acb9688c
Have Http Probe report "Unhealthy" on connection failure instead of "Unknown".
2014-12-29 11:09:06 -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
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