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 ¶
TemplateAssignment associates an instance identity with a template.