kpr

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 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