operator

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTTL is the default cache TTL for Huawei Cloud API calls used during
	// setup verification and provisioning. Cache hits enable faster provisioning
	// and reduced API load, which can have a serious impact on performance and
	// scalability. DO NOT CHANGE THIS VALUE WITHOUT DUE CONSIDERATION.
	DefaultTTL = time.Minute
	// DefaultCleanupInterval triggers cache cleanup (lazy eviction) at this interval.
	DefaultCleanupInterval = time.Minute
	// AvailableIPAddressTTL is time to drop AvailableIPAddress data if it is not updated within the TTL
	AvailableIPAddressTTL = 5 * time.Minute
	// InstanceTypesZonesAndOfferingsTTL is the time before we refresh instance types, zones, and offerings
	InstanceTypesZonesAndOfferingsTTL = 5 * time.Minute
	// UnavailableOfferingTTL is the duration to suppress recently sold-out offerings from scheduling.
	UnavailableOfferingTTL = 5 * time.Minute
	// if it is not updated by a node creation event or refreshed during controller reconciliation
	DiscoveredCapacityCacheTTL = 60 * 24 * time.Hour
	BillingEndpoint            = "https://bss.myhuaweicloud.com"
	BillingEndpointEnv         = "HUAWEICLOUD_BSS_ENDPOINT"
	IgnoreSSLEnv               = "HUAWEICLOUD_SDK_IGNORE_SSL_VERIFICATION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator struct {
	*operator.Operator
	VersionProvider      *version.DefaultProvider
	SubnetProvider       subnet.Provider
	InstanceTypeProvider *instancetype.DefaultProvider
	InstanceProvider     instance.Provider
	PricingProvider      *pricing.DefaultProvider
}

Operator is injected into the HuaweiCloud CloudProvider's factories

func NewOperator

func NewOperator(ctx context.Context, operator *operator.Operator) (context.Context, *Operator)

Jump to

Keyboard shortcuts

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