options

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterSynchroManagerUserAgent = "cluster-synchro-manager"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Master     string
	Kubeconfig string

	LeaderElection   componentbaseconfig.LeaderElectionConfiguration
	ClientConnection componentbaseconfig.ClientConnectionConfiguration

	Logs             *logs.Options
	Storage          *storageoptions.StorageOptions
	Metrics          *metrics.Options
	KubeStateMetrics *kubestatemetrics.Options

	WorkerNumber            int // WorkerNumber is the number of worker goroutines
	PageSizeForResourceSync int64
	ShardingName            string
}

func NewClusterSynchroManagerOptions

func NewClusterSynchroManagerOptions() (*Options, error)

func (*Options) Config

func (o *Options) Config() (*config.Config, error)

func (*Options) Flags

func (o *Options) Flags() cliflag.NamedFlagSets

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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