status

package
v1.78.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 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

View Source
const (
	// ConditionInstalled reflects whether the module's release is installed.
	// False while the first install is in progress (Pending) or blocked or failed
	// at one of: a scheduler forbid or unmet requirements (the scheduler's
	// reason, e.g. DependencyNotEnabled), download, load from filesystem,
	// settings validation, hooks, Helm manifest apply. The first True also
	// waits for the workloads to be ready. Sticky: once True it is never
	// retracted on a failure — failures surface on the other conditions —
	// only after a disable has taken the release down (see isDisabled).
	ConditionInstalled = "Installed"

	// ConditionUpdateInstalled reflects installing a new version over a
	// running module: False while the update is blocked (WaitingWindow, the
	// scheduler's requirements reason, SettingsInvalid), its preparation failed
	// (AttachFailed, LoadFromFilesystemFailed), it is being applied
	// (ApplyingManifests) or the new version's first run failed
	// (HookInitializationFailed, HookFailed, ManifestsApplyFailed,
	// ScalingForbidden); True once
	// the new version's own run succeeded.
	ConditionUpdateInstalled = "UpdateInstalled"

	// ConditionReady reflects user-facing readiness of the module.
	// Possible reasons: HookInitializationFailed, HookFailed,
	// ManifestsApplyFailed, ScalingForbidden, ReleaseDeleteFailed, ApplyingManifests,
	// SettingsChanged, Ready (when True).
	ConditionReady = "Ready"

	// ConditionScaled reflects the runtime scaling state of the module, owned by
	// the workload health monitor; lifecycle failures of an update override it.
	// Possible reasons: Reconciling (False), Degraded (False), Scaled (True, also
	// for a release without workloads).
	ConditionScaled = "Scaled"

	// ConditionManaged reflects whether the controller is actively managing the
	// module. Settings-only failures do not break it.
	// Possible reasons: HookInitializationFailed, HookFailed,
	// ManifestsApplyFailed, ScalingForbidden, ReleaseDeleteFailed, ApplyingManifests,
	// SettingsChanged, NoResourceReconciliation (maintenance applied), Managed.
	ConditionManaged = "Managed"

	// ConditionConfigurationApplied reflects whether the desired configuration —
	// settings, hooks, manifests — was applied.
	// Possible reasons: SettingsInvalid, HookInitializationFailed, HookFailed,
	// ManifestsApplyFailed, ScalingForbidden, ReleaseDeleteFailed, ApplyingManifests,
	// SettingsChanged, ConfigurationApplied (when True).
	ConditionConfigurationApplied = "ConfigurationApplied"
)

External condition types — what the user sees on the Module resource.

Every condition but Installed is gated on it: none is reported until Installed is True, and each is removed from the resource while Installed is not. The first install is therefore reported by Installed alone, and so is a module the scheduler switched off, until it is installed again. The scheduler's verdict itself is no condition: status.enabled carries it (see schedulerVerdict).

While a module is being removed the projection bypasses the rules entirely and reports every condition here as False/Deleting.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service processes status events and updates Module conditions.

func NewService

func NewService(client client.Client, source source, logger *log.Logger) *Service

NewService creates the status service of the kind.

func (*Service) Start

Start begins the status service event loop in a goroutine. It pulls changed package names from the queue and reflects them onto Module resources. The loop exits when the queue is shut down.

Jump to

Keyboard shortcuts

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