Documentation ¶
Index ¶
- Constants
- func EnsureServiceCIDRConfigmap(ctx context.Context, c kubernetes.Interface, currentNamespace string, ...) (string, error)
- func EnsureServiceCIDRInK0sSecret(ctx context.Context, c kubernetes.Interface, currentNamespace string, ...) error
- func GetCIDRConfigMapName(vclusterName string) string
- func GetK0sSecretName(vclusterName string) string
- func GetServiceCIDR(client kubernetes.Interface, namespace string) string
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 GetCIDRConfigMapName ¶
func GetK0sSecretName ¶
func GetServiceCIDR ¶
func GetServiceCIDR(client kubernetes.Interface, namespace string) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.