options

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// ListenAddress is the host and port for the HTTP server delivering prometheus metrics and pprof profiling.
	ListenAddress string
	// KubeconfigPath is the path to the kube configuration file.
	KubeconfigPath string
	// ImagePullCancelDelay is the delay before canceling an image pull routine to ensure all events related to the pod
	// have been processed.
	ImagePullCancelDelay float64
	// KubeWatchTimeout is the timeout for the Kubernetes Watch API.
	KubeWatchTimeout int64
	// KubeWatchMaxEvents is the maximum number of events to receive from the Kubernetes Watch API per response.
	KubeWatchMaxEvents int64
	// StatisticEventQueueLength is the maximum number of queued statistic events.
	//
	// TODO(Izzette): consider splitting into PodStatisticEventQueueLength and ImagePullStatisticEventQueueLength
	StatisticEventQueueLength int
	// EmitPartialStatistics enables emitting statistics for pods that have not yet become Ready and image pulls that have
	// not yet completed.
	EmitPartialStatistics bool
	// LogLevel is the global logging level.
	LogLevel zerolog.Level
}

Options contains the options for the controller.

func Parse

func Parse() *Options

Parse parses the options and returns them as a pointer to an Options struct.

Jump to

Keyboard shortcuts

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