node

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaintEffectNoSchedule = v1.TaintEffectNoSchedule
	TaintEffectNoExecute  = v1.TaintEffectNoExecute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Run executes the EC2 API poller. It will update the instance cache
	// periodically.
	Run(context.Context) error

	// List returns all EC2 Instances that are currently in the cache. Those
	// instance cache will be updated in the background.
	List() []Node

	// SignalEmitter gets triggered every time the cache changes. See syncutil
	// package for more information.
	SignalEmitter() *syncutil.SignalEmitter

	// Healthy indicates whether the background job is running correctly.
	Healthy() bool

	Taint(context.Context, Node, string, v1.TaintEffect) error
}

func New

func New(kube kubernetes.Interface) Client

type Node

type Node struct {
	InstanceID    string  `logfield:"instance-id,omitempty"`
	NodeName      string  `logfield:"node-name,omitempty"`
	Unschedulable bool    `logfield:"node-unschedulable"`
	Taints        []Taint `logfield:"node-taints"`
}

type Taint

type Taint = v1.Taint

Jump to

Keyboard shortcuts

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