etcd

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// storage transport config
	ServerList []string `json:"serverList" yaml:"serverList"`
	// storage transport TLS credentials
	KeyFile       string `json:"keyFile" yaml:"keyFile"`
	CertFile      string `json:"certFile" yaml:"certFile"`
	TrustedCAFile string `json:"trustedCAFile" yaml:"trustedCAFile"`

	Prefix string `json:"prefix" yaml:"prefix"`
	Paging bool   `json:"paging" yaml:"paging"`
	// CompactionInterval is an interval of requesting compaction from apiserver.
	// If the value is 0, no compaction will be issued.
	CompactionInterval time.Duration `json:"compactionInterval" yaml:"compactionInterval"`
	// CountMetricPollPeriod specifies how often should count metric be updated
	CountMetricPollPeriod time.Duration `json:"countMetricPollPeriod" yaml:"countMetricPollPeriod"`

	// To enable protobuf as storage format, it is enough
	// to set it to "application/vnd.kubernetes.protobuf".
	DefaultStorageMediaType string `json:"defaultStorageMediaType" yaml:"defaultStorageMediaType"`
	DeleteCollectionWorkers int    `json:"deleteCollectionWorkers" yaml:"deleteCollectionWorkers"`
	EnableGarbageCollection bool   `json:"enableGarbageCollection" yaml:"enableGarbageCollection"`

	// Set EnableWatchCache to false to disable all watch caches
	EnableWatchCache bool `json:"enableWatchCache" yaml:"enableWatchCache"`
	// Set DefaultWatchCacheSize to zero to disable watch caches for those resources that have no explicit cache size set
	DefaultWatchCacheSize int `json:"defaultWatchCacheSize" yaml:"defaultWatchCacheSize"`
	// WatchCacheSizes represents override to a given resource
	WatchCacheSizes []string `json:"watchCacheSizes" yaml:"watchCacheSizes"`
}

func NewEtcdOptions

func NewEtcdOptions() *Options

func (*Options) AddFlags

func (s *Options) AddFlags(fs *pflag.FlagSet)

AddEtcdFlags adds flags related to etcd storage for a specific APIServer to the specified FlagSet

func (*Options) Validate

func (s *Options) Validate() []error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL