Documentation
¶
Index ¶
Constants ¶
const MaxInstanceTags = 20
Maximum number of tags for exact search of ECS resources. https://www.alibabacloud.com/help/en/ecs/developer-reference/api-ecs-2014-05-26-listtagresources
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocatorAlibabaCloud ¶
type AllocatorAlibabaCloud struct {
AlibabaCloudVPCID string
AlibabaCloudReleaseExcessIPs bool
ParallelAllocWorkers int64
LimitIPAMAPIBurst int
LimitIPAMAPIQPS float64
AlibabaMetrics api.MetricsAPI
// contains filtered or unexported fields
}
AllocatorAlibabaCloud is an implementation of IPAM allocator interface for AlibabaCloud ENI
func (*AllocatorAlibabaCloud) Init ¶
Init sets up ENI limits based on given options Credential ref https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func (*AllocatorAlibabaCloud) Start ¶
func (a *AllocatorAlibabaCloud) Start(ctx context.Context, getterUpdater allocator.CiliumNodeGetterUpdater, iMetrics nodemanager.MetricsAPI) (allocator.NodeEventHandler, error)
Start kicks off ENI allocation, the initial connection to AlibabaCloud APIs is done in a blocking manner. Provided this is successful, a controller is started to manage allocation based on CiliumNode custom resources
type Metrics ¶
type Metrics struct {
APIDuration metric.Vec[metric.Observer]
RateLimit metric.Vec[metric.Observer]
}
Metrics holds the metrics for the AlibabaCloud API client.
func NewMetrics ¶
func NewMetrics() *Metrics
NewMetrics returns the metrics for the AlibabaCloud API client.
func (*Metrics) ObserveAPICall ¶
ObserveAPICall records the duration of an API call.