servicecidr

package
v0.29.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceCIDRAnnotation = "vcluster.loft.sh/service-cidr"
)

Variables

This section is empty.

Functions

func DetectPrefix added in v0.24.2

func DetectPrefix(A net.IP, isInRange func(net.IP) bool) string

DetectPrefix inspects A to pick v4 vs v6, then runs the corresponding binary search.

func GetServiceCIDR

func GetServiceCIDR(ctx context.Context, vConfig *config.Config, client kubernetes.Interface, vClusterServiceName, vClusterNamespace string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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