services

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultApiserverLBPort    = 6443
	DefaultKonnectivityLBPort = 8132
)

Variables

This section is empty.

Functions

func AddNodeToNB

func AddNodeToNB(
	ctx context.Context,
	logger logr.Logger,
	machineScope *scope.MachineScope,
) error

AddNodeToNB adds a backend Node on the Node Balancer configuration

func CreateDomainRecord added in v0.4.0

func CreateDomainRecord(ctx context.Context, mscope *scope.MachineScope, domainID int, dnsEntry DNSOptions) error

func DeleteDomainRecord added in v0.4.0

func DeleteDomainRecord(ctx context.Context, mscope *scope.MachineScope, domainID int, dnsEntry DNSOptions) error

func DeleteNodeFromNB

func DeleteNodeFromNB(
	ctx context.Context,
	logger logr.Logger,
	machineScope *scope.MachineScope,
) error

DeleteNodeFromNB removes a backend Node from the Node Balancer configuration

func EnsureAkamaiDNSEntries added in v0.6.0

func EnsureAkamaiDNSEntries(ctx context.Context, mscope *scope.MachineScope, operation string, dnsEntries []DNSOptions) error

EnsureAkamaiDNSEntries ensures the domainrecord on Akamai EDGE DNS is created, updated, or deleted based on operation passed

func EnsureDNSEntries added in v0.5.0

func EnsureDNSEntries(ctx context.Context, mscope *scope.MachineScope, operation string) error

EnsureDNSEntries ensures the domainrecord on Linode Cloud Manager is created, updated, or deleted based on operation passed

func EnsureLinodeDNSEntries added in v0.6.0

func EnsureLinodeDNSEntries(ctx context.Context, mscope *scope.MachineScope, operation string, dnsEntries []DNSOptions) error

EnsureLinodeDNSEntries ensures the domainrecord on Linode Cloud Manager is created, updated, or deleted based on operation passed

func EnsureNodeBalancer added in v0.5.0

func EnsureNodeBalancer(ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger) (*linodego.NodeBalancer, error)

EnsureNodeBalancer creates a new NodeBalancer if one doesn't exist or returns the existing NodeBalancer

func EnsureNodeBalancerConfigs added in v0.5.0

func EnsureNodeBalancerConfigs(
	ctx context.Context,
	clusterScope *scope.ClusterScope,
	logger logr.Logger,
) ([]*linodego.NodeBalancerConfig, error)

EnsureNodeBalancerConfigs creates NodeBalancer configs if it does not exist or returns the existing NodeBalancerConfig

func EnsureStackscript

func EnsureStackscript(ctx context.Context, machineScope *scope.MachineScope) (int, error)

func GetDomainID added in v0.4.0

func GetDomainID(ctx context.Context, mscope *scope.MachineScope) (int, error)

GetDomainID gets the domains linode id

func GetObjectStorageKey added in v0.6.0

func GetObjectStorageKey(ctx context.Context, keyScope *scope.ObjectStorageKeyScope) (*linodego.ObjectStorageKey, error)

func IsDomainRecordOwner added in v0.4.0

func IsDomainRecordOwner(ctx context.Context, mscope *scope.MachineScope, hostname string, domainID int) (bool, error)

func RevokeObjectStorageKey added in v0.6.0

func RevokeObjectStorageKey(ctx context.Context, keyScope *scope.ObjectStorageKeyScope) error

func RotateObjectStorageKey added in v0.6.0

func RotateObjectStorageKey(ctx context.Context, keyScope *scope.ObjectStorageKeyScope) (*linodego.ObjectStorageKey, error)

Types

type DNSEntries added in v0.5.0

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

type DNSOptions added in v0.5.0

type DNSOptions struct {
	Hostname      string
	Target        string
	DNSRecordType linodego.DomainRecordType
	DNSTTLSec     int
}

Jump to

Keyboard shortcuts

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