github.com/cilium/cilium@v1.16.2/pkg/ipam/stats/stats.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  package stats
     5  
     6  // InterfaceStats contains stats about the current state of an individual IPAM node.
     7  // This is used while performing a resync to determine if the node is able to
     8  // allocate more addresses.
     9  type InterfaceStats struct {
    10  	// NodeCapacity is the current inferred total capacity for a Node to schedule
    11  	// IPv4 addresses.
    12  	//
    13  	// This does not account for currently used addresses.
    14  	NodeCapacity int
    15  
    16  	// RemainingAvailableInterfaceCount is the number of interfaces currently available
    17  	// for IPv4 address allocation.
    18  	RemainingAvailableInterfaceCount int
    19  
    20  	// NodeIPv6Capacity is the current inferred total capacity for a Node to schedule
    21  	// IPv6 addresses.
    22  	//
    23  	// This does not account for currently used addresses.
    24  	NodeIPv6Capacity int
    25  
    26  	// RemainingAvailableIPv6InterfaceCount is the number of interfaces currently available
    27  	// for IPv6 address allocation.
    28  	RemainingAvailableIPv6InterfaceCount int
    29  }