config

package
v1.49.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	Enabled bool `json:"enabled"`
}

type CloudProviderConfig added in v1.49.0

type CloudProviderConfig struct {
	CloudProvider         cloudtypes.ProviderConfig               `json:"cloudProvider"`
	VPCStateController    controllers.VPCStateControllerConfig    `json:"vpcStateController"`
	VolumeStateController controllers.VolumeStateControllerConfig `json:"volumeStateController"`
}

func (CloudProviderConfig) IsAnyControllerEnabled added in v1.49.0

func (c CloudProviderConfig) IsAnyControllerEnabled() bool

type Config

type Config struct {
	// Logging configuration.
	LogLevel        string        `json:"logLevel"`
	LogRateInterval time.Duration `json:"logRateInterval"`
	LogRateBurst    int           `json:"logRateBurst"`

	PromMetricsExportEnabled  bool          `json:"promMetricsExportEnabled"`
	PromMetricsExportInterval time.Duration `json:"promMetricsExportInterval"`

	// 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"`

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

Jump to

Keyboard shortcuts

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