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
Tim Hockin
4fcd496d59
change everything to use new util/errors
2015-01-08 22:10:03 -08:00
Tim Hockin
cd29ba7ebc
Add new util/errors pkg
2015-01-08 21:59:23 -08:00
Tim Hockin
da8dc5360e
Merge pull request #3347 from erictune/kclientarg
...
Pass client into Kubelet.
2015-01-08 19:53:34 -08:00
Daniel Smith
e91a697445
Merge pull request #3346 from erictune/addservicelister
...
Addded a StoreToServiceLister.
2015-01-08 17:35:13 -08:00
Eric Tune
29d084c4d3
Pass client into Kubelet.
...
Subsequent PR will make use of it.
2015-01-08 15:35:17 -08:00
Eric Tune
83aed75556
Addded a StoreToServiceLister.
2015-01-08 15:29:08 -08:00
Joe Beda
7abd90e9df
Generic way to import 'flag' flags into the 'pflag' system.
...
Start with kubectl but with an eye toward switching everything over to pflag.
2015-01-08 15:25:31 -08:00
Jeff Lowdermilk
b26dfacfff
Merge pull request #3316 from deads2k/deads-add-kubeconfig-file-properly
...
add kubeconfig file properly
2015-01-08 13:50:52 -08:00
deads2k
60a46e7d49
fixes e2e failure on gce with new .kubeconfig, kick travis
2015-01-08 16:31:25 -05:00
Deyuan Deng
a2651bfcc7
Rename minioncontroller to nodecontroller
2015-01-08 14:52:10 -05:00
bgrant0607
7bff03fb41
Merge pull request #2878 from smarterclayton/enable_v1beta3
...
Enable v1beta3 API via --runtime_config=api/v1beta3 flag
2015-01-08 11:04:06 -08:00
deads2k
005f2e1bda
don't require config.Version for IsConfigTransportTLS
2015-01-08 13:53:57 -05:00
Clayton Coleman
7fd887df61
Enable v1beta3 API via --runtime_config=api/v1beta3 flag
...
This exposes the proper v1beta3 API endpoint when the user specifies
the --runtime_config=api/v1beta3 argument to the apiserver. v1beta3
is still considered experimental and subject to change.
--runtime_config is a map of string keys and values, that can be
specified by providing
--runtime_config=a=b,b=c,d,e
Only the key must be specified, the value can be omitted.
Enables v1beta3 in hack/local-up-cluster.sh and hack/test-cmd.sh
2015-01-08 13:01:24 -05:00
Clayton Coleman
8262c30c97
Improve serialization round trip test and add v1beta3
2015-01-08 12:44:28 -05:00
Clayton Coleman
8f65442c2f
Client should not include ns/ for non-namespaced calls in v1beta3
2015-01-08 12:44:07 -05:00
Tim Hockin
eac982137f
Merge pull request #3260 from commonlisp/master
...
NewMainKubelet validates SyncFrequency, minimum GC age, etc.
2015-01-08 08:20:55 -08:00
Clayton Coleman
2741126cd4
Merge pull request #3239 from smarterclayton/healthy_registry_should_decorate
...
HealthyRegistry should only decorate minions, not omit them
2015-01-08 10:34:56 -05:00
deads2k
480635bb72
Revert "Revert "add kubeconfig types""
...
This reverts commit 02dbad7094
.
2015-01-08 09:42:30 -05:00
George Kuan
06475fc4b4
NewMainKubelet validates Kubelet config parameters
...
Fixes issue #3202 .
* Validates SyncFrequency and minimum GC age and propagates error to RunKubelet
* Defaults for Kubelet config and minor cleanup
* cmd Kubelet MinimumGCAge to 1m instead of 0
2015-01-07 18:50:53 -08:00
Daniel Smith
95dd2d7ca6
reuse function; never ever unlock without defer
2015-01-07 17:07:12 -08:00
Eric Tune
c2b3d678c0
Merge pull request #3248 from derekwaynecarr/admission_control_hooks
...
Implement basic admission control framework
2015-01-07 16:52:49 -08:00
Daniel Smith
cc04db13d6
fix overeager find-and-replace
2015-01-07 16:38:27 -08:00
Tim Hockin
5f2dae4dd8
Merge pull request #3195 from lavalamp/numericWire
...
Add numeric type into api
2015-01-07 16:15:52 -08:00
Daniel Smith
963000715a
Merge pull request #3294 from erictune/public_storetoers
...
Move Listers to pkg/client/cache.
2015-01-07 15:56:14 -08:00
Eric Tune
0d4d1e28b2
Merge pull request #3270 from smarterclayton/kubelet_fixes
...
Cleanup to client initialization in Kubelet
2015-01-07 15:55:38 -08:00
Eric Tune
ed74197fde
Move Listers to pkg/client/cache.
...
I would like to use these in kubelet and kube-proxy.
This is the minimal change to get them moved.
I will follow up with changes to make interfaces consistent
and add Listers for other resources.
2015-01-07 15:33:17 -08:00
Daniel Smith
3e0b4cfabc
Merge pull request #3269 from smarterclayton/fix_legacy_support
...
Make RESTClient more generic to API version, simplify version handling
2015-01-07 15:24:02 -08:00
Daniel Smith
2050131b9a
ParseOrDie -> MustParse; stop returning pointer
2015-01-07 15:21:35 -08:00
Daniel Smith
35f54addca
Update more packages, tests, binaries for quantity
...
make etcd registry pass test
fix kubelet config for quantity
fix openstack for quantity
fix controller for quantity
fix last tests for quantity
wire into binaries
fix controller manager
fix build for 32 bit systems
2015-01-07 15:21:35 -08:00
Daniel Smith
0d628b3bff
Make semantic deep equal public feature
...
* Use semantic deep equal when validating
* More test cases for deep equal
2015-01-07 15:21:34 -08:00
Daniel Smith
7f49ba0dcf
Put quantity into packages
...
kubelet, GCE, validation, client
2015-01-07 15:21:34 -08:00
Daniel Smith
40d29f4f08
Remove obsolete resources package
2015-01-07 15:21:34 -08:00
Daniel Smith
894a3e6d3f
Wire resource.Quantity into api
2015-01-07 15:21:34 -08:00
Clayton Coleman
b03fbf90f8
Make RESTClient more generic to API version, simplify version handling
...
RESTClient is an abstraction on top of arbitrary HTTP endpoints that
follow the Kubernetes API conventions. Refactored RESTClientFor so that
assumptions that are Kube specific happen outside of that method (so
others can reuse the RESTClient). Added more validation to client.New
to ensure clients give good input. Exposed APIVersion on RESTClient
as a method so that wrapper code (code that adds typed / structured
methods over rest endpoints like client.Client) can more easily make
decisions about what APIVersion it is running under.
2015-01-07 18:03:34 -05:00
Brendan Burns
86b26a4289
Merge pull request #3287 from smarterclayton/endpoints_controller_is_chatty
...
endpoints controller is too verbose
2015-01-07 14:50:42 -08:00
Clayton Coleman
16683b409f
endpoints controller is too verbose
...
Logging at v(3) instead of v(0)
2015-01-07 17:19:49 -05:00
Tim Hockin
d314862e46
Merge pull request #3285 from erictune/public_reflectors
...
Make Reflector helpers reusable.
2015-01-07 14:10:57 -08:00
Eric Tune
7d5ac856c5
Make Reflector helpers reusable.
...
Scheduler uses Reflector from pkg/client/cache.
It defines some helper classes.
I'd like to use those helpers with pkg/client/cache
in kube-proxy and kubelet too.
2015-01-07 13:49:37 -08:00
Tim Hockin
9afede7e61
Merge pull request #3278 from brendandburns/rel8
...
Create release 0.8.0
2015-01-07 13:14:49 -08:00
Brendan Burns
5963c1735e
Merge pull request #3283 from GoogleCloudPlatform/revert-3273-fix_master_conflict
...
Revert "Fix inflight merge conflict by adapting rollingupdate to #2861"
2015-01-07 12:43:26 -08:00
Brendan Burns
cfffe7049c
Revert "Fix inflight merge conflict by adapting rollingupdate to #2861"
2015-01-07 12:42:28 -08:00
Brendan Burns
02dbad7094
Revert "add kubeconfig types"
2015-01-07 12:39:37 -08:00
derekwaynecarr
a56087cdf8
Remove client from attributes, remove admission control interface, fix-up error codes
2015-01-07 14:42:31 -05:00
derekwaynecarr
5ceffe2625
Add tests to ensure resthandler invokes admission control
2015-01-07 14:42:31 -05:00
derekwaynecarr
74d2ee69eb
Fix boilerplate and make stub controller
2015-01-07 14:42:31 -05:00
derekwaynecarr
1e2b995a79
Fix admission control in tests
2015-01-07 14:42:31 -05:00
derekwaynecarr
520ae3ef27
Implement basic admission control framework
2015-01-07 14:42:31 -05:00
Clayton Coleman
ba53d723d3
Clean up how client is passed to Kubelet in preparation for reading pods
...
Also fixes how Kubelet server looks up pods by name when there are multiple
sources.
2015-01-07 14:40:37 -05:00