options

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

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

	DefaultNamespace  = "clusterpedia-system"
	RunInNamespaceEnv = "CLUSTERPEDIA_NAMESPACE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsOptions added in v0.9.0

type MetricsOptions struct {
	Metrics *metricsserver.Options

	ResourceSynchroMetricsLabels string
}

func NewMetricsOptions added in v0.9.0

func NewMetricsOptions() *MetricsOptions

func (*MetricsOptions) AddFlags added in v0.9.0

func (o *MetricsOptions) AddFlags(fs *pflag.FlagSet)

func (*MetricsOptions) ResourceSynchroConfig added in v0.9.0

func (o *MetricsOptions) ResourceSynchroConfig() resourcesynchro.MetricsWrapperConfig

func (*MetricsOptions) ServerConfig added in v0.9.0

func (o *MetricsOptions) ServerConfig() metricsserver.Config

func (*MetricsOptions) Validate added in v0.9.0

func (o *MetricsOptions) Validate() []error

type Options

type Options struct {
	Master     string
	Kubeconfig string

	LeaderElection   componentbaseconfig.LeaderElectionConfiguration
	ClientConnection componentbaseconfig.ClientConnectionConfiguration

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

	RunInNamespace          string
	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