instancestatus

package
v1.1.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(input Input) ([]workloads.InstanceStatus, error)

Build merges InstanceStatus by PodName. It carries only retained template identity from Previous; all observed revision, health, and runtime fields are rebuilt from Observations.

func ConfigsApplied

func ConfigsApplied(desired []workloads.ConfigTemplate, observed []workloads.InstanceConfigStatus) bool

ConfigsApplied reports whether every desired config generation has been observed for an instance. Extra observed entries do not make the desired config stale; they may belong to configuration that is no longer managed by the current InstanceSet spec.

Types

type Input

type Input struct {
	Previous           []workloads.InstanceStatus
	DesiredAssignments []TemplateAssignment
	Offline            []string
	Observations       []Observation
	TemplateHints      []TemplateAssignment
	UpdateRevisions    map[string]string
}

Input contains the independently produced desired and observed dimensions used to build InstanceStatus.

type Observation

type Observation struct {
	InstanceName    string
	State           workloads.InstanceCurrentState
	Revision        string
	UpToDate        bool
	Ready           bool
	Available       bool
	Failed          bool
	Role            string
	Configs         []workloads.InstanceConfigStatus
	VolumeExpansion bool
}

Observation contains runtime fields observed from a Pod or Instance.

type TemplateAssignment

type TemplateAssignment struct {
	InstanceName string
	TemplateName string
}

TemplateAssignment associates an instance identity with a template.

Jump to

Keyboard shortcuts

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