config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 62

Documentation

Overview

Package config is the package that contains those important configurations for all running components, including Manager, eviction manager and external controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// those configurations for multi components
	*generic.GenericConfiguration

	// those configurations are used by controllers
	*webhook.GenericWebhookConfiguration
	*webhook.WebhooksConfiguration

	// those configurations are used by controllers
	*controller.GenericControllerConfiguration
	*controller.ControllersConfiguration

	// those configurations are used by metric
	*metric.GenericMetricConfiguration
	*metric.CustomMetricConfiguration

	*DynamicConfiguration
}

Configuration stores all the configurations needed by core katalyst components, both for static config (only support to be modified by flag) and dynamic config

func NewConfiguration

func NewConfiguration() *Configuration

type DynamicConfiguration

type DynamicConfiguration struct {
	// those configurations are used by agents
	*agent.GenericAgentConfiguration
	*agent.AgentConfiguration
}

DynamicConfiguration stores all the configurations needed by core katalyst components, and those configurations can be modified dynamically

func NewDynamicConfiguration

func NewDynamicConfiguration() *DynamicConfiguration

func (*DynamicConfiguration) ApplyAgentConfiguration

func (d *DynamicConfiguration) ApplyAgentConfiguration(conf *dynamic.DynamicConfigCRD)

ApplyAgentConfiguration is used to set configuration contents by CR dynamically.

Jump to

Keyboard shortcuts

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