package etcd3
import "k8s.io/apiserver/pkg/storage/etcd3"
Index ¶
- func New(c *clientv3.Client, codec runtime.Codec, prefix string, transformer value.Transformer, pagingEnabled bool) storage.Interface
- func StartCompactor(ctx context.Context, client *clientv3.Client, compactInterval time.Duration)
- func TestOnlySetFatalOnDecodeError(b bool)
Functions ¶
func New ¶
func New(c *clientv3.Client, codec runtime.Codec, prefix string, transformer value.Transformer, pagingEnabled bool) storage.Interface
New returns an etcd3 implementation of storage.Interface.
func StartCompactor ¶
StartCompactor starts a compactor in the background to compact old version of keys that's not needed. By default, we save the most recent 10 minutes data and compact versions > 10minutes ago. It should be enough for slow watchers and to tolerate burst. TODO: We might keep a longer history (12h) in the future once storage API can take advantage of past version of keys.
func TestOnlySetFatalOnDecodeError ¶
func TestOnlySetFatalOnDecodeError(b bool)
TestOnlySetFatalOnDecodeError should only be used for cases where decode errors are expected and need to be tested. e.g. conversion webhooks.
Source Files ¶
compact.go errors.go event.go lease_manager.go logger.go store.go watcher.go
Directories ¶
Path | Synopsis |
---|---|
pkg/storage/etcd3/preflight |
- Version
- v0.15.10-beta.0
- Published
- Jan 21, 2020
- Platform
- js/wasm
- Imports
- 30 packages
- Last checked
- 1 minute ago –
Tools for package owners.