Documentation ¶
Index ¶
- func AviNetworkContainsSubnet(network *models.Network, startAddr string, mask int32) (int, bool)
- func CreateStaticRangeFromIPPools(ipPools []akoov1alpha1.IPPool) []*models.IPAddrRange
- func EnsureAviNetwork(network *models.Network, addrType string, cidr *net.IPNet, mask int32, ...) bool
- func EnsureStaticRanges(subnet *models.Subnet, ipPools []akoov1alpha1.IPPool, addrType string) bool
- func GetAddr(addr string, addrType string) *models.IPAddr
- func IsStaticRangeEqual(r1, r2 []*models.IPAddrRange) bool
- func SortStaticRanges(staticRanges []*models.IPAddrRange)
- type AKODeploymentConfigReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStaticRangeFromIPPools ¶
func CreateStaticRangeFromIPPools(ipPools []akoov1alpha1.IPPool) []*models.IPAddrRange
func EnsureAviNetwork ¶
func EnsureAviNetwork(network *models.Network, addrType string, cidr *net.IPNet, mask int32, ipPools []akoov1alpha1.IPPool, log logr.Logger) bool
EnsureAviNetwork brings network to the intented state by ensuring there is one subnet in network that has the specified cidr/mask and ipPools
func EnsureStaticRanges ¶
ensureStaticRanges creates or updates the subnet's static ranges to ensure IP ranges in IPPools are reflected in the subnet. It does so by firstly doing a sort on the static ranges, then try to extend an exisitng range or fill in the hole. Note: ippools are guaranteed to be non-overlapping by validation
func IsStaticRangeEqual ¶
func IsStaticRangeEqual(r1, r2 []*models.IPAddrRange) bool
func SortStaticRanges ¶
func SortStaticRanges(staticRanges []*models.IPAddrRange)
Types ¶
type AKODeploymentConfigReconciler ¶
type AKODeploymentConfigReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme ClusterReconciler *cluster.ClusterReconciler netprovider.UsableNetworkProvider // contains filtered or unexported fields }
func (*AKODeploymentConfigReconciler) SetAviClient ¶
func (r *AKODeploymentConfigReconciler) SetAviClient(client aviclient.Client)
func (*AKODeploymentConfigReconciler) SetupWithManager ¶
func (r *AKODeploymentConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.