observer

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	RunForever()
	Run()
}

Controller defines a type that can Run once or RunForever. Method of stopping is up to the implementor

func NewController

func NewController(client client.Client, stopCh <-chan struct{}, options Options, nodeLister k8s.NodeLister, observers map[string]Observer, metricsAddr string) Controller

NewController creates an implementation of a controller for observing changes and returns the public Controller interface

type ListedNodeGroups

type ListedNodeGroups struct {
	NodeGroup *atlassianv1.NodeGroup
	List      []*corev1.Node
	Reason    string
}

ListedNodeGroups defines a type that contains a NodeGroup, a List of Nodes for that NodeGroup, and an optional Reason for why they are there

type Observer

type Observer interface {
	Changed(*atlassianv1.NodeGroupList) []*ListedNodeGroups
}

Observer defines a type that can stateless-ly detect changes on a resource for a list of NodeGroups

type Options

type Options struct {
	CNRPrefix     string
	Namespace     string
	CheckSchedule string

	DryMode        bool
	RunImmediately bool
	RunOnce        bool

	CheckInterval   time.Duration
	WaitInterval    time.Duration
	NodeStartupTime time.Duration
}

Options contains the options config for a controller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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