akodeploymentconfig

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AviNetworkContainsSubnet

func AviNetworkContainsSubnet(network *models.Network, startAddr string, mask int32) (int, bool)

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

func EnsureStaticRanges(subnet *models.Subnet, ipPools []akoov1alpha1.IPPool, addrType string) bool

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 GetAddr

func GetAddr(addr string, addrType string) *models.IPAddr

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) Reconcile

func (r *AKODeploymentConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*AKODeploymentConfigReconciler) SetAviClient

func (r *AKODeploymentConfigReconciler) SetAviClient(client aviclient.Client)

func (*AKODeploymentConfigReconciler) SetupWithManager

func (r *AKODeploymentConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL