servicecidr

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 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"
	K0sConfigReadyFlag  = "CONFIG_READY"

	ErrorMessageIPFamily     = "expected an IPv6 value as indicated by " // Dual-stack cluster with .spec.ipFamilies=["IPv6"]
	ErrorMessageIPv4Disabled = "IPv4 is not configured on this cluster"  // IPv6 only cluster
	ErrorMessageFind         = "The range of valid IPs is "
)

Variables

This section is empty.

Functions

func EnsureServiceCIDRConfigmap

func EnsureServiceCIDRConfigmap(ctx context.Context, c kubernetes.Interface, currentNamespace string, vclusterName string) (string, error)

func EnsureServiceCIDRInK0sSecret

func EnsureServiceCIDRInK0sSecret(ctx context.Context, c kubernetes.Interface, currentNamespace string, vclusterName string) error

func GetCIDRConfigMapName

func GetCIDRConfigMapName(vclusterName string) string

func GetK0sSecretName

func GetK0sSecretName(vclusterName string) string

func GetServiceCIDR

func GetServiceCIDR(client kubernetes.Interface, namespace 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