Documentation ¶
Index ¶
- Constants
- func AllocateAndUpdateGlobalCIDRConfigMap(ctx context.Context, brokerAdminClient controllerClient.Client, ...) error
- func AllocateGlobalCIDR(globalnetInfo *Info) (string, error)
- func AssignGlobalnetIPs(globalnetInfo *Info, netconfig Config, status reporter.Interface) (string, error)
- func CheckOverlappingCidrs(globalnetInfo *Info, netconfig Config) error
- func CreateConfigMap(ctx context.Context, client controllerClient.Client, globalnetEnabled bool, ...) error
- func DeleteConfigMap(ctx context.Context, client controllerClient.Client, namespace string) error
- func GetConfigMap(ctx context.Context, client controllerClient.Client, namespace string) (*corev1.ConfigMap, error)
- func GetValidClusterSize(cidrRange string, clusterSize uint) (uint, error)
- func IsValidCIDR(cidr string) error
- func LastIP(network *net.IPNet) uint
- func NewGlobalnetConfigMap(globalnetEnabled bool, defaultGlobalCidrRange string, ...) (*corev1.ConfigMap, error)
- func ValidateExistingGlobalNetworks(ctx context.Context, client controllerClient.Client, namespace string) error
- func ValidateGlobalnetConfiguration(globalnetInfo *Info, netconfig Config, status reporter.Interface) (string, error)
- type CIDR
- type Config
- type GlobalCIDR
- type GlobalNetwork
- type Info
Constants ¶
View Source
const ( DefaultGlobalnetCIDR = "242.0.0.0/8" DefaultGlobalnetClusterSize = 65536 // i.e., x.x.x.x/16 subnet mask )
Variables ¶
This section is empty.
Functions ¶
func AllocateAndUpdateGlobalCIDRConfigMap ¶ added in v0.12.0
func AllocateGlobalCIDR ¶ added in v0.2.0
func AssignGlobalnetIPs ¶ added in v0.3.1
func CheckOverlappingCidrs ¶ added in v0.5.0
func CreateConfigMap ¶ added in v0.13.0
func DeleteConfigMap ¶ added in v0.13.0
func GetConfigMap ¶ added in v0.13.0
func GetValidClusterSize ¶ added in v0.3.0
func IsValidCIDR ¶ added in v0.10.1
func NewGlobalnetConfigMap ¶ added in v0.13.0
func ValidateExistingGlobalNetworks ¶ added in v0.10.1
Types ¶
type GlobalCIDR ¶ added in v0.2.0
type GlobalCIDR struct {
// contains filtered or unexported fields
}
type GlobalNetwork ¶
Click to show internal directories.
Click to hide internal directories.