observed

package
v0.0.0-...-3b23f55 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObservedCluster

type ObservedCluster struct {
	Items  []*v1.KDBInstance
	ByName map[string]*v1.KDBInstance
	Ready  int
}

func (ObservedCluster) AddInstance

func (i ObservedCluster) AddInstance(instance *v1.KDBInstance)

func (ObservedCluster) GetInstanceByName

func (i ObservedCluster) GetInstanceByName(instanceName string) *v1.KDBInstance

type ObservedRunner

type ObservedRunner struct {
	List     []*SingleRunner          // by instance name
	BySet    map[string]*SingleRunner // by StatefulSet name
	SetNames sets.String
}

ObservedRunner represents the KDB instance.

func NewObservedRunner

func NewObservedRunner(
	instance *v1.KDBInstance,
	runners []appsv1.StatefulSet,
	pods []corev1.Pod,
) *ObservedRunner

NewObservedRunner builds an ObservedSingleInstance from Kubernetes API objects.

type SingleRunner

type SingleRunner struct {
	Name   string
	Pods   []*corev1.Pod
	Runner *appsv1.StatefulSet
}

SingleRunner represents a single KDB instance.

func (SingleRunner) PodMatchesPodTemplate

func (i SingleRunner) PodMatchesPodTemplate() (matches bool, known bool)

PodMatchesPodTemplate returns whether or not the Pod for this instance matches its specified PodTemplate. When it does not match, the Pod needs to be redeployed.

Jump to

Keyboard shortcuts

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