nuker

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(cfg *ClientConfig) *Client

func (*Client) Run

func (c *Client) Run(ctx context.Context, namespace string, restartArgs []string) (err error)

Run sends a update command to the Bee clients in the Kubernetes cluster

type ClientConfig

type ClientConfig struct {
	Log                   logging.Logger
	K8sClient             *k8s.Client
	Nodes                 node.NodeList
	UseRandomNeighborhood bool
}

type NeighborhoodArgProvider

type NeighborhoodArgProvider interface {
	GetArgs(ctx context.Context, nodeName string, restartArgs []string) ([]string, error)
	UsesRandomNeighborhood() bool
}

NeighborhoodArgProvider defines how to get extra restart args for a StatefulSet.

func NewNeighborhoodProvider

func NewNeighborhoodProvider(log logging.Logger, nodes node.NodeList, useRandom bool) NeighborhoodArgProvider

Jump to

Keyboard shortcuts

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