Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConditionInsufficientIP = "InsufficientIP" ConditionOperationErr = "OperationErr" )
View Source
const (
ControllerName = "multi-ip-node"
)
Variables ¶
View Source
var ( // ResourcePoolTotal terway total source amount in the pool ResourcePoolTotal = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "gc_count_total", Help: "controlplane gc total", }, []string{"node"}, ) SyncOpenAPITotal = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "sync_openapi_count_total", Help: "controlplane sync data with openapi total", }, []string{"node"}, ) )
View Source
var EniOptions = map[eniTypeKey]*aliyunClient.CreateNetworkInterfaceOptions{ // contains filtered or unexported fields }
View Source
var EventCh = make(chan event.GenericEvent, 1000)
Functions ¶
func IdlesWithAvailable ¶
func IdlesWithAvailable(eniIP map[string]*networkv1beta1.IP) (count int)
Types ¶
type EniIP ¶
type EniIP struct { NetworkInterface *networkv1beta1.NetworkInterface IP *networkv1beta1.IP }
type NodeStatus ¶
type NodeStatus struct { NeedSyncOpenAPI *atomic.Bool StatusChanged *atomic.Bool LastGCTime time.Time LastReconcileTime time.Time }
func MetaCtx ¶
func MetaCtx(ctx context.Context) *NodeStatus
type PodRequest ¶
Click to show internal directories.
Click to hide internal directories.