servicecidr

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CIDRConfigMapPrefix = "vc-cidr-"
	CIDRConfigMapKey    = "cidr"
	K0sConfigKey        = "config.yaml"
	K0sCIDRPlaceHolder  = "CIDR_PLACEHOLDER"

	ErrorMessageFind = "The range of valid IPs is "
	FallbackCIDR     = "10.96.0.0/12"
)

Variables

This section is empty.

Functions

func EnsureServiceCIDRInK0sSecret

func EnsureServiceCIDRInK0sSecret(
	ctx context.Context,
	workspaceNamespaceClient,
	currentNamespaceClient kubernetes.Interface,
	workspaceNamespace,
	currentNamespace string,
	vClusterName string,
) (string, error)

func GetK0sSecretName

func GetK0sSecretName(vClusterName string) string

func GetServiceCIDR

func GetServiceCIDR(ctx context.Context, client kubernetes.Interface, namespace string) (string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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