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 (*Options) Flags ¶
func (o *Options) Flags() cliflag.NamedFlagSets
Click to show internal directories.
Click to hide internal directories.