Documentation ¶
Index ¶
- Constants
- func AllocateAndUpdateGlobalCIDRConfigMap(brokerAdminClientset kubernetes.Interface, brokerNamespace string, ...) 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(kubeClient kubernetes.Interface, globalnetEnabled bool, ...) error
- func DeleteConfigMap(kubeClient kubernetes.Interface, namespace string) error
- func GetConfigMap(kubeClient kubernetes.Interface, namespace string) (*v1.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, ...) (*v1.ConfigMap, error)
- func ValidateExistingGlobalNetworks(kubeClient kubernetes.Interface, 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 DeleteConfigMap(kubeClient kubernetes.Interface, namespace string) error
nolint:wrapcheck // No need to wrap here
func GetConfigMap ¶ added in v0.13.0
nolint:wrapcheck // No need to wrap here
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
func ValidateExistingGlobalNetworks(kubeClient kubernetes.Interface, namespace string) error
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.