node

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 46 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, 1)

Functions

func IPUsage

func IPUsage(eniIP map[string]*networkv1beta1.IP) (int, int)

func IdlesWithAvailable

func IdlesWithAvailable(eniIP map[string]*networkv1beta1.IP) (count int)

Types

type Condition added in v1.10.0

type Condition string

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

type PodRequest struct {
	RequireIPv4 bool
	RequireIPv6 bool

	RequireERDMA bool

	// status
	IPv4 string
	IPv6 string
	// contains filtered or unexported fields
}

type ReconcileNode

type ReconcileNode struct {
	// contains filtered or unexported fields
}

func (*ReconcileNode) Reconcile

func (n *ReconcileNode) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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