Documentation
¶
Index ¶
- Constants
- Variables
- func GetAllVPCIDs() []int
- func GetSubnetID(ctx context.Context, client client.Client, vpcID int, subnetName string) (int, error)
- func GetVPCID(ctx context.Context, client client.Client, vpcName string) (int, error)
- func GetVPCIPAddresses(ctx context.Context, client client.Client, vpcName string) ([]linodego.VPCIP, error)
- func IgnoreLinodeAPIError(err error, code int) error
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 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
IgnoreLinodeAPIError returns the error except matches to status code
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.