leader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package leader manages operator runtime orchestration including registration, connections, state sync, and node draining.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager handles operator leader runtime: registration, connections, and subsystem orchestration

func New

func New(c client.Client, mgr ctrl.Manager, configPath string, connProvider *connection.Provider, onSyncReady func(*sync.Manager), onClusterName func(string)) *Manager

New creates a new runtime manager

func (*Manager) NeedLeaderElection

func (m *Manager) NeedLeaderElection() bool

NeedLeaderElection implements LeaderElectionRunnable

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

Start is called when the manager starts and after leader election

Jump to

Keyboard shortcuts

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