Jordan Liggitt
fcf5bbccd6
Fix references from serializable types to use v1.ObjectMeta
2016-12-09 16:26:04 -05:00
Hongchao Deng
b6e329654e
etcd2: have prefix always prepended
2016-12-05 15:10:38 -08:00
Wojciech Tyczynski
ec247315be
Handle RV in Get calls to storage interface.
2016-12-03 10:18:43 +01:00
deads2k
518d5500c7
remove testapi.Default.GroupVersion
2016-10-07 10:10:54 -04:00
Hongchao Deng
6f3ac807fd
pass SelectionPredicate instead of Filter to storage layer
2016-09-26 09:47:19 -07:00
Hongchao Deng
60d165a830
storage error: precondition failure should return invalid object error
2016-07-24 20:21:42 -07:00
Wojciech Tyczynski
1d9bc58328
Extend Filter interface with Trigger() and use it for pods and nodes
2016-07-13 08:45:18 +02:00
Wojciech Tyczynski
7f7ef0879f
Change filter to interface in storage.Interface
2016-07-13 08:44:22 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
k8s-merge-robot
a275a045d1
Merge pull request #23914 from sky-uk/make-etcd-cache-size-configurable
...
Automatic merge from submit-queue
Make etcd cache size configurable
Instead of the prior 50K limit, allow users to specify a more sensible size for their cluster.
I'm not sure what a sensible default is here. I'm still experimenting on my own clusters. 50 gives me a 270MB max footprint. 50K caused my apiserver to run out of memory as it exceeded >2GB. I believe that number is far too large for most people's use cases.
There are some other fundamental issues that I'm not addressing here:
- Old etcd items are cached and potentially never removed (it stores using modifiedIndex, and doesn't remove the old object when it gets updated)
- Cache isn't LRU, so there's no guarantee the cache remains hot. This makes its performance difficult to predict. More of an issue with a smaller cache size.
- 1.2 etcd entries seem to have a larger memory footprint (I never had an issue in 1.1, even though this cache existed there). I suspect that's due to image lists on the node status.
This is provided as a fix for #23323
2016-04-17 00:06:31 -07:00
James Ravn
5bb0595260
Make deserialization cache size configurable
...
Instead of the default 50K entries, allow users to specify more sensible
sizes for their cluster.
2016-04-12 13:42:27 +01:00
Wojciech Tyczynski
53f433f019
Remove Set() from storage.Interface.
2016-04-04 17:54:18 +02:00
Chao Xu
31b425b3a1
add delete precondition
2016-03-25 11:21:39 -07:00
Hongchao Deng
189ce6e397
storage: add custom storage error
2016-03-22 08:19:16 -07:00
AdoHe
7228b9b987
restore ability to run against secured etcd
2016-03-11 11:21:16 -05:00
Wojciech Tyczynski
35a3394a0a
Require versioner in etcdHelper to be non-null.
2016-02-16 16:22:43 +01:00
Wojciech Tyczynski
2e97793840
Don't store no-op updates in etcd.
2016-02-12 09:23:28 +01:00
mqliang
b0e06c14e5
add a knob to enable quorum read
2016-01-30 20:32:12 +08:00
Clayton Coleman
33085c0cf2
Update tests to handle codec changes
2016-01-22 13:27:26 -05:00
Wojciech Tyczynski
d1e039b646
Merge pull request #18635 from timothysc/etcd_client_post_cleanup
...
Update to use latest etcd client library
2015-12-18 14:14:21 +01:00
Brendan Burns
2efcccf981
Add a server side export facility
2015-12-16 15:01:13 -08:00
Timothy St. Clair
c505a5d49d
Updating kubernetes proper to use latest etcd client library
2015-12-16 15:56:35 -06:00
deads2k
6e33403abf
update CodecFor for GroupVersion
2015-12-15 10:56:00 -05:00
Timothy St. Clair
413d8d18fe
Futher storage isolation and removal of the tools interface.
2015-12-09 11:04:14 -06:00
Wojciech Tyczynski
0369805308
Merge pull request #18207 from wojtek-t/string_resource_version
...
Change resourceVersion to string in storage.Interface
2015-12-09 15:00:54 +01:00
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
Wojciech Tyczynski
793da62c7f
Change resourceVersion to string in storage.Interface
2015-12-07 09:22:59 +01:00
deads2k
ed95a6d77f
update scheme to use GroupVersion
2015-11-25 12:15:48 -05:00
Tim St. Clair
20ead45af9
Move etcd_util.go to separate package
2015-11-23 11:32:50 -08:00
Wojciech Tyczynski
3df5d1dbc3
Move storage-related dirs under pkg/storage.
2015-11-12 19:49:32 +01:00
Timothy St. Clair
dbdd1614e6
Fix for linkage issue with new testing utilities
2015-11-03 22:16:47 -06:00
Wojciech Tyczynski
aa30e38183
Pass resource version to storage List operation.
2015-10-27 10:03:58 +01:00
Timothy St. Clair
8140974f31
Removal of fakeClient from etcd_helper_test in leiu of NewEtcdTestClientServer
2015-10-23 16:23:27 -05:00
Timothy St. Clair
c850a9ab61
Modifications to to remove FakeEtcdClient. Enables starting & stopping
...
an etcd server per unit tests that need them.
2015-10-19 22:06:19 -05:00
Wojciech Tyczynski
3d88a63b5d
Refactor test objects to a separate package
2015-10-13 10:15:11 +02:00
Timothy St. Clair
2a2a2d79ff
New etcd client modifications part 1 (context support)
...
This commit plumbs contexts which are needed for the new client.
2015-10-12 08:45:49 -05:00
Paul Morie
227dd82119
Add PodSecurityContext and backward compatibility tests
2015-10-05 21:05:27 -04:00
Kris
f4ad00d9ae
Moving Status object to a common package
2015-09-17 14:09:53 -07:00
Wojciech Tyczynski
ed7d6ebd71
Filter List in Storage level to avoid additional copies.
2015-09-10 09:49:50 +02:00
Chao Xu
9fc79e9d99
refactor testapi and test scripts to prepare for multiple API groups.
2015-09-04 18:01:32 -07:00
Clayton Coleman
02dbb95447
Add TerminationGracePeriodSeconds to API
...
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00
Robert Bailey
08e6a43c1d
Revert "Merge pull request #9165 from smarterclayton/graceful"
...
This reverts commit 4f856b595d
, reversing
changes made to d78525a83b
.
Conflicts:
pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Clayton Coleman
b842a7dd15
Revert "Revert "Gracefully delete pods from the Kubelet""
...
This reverts commit 98115facfd
.
2015-08-18 08:57:02 -04:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Wojciech Tyczynski
3cbbe72f9f
Move etcd storage to pkg/storage/etcd
2015-07-30 15:42:06 +02:00