node

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInitResources

type ErrInitResources struct {
	Message string
	Err     error
}

ErrInitResources to wrap error messages for all errors encountered during node initialization so the node can be de-registered on failure

func (*ErrInitResources) Error added in v1.0.7

func (e *ErrInitResources) Error() string

type Manager

type Manager interface {
	AddOrUpdateNode(v1Node *v1.Node) error
	DeleteNode(nodeName string) error
	GetNode(nodeName string) (node Node, managed bool)
}

func NewNodeManager

func NewNodeManager(logger logr.Logger, provider []provider.ResourceProvider, ec2APIHelper api.EC2APIHelper, k8sWrapper k8s.K8sWrapper) Manager

NewNodeManager returns a new node manager

type Node

type Node interface {
	InitResources(resourceProviders []provider.ResourceProvider, helper api.EC2APIHelper) error
	DeleteResources(resourceProviders []provider.ResourceProvider, helper api.EC2APIHelper) error
	UpdateResources(resourceProviders []provider.ResourceProvider, helper api.EC2APIHelper) error

	UpdateCustomNetworkingSpecs(subnetID string, securityGroup []string)
	IsReady() bool
}

func NewNode

func NewNode(log logr.Logger, nodeName string, instanceId string, os string) Node

NewNode returns a new node object

Jump to

Keyboard shortcuts

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