app

package
v1.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig added in v1.7.0

type AgentConfig struct {
	Enabled bool
}

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config, clientset kubernetes.Interface) *App

func (*App) Run

func (a *App) Run(ctx context.Context) error

type Config

type Config struct {
	// Logging configuration.
	LogLevel        string
	LogRateInterval time.Duration
	LogRateBurst    int

	// Built binary version.
	Version      string
	ChartVersion string

	// Current running pod metadata.
	PodNamespace string `validate:"required"`
	PodName      string `validate:"required"`

	// HTTPListenPort is internal http servers listen port.
	HTTPListenPort        int `validate:"required"`
	MetricsHTTPListenPort int
	KubeServerListenPort  int `validate:"required"`

	// PyroscopeAddr is optional pyroscope addr to send traces.
	PyroscopeAddr string

	CastaiController state.CastaiConfig
	CastaiEnv        castai.Config
	ImageScan        imagescan.Config
	Linter           kubelinter.Config
	KubeBench        kubebench.Config
	Delta            delta.Config
	JobsCleanup      state.JobsCleanupConfig
	AgentConfig      AgentConfig
}

func (Config) Proto added in v1.4.0

func (c Config) Proto() *castaipb.ControllerConfig

Jump to

Keyboard shortcuts

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