linode

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DNS1123LabelMaxLength int = 63
)
View Source
const (
	// The name of this cloudprovider
	ProviderName = "linode"
)

Variables

View Source
var (
	BGPNodeSelectorFlagInputLen int = 2
)

This mapping is unfortunately necessary since there is no way to get the numeric ID for a data center from the API. These values come from https://www.linode.com/docs/products/compute/compute-instances/guides/failover/#ip-sharing-availability

View Source
var (
	Mu sync.RWMutex
)
View Source
var Options struct {
	KubeconfigFlag           *pflag.Flag
	LinodeGoDebug            bool
	EnableRouteController    bool
	EnableTokenHealthChecker bool
	// Deprecated: use VPCNames instead
	VPCName                       string
	VPCNames                      string
	SubnetNames                   string
	LoadBalancerType              string
	BGPNodeSelector               string
	IpHolderSuffix                string
	LinodeExternalNetwork         *net.IPNet
	NodeBalancerTags              []string
	DefaultNBType                 string
	NodeBalancerBackendIPv4Subnet string
	GlobalStopChannel             chan<- struct{}
	EnableIPv6ForLoadBalancers    bool
	AllocateNodeCIDRs             bool
	ClusterCIDRIPv4               string
	NodeCIDRMaskSizeIPv4          int
	NodeCIDRMaskSizeIPv6          int
}

Options is a configuration object for this cloudprovider implementation. We expect it to be initialized with flags external to this package, likely in main.go

Functions

func GetAllVPCIDs added in v0.4.18

func GetAllVPCIDs() []int

GetAllVPCIDs returns vpc ids stored in map

func GetSubnetID added in v0.4.25

func GetSubnetID(ctx context.Context, client client.Client, vpcID int, subnetName string) (int, error)

GetSubnetID returns the subnet ID of given subnet label

func GetVPCID added in v0.4.18

func GetVPCID(ctx context.Context, client client.Client, vpcName string) (int, error)

GetVPCID returns the VPC id of given VPC label

func GetVPCIPAddresses added in v0.4.18

func GetVPCIPAddresses(ctx context.Context, client client.Client, vpcName string) ([]linodego.VPCIP, error)

GetVPCIPAddresses returns vpc ip's for given VPC label

func IgnoreLinodeAPIError added in v0.4.5

func IgnoreLinodeAPIError(err error, code int) error

IgnoreLinodeAPIError returns the error except matches to status code

Types

This section is empty.

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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