Help us shape the future of Go! Take the 2026 Go Developer Survey

kpr

package
v1.18.16 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"kube-proxy-replacement",
	"Provides KPR config",

	cell.Config(defaultFlags),
	cell.Provide(NewKPRConfig),
)

Functions

This section is empty.

Types

type KPRConfig

type KPRConfig struct {
	KubeProxyReplacement      string
	EnableNodePort            bool
	EnableExternalIPs         bool
	EnableHostPort            bool
	EnableSVCSourceRangeCheck bool
	EnableSessionAffinity     bool
	EnableSocketLB            bool
}

func NewKPRConfig

func NewKPRConfig(flags KPRFlags) (KPRConfig, error)

type KPRFlags

type KPRFlags struct {
	KubeProxyReplacement      string
	EnableSocketLB            bool `mapstructure:"bpf-lb-sock"`
	EnableNodePort            bool
	EnableExternalIPs         bool
	EnableHostPort            bool
	EnableSVCSourceRangeCheck bool
	EnableSessionAffinity     bool
}

func (KPRFlags) Flags

func (def KPRFlags) Flags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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