Commit Graph

23868 Commits

Author SHA1 Message Date
Daniel Smith
24e59de06e Merge pull request #3392 from erictune/reflector_proxy
Reconcile kubelet and kube-proxy watching code, initial steps.
2015-01-12 14:55:26 -08:00
Eric Tune
295800201e Make pkg/proxy/config more like pkg/kubelet/config
Split SourceAPI into two subobjects.

Parallel structure for endpoints, services will allow
changing to use generic code in pkg/client/cache/reflector.go.

Rename some funcs to be more like pkg/client/cache.
2015-01-12 14:37:04 -08:00
Tim Hockin
2ea27c3df3 Fix wrong field check in validation 2015-01-12 14:27:34 -08:00
Tim Hockin
0d92da6b15 Remove logic to handle if UID is blank
This should only have been triggered by tests, and those should now be fixed.
I tested by calling panic() if UID was blank in BuildDockerName() or if number
of fields was < 5 in ParseDockerName().  All errors were fixed.
2015-01-12 14:27:34 -08:00
Tim Hockin
905514a12b Ensure Namespace and UID are set in kubelet
Make all kubelet config sources ensure that UID and Namespace are defaulted, if
need be.

We can *almost* disable the "if blank" logic for UID, except for tests that
call APIs that do not run through SyncPods.  We really ought to be enforcing
invariants better.
2015-01-12 14:27:34 -08:00
Tim Hockin
af0e2fd551 Merge pull request #3403 from thockin/klet-dirs-structure
Apply more structure to pod data dirs
2015-01-12 14:19:22 -08:00
bgrant0607
b3d827e333 Merge pull request #3416 from nikhiljindal/basePath
Setting WebServicesUrl in swagger config
2015-01-12 13:59:21 -08:00
bgrant0607
e965b7ec18 Merge pull request #3368 from ddysher/static-hostip
Post hostip for static machines
2015-01-12 13:51:11 -08:00
nikhiljindal
6ddfb10728 Setting WebServicesUrl in swagger config, so that the api docs contain correct basepath 2015-01-12 13:48:39 -08:00
Jordan Liggitt
1f8a74626f Use CAFile even if client certificate is not specified 2015-01-12 16:38:48 -05:00
Eric Tune
ab7106a5c3 Merge pull request #3322 from erictune/cleanup5
Rename ListPods methods to List.
2015-01-12 13:38:13 -08:00
Victor HU
05c63bb201 Fix comments by formula given in priorities.go 2015-01-12 21:24:57 +00:00
Daniel Smith
6f43074143 Merge pull request #3404 from smarterclayton/method_not_allowed
Allow RESTStorage objects to not implement methods
2015-01-12 13:21:10 -08:00
saadali
e1917cf900 Fix "Kubelet doesn't kill old pods when BoundPods is empty" issue 2015-01-12 12:39:47 -08:00
Daniel Smith
969c4b8c49 Merge pull request #3410 from brendandburns/watch
Clear resourceVersion on errors.
2015-01-12 11:51:59 -08:00
Brendan Burns
6ad88bb143 Clear resourceVersion on errors. 2015-01-12 11:45:38 -08:00
Clayton Coleman
d17f75f254 Remove user agent logging (doesn't add significant value)
We can reintroduce path/agent logging at a later point, this just clogs
verbose logs.
2015-01-12 13:37:37 -05:00
Clayton Coleman
302629569b Remove unimplemented methods 2015-01-12 12:20:01 -05:00
Clayton Coleman
22c99c98e2 Split RESTStorage into separate interfaces
Omit unimplemented interfaces from Swagger
2015-01-12 12:19:45 -05:00
Clayton Coleman
a52b216324 Add MethodNotSupported error 2015-01-12 12:05:04 -05:00
Tim Hockin
523a80bec7 Apply more structure to pod data dirs
This is makes it possible to read back "known" pods from disk without
getting other (non-pod) kubelet dirs in the mix.  Ditto for containers
within a pod.  This is just saner overall.  Pods now nest in a pods/
dir.  Likewise containers.
2015-01-12 06:16:32 -08:00
Eric Tune
00c05053b7 Rename ListPods methods to List.
For greater similarity to pkg/client.
Does not cover registry's ListPods.
Fix an example in a comment.
2015-01-09 23:46:02 -08:00
derekwaynecarr
7c630fd797 Add ability to listwatch in namespace 2015-01-10 01:04:26 -05:00
Deyuan Deng
0e13a24864 Post hostip for static machines 2015-01-09 19:38:10 -05:00
Daniel Smith
6cd37637f5 Merge pull request #3365 from smarterclayton/test_coverage
Reenable coverage and race detection on Travis
2015-01-09 16:35:18 -08:00
Eric Tune
f381579a89 Fix flaky test.
Maps are randomly reordered.
But there is only one order for one thing.
2015-01-09 16:23:53 -08:00
Eric Tune
e930aa33ac Merge pull request #3370 from dchen1107/clean
Print PodIP along with Pod.Name for kubectl get pod <id>
2015-01-09 15:54:26 -08:00
Dawn Chen
a7ad7f8207 Print PodIP along with Pod.Name for kubectl get pod <id> 2015-01-09 14:18:10 -08:00
Dawn Chen
a5c117f405 Merge pull request #3367 from lavalamp/fix
improve validation error message printing
2015-01-09 13:26:44 -08:00
Dawn Chen
f795d13985 Merge pull request #3366 from erictune/undelta
Added UndeltaStore.
2015-01-09 13:18:22 -08:00
Daniel Smith
c81dda5d61 improve validation error message printing 2015-01-09 13:06:24 -08:00
bgrant0607
4231f8757d Merge pull request #3298 from nikhiljindal/swagger-ui
Changes to improve swagger ui
2015-01-09 12:55:01 -08:00
Eric Tune
793bf6a79d Added UndeltaStore.
This will be used to connect Reflector to kubelet update channel.

Added testing.
2015-01-09 12:40:07 -08:00
Tim Hockin
2a2cef84d6 Merge pull request #3351 from lavalamp/fix
Fix error messages; add tests
2015-01-09 12:07:20 -08:00
nikhiljindal
7e909ed743 Changes to improve swagger ui.
- Separating out index, version and api handlers into independent web
  services. Moved the index handler to /welcome, version handler to
  /version and the api handler to /api,
2015-01-09 10:56:24 -08:00
Clayton Coleman
a3ff55e478 Allow delete to work from directories, files, multiple resources
Simple refactoring reusing the resource builder changes.
2015-01-09 13:31:24 -05:00
Clayton Coleman
d24c5b145e Allow errors to be ignored by the builder 2015-01-09 13:31:24 -05:00
Clayton Coleman
bc86b31a8b Remove createall now that create supports directories and sources 2015-01-09 13:30:31 -05:00
Clayton Coleman
d1ab27762b Create should be able to accept multiple resources 2015-01-09 13:30:31 -05:00
Clayton Coleman
2151afe334 Allow kubectl get to fetch multiple resource types
Like Delete, which can now run over multiple types:

    kubectl delete pods,services -l name=foo

Get should be able to span items for label selection

    kubectl get pods,services -l name=foo
2015-01-09 13:30:14 -05:00
Clayton Coleman
e67786b2f0 Shorten kubecfg test by adding private variable for duration 2015-01-09 13:16:30 -05:00
Clayton Coleman
cacd2ac40b Shorten client/record test by changing default value
Also add opinionated comment about using singletons in code
2015-01-09 13:16:30 -05:00
Clayton Coleman
b8333bdeef Merge pull request #3152 from smarterclayton/resource_args_builder
Let Kubectl deal with many objects at the same time
2015-01-09 12:17:17 -05:00
Filipe Brandenburger
0105a48b87 Merge pull request #3356 from dchen1107/image
Fix a crash for kubelet when without EtcdClient.
2015-01-09 09:16:00 -08:00
Clayton Coleman
8a4f225941 Make expandResourceShortcuts part of RESTMapper on client 2015-01-09 11:59:11 -05:00
Clayton Coleman
a1ee782df5 Use resource package, delete older code 2015-01-09 11:59:11 -05:00
Clayton Coleman
d75a3d5021 Move Resource functionality to its own package
Create a unified Builder object for working with files, selectors,
types, and items that makes it easier to get multi-object functionality.

Supports all of the behaviors previously in resource.go, but with
additional flexibility to allow multi-type retrieval and access, directories,
URLs, nested objects, and lists.
2015-01-09 11:59:06 -05:00
Clayton Coleman
68298f08a4 Merge pull request #3353 from thockin/errors
Cleaner aggregate errors API
2015-01-09 11:50:57 -05:00
Dawn Chen
6e6f465a36 Fix a crash for kubelet when without EtcdClient. 2015-01-09 02:28:20 -08:00
Tim Hockin
4fcd496d59 change everything to use new util/errors 2015-01-08 22:10:03 -08:00