app

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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 `json:"enabled"`
}

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        `json:"logLevel"`
	LogRateInterval time.Duration `json:"logRateInterval"`
	LogRateBurst    int           `json:"logRateBurst"`

	// Built binary version.
	Version      string `json:"version"`
	ChartVersion string `json:"chartVersion"`

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

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

	// PyroscopeAddr is optional pyroscope addr to send traces.
	PyroscopeAddr string `json:"pyroscopeAddr"`

	CastaiController state.CastaiConfig      `json:"castaiController"`
	CastaiEnv        castai.Config           `json:"castaiEnv"`
	ImageScan        imagescan.Config        `json:"imageScan"`
	Linter           kubelinter.Config       `json:"linter"`
	KubeBench        kubebench.Config        `json:"kubeBench"`
	Delta            delta.Config            `json:"delta"`
	JobsCleanup      state.JobsCleanupConfig `json:"jobsCleanup"`
	AgentConfig      AgentConfig             `json:"agentConfig"`
}

Jump to

Keyboard shortcuts

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