app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

	// HTTPListenPort is internal http servers listen port.
	HTTPListenPort 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
}

Jump to

Keyboard shortcuts

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