drain

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package drain provides graceful node draining and workload eviction for the nstance-operator.

Index

Constants

View Source
const (
	// ConditionTypeServerDeleted indicates the instance was deleted server-side.
	ConditionTypeServerDeleted = "ServerDeleted"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinator

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

Coordinator manages drain coordination across all shards

func NewCoordinator

func NewCoordinator(c client.Client, logger logr.Logger, connections map[string]*grpc.ClientConn, restConfig *rest.Config) (*Coordinator, error)

NewCoordinator creates a new drain coordinator

func (*Coordinator) Start

func (c *Coordinator) Start(ctx context.Context) error

Start begins watching instance events from all shards

func (*Coordinator) Stop

func (c *Coordinator) Stop()

Stop gracefully stops the coordinator

Jump to

Keyboard shortcuts

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