global

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseOptions

type BaseOptions struct {
	Agents             []string
	NodeName           string
	NodeAddress        string
	LockFileName       string
	LockWaitingEnabled bool

	CgroupType            string
	AdditionalCgroupPaths []string

	MachineNetMultipleNS   bool
	MachineNetNSDirAbsPath string
}

func NewBaseOptions

func NewBaseOptions() *BaseOptions

func (*BaseOptions) AddFlags

func (o *BaseOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*BaseOptions) ApplyTo

func (o *BaseOptions) ApplyTo(c *global.BaseConfiguration) error

ApplyTo fills up config with options

type MetaServerOptions

type MetaServerOptions struct {
	CNRCacheTTL                    time.Duration
	CustomNodeConfigCacheTTL       time.Duration
	ServiceProfileCacheTTL         time.Duration
	ConfigCacheTTL                 time.Duration
	ConfigDisableDynamic           bool
	ConfigSkipFailedInitialization bool
	ConfigCheckpointGraceTime      time.Duration

	KubeletReadOnlyPort          int
	KubeletSecurePort            int
	EnableKubeletSecurePort      bool
	KubeletPodCacheSyncPeriod    time.Duration
	KubeletPodCacheSyncMaxRate   int
	KubeletPodCacheSyncBurstBulk int
	KubeletConfigEndpoint        string
	APIAuthTokenFile             string
	KubeletPodsEndpoint          string

	RemoteRuntimeEndpoint     string
	RuntimePodCacheSyncPeriod time.Duration

	CheckpointManagerDir string

	EnableMetricsFetcher bool
	EnableCNCFetcher     bool
}

func NewMetaServerOptions

func NewMetaServerOptions() *MetaServerOptions

func (*MetaServerOptions) AddFlags

func (o *MetaServerOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*MetaServerOptions) ApplyTo

ApplyTo fills up config with options

type PluginManagerOptions

type PluginManagerOptions struct {
	PluginRegistrationDir string
}

func NewPluginManagerOptions

func NewPluginManagerOptions() *PluginManagerOptions

func (*PluginManagerOptions) AddFlags

func (o *PluginManagerOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*PluginManagerOptions) ApplyTo

ApplyTo fills up config with options

type QRMAdvisorOptions

type QRMAdvisorOptions struct {
	CPUAdvisorSocketAbsPath string
	CPUPluginSocketAbsPath  string

	MemoryAdvisorSocketAbsPath string
}

QRMAdvisorOptions holds the configurations for both qrm plugins and sys advisor qrm servers

func NewQRMAdvisorOptions

func NewQRMAdvisorOptions() *QRMAdvisorOptions

NewQRMAdvisorOptions creates a new options with a default config

func (*QRMAdvisorOptions) AddFlags

func (o *QRMAdvisorOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*QRMAdvisorOptions) ApplyTo

ApplyTo fills up config with options

Jump to

Keyboard shortcuts

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