servicecidr

package
v0.17.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

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

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

Variables

This section is empty.

Functions

func EnsureServiceCIDRConfigmap

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

func EnsureServiceCIDRInK0sSecret

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

func GetCIDRConfigMapName

func GetCIDRConfigMapName(vClusterName string) string

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