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