apiserver/pkg/storage/etcd3
Hitoshi Mitake a7bf68f0d6 storage, etcd3: add an option for configuring interval of compaction requests from apiserver
This commit adds an option for controlling request of compaction to
etcd3 from apiserver. There is a situation that apiserver cannot fully
own its etcd cluster (e.g. sharing it with canal). In such a case,
apiserver should have limited access in terms of etcd's auth
functionality so it don't have a priviledge to issue compaction
requests. It means that the compaction requests should be issued by
other component and apiserver's compaction requests are needless.

For such use cases, this commit adds a new flag
`storagebackend.Config.CompactionInterval`. If the flag is non 0,
apiserver issues the compaction requests like current behaviour (the
default is 5 minutes). If it is 0, apiserver doesn't issue the
requests. It can be configured with a newly added option of apiserver
`--etcd-compaction-interval`.

Kubernetes-commit: 87d4d3e92be6b93517f189082b0451cee6957ee5
2017-09-01 14:06:25 +09:00
..
preflight Use buildozer to delete licenses() rules except under third_party/ 2017-08-29 13:15:24 +00:00
BUILD etcd3 store: retry w/live object on conflict 2017-09-22 11:42:06 +00:00
OWNERS Mechanical move: pkg/storage -> k8s.io/apiserver 2017-02-13 07:36:41 -05:00
compact.go storage, etcd3: add an option for configuring interval of compaction requests from apiserver 2017-09-01 14:06:25 +09:00
compact_test.go Mechanical move: pkg/storage -> k8s.io/apiserver 2017-02-13 07:36:41 -05:00
errors.go Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00
event.go Mechanical move: pkg/storage -> k8s.io/apiserver 2017-02-13 07:36:41 -05:00
store.go etcd3 store: retry w/live object on conflict 2017-09-22 11:42:06 +00:00
store_test.go etcd3 store: retry w/live object on conflict 2017-09-22 11:42:06 +00:00
watcher.go Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00
watcher_test.go Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00