status

package
v1.77.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 15 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 the state of the first install of the application.
	// True when the install pipeline completed; False while it is blocked or has failed
	// at one of: waiting for dependent modules to converge (Pending), unmet requirements, download,
	// load from filesystem, settings validation, hooks, or Helm manifest apply.
	// Sticky: once True it is never retracted — subsequent failures surface on
	// UpdateInstalled instead — except when a hard dependency is disabled under
	// the running app (see isDependencyDisabled).
	// Possible reasons: Pending, RequirementsUnmet, DownloadFailed,
	// LoadFromFilesystemFailed, SettingsInvalid, HookInitializationFailed,
	// HookFailed, ManifestsApplyFailed.
	ConditionInstalled = "Installed"

	// ConditionUpdateInstalled reflects the state of installing a new version over
	// a running application. While the update is in progress, the previously
	// installed version may keep serving traffic, so Ready/Scaled/ConfigurationApplied
	// /Managed can stay True while UpdateInstalled reports a problem with the new
	// version. False means the update is blocked or has failed.
	// Possible reasons: Pending, DownloadFailed, LoadFromFilesystemFailed,
	// SettingsInvalid, HookInitializationFailed, HookFailed, ManifestsApplyFailed,
	// ApplyingManifests (the new version's manifests are still being applied).
	ConditionUpdateInstalled = "UpdateInstalled"

	// ConditionReady reflects user-facing readiness of the application.
	// During an update it can stay True while the previous version keeps serving.
	// On reconcile it goes False when the running version can no longer be trusted
	// (download, hook, or manifest-apply failures); a settings-only failure does
	// not affect Ready because the running version's settings are unchanged.
	// Possible reasons: DownloadFailed, LoadFromFilesystemFailed,
	// HookInitializationFailed, HookFailed, ManifestsApplyFailed,
	// ApplyingManifests (mid-apply over a non-serving previous version),
	// Ready (when True).
	ConditionReady = "Ready"

	// ConditionScaled reflects the runtime scaling state of the application.
	// Owned exclusively by the workload health monitor — no other condition
	// influences this value. True at steady state, False when at least one
	// workload is rolling out (Reconciling) or failed (Degraded), Unknown
	// when there are no workloads to observe yet.
	// Possible reasons: Reconciling (False), Degraded (False), Scaled (True).
	ConditionScaled = "Scaled"

	// ConditionManaged reflects whether the controller is actively managing the
	// application. False means the controller cannot bring the application to
	// (or keep it in) a managed state: typically hook, Helm, or — during reconcile —
	// download failures, where continuing to manage the current state is unsafe.
	// Settings-only failures do not break Managed.
	// Possible reasons: DownloadFailed, HookInitializationFailed,
	// HookFailed, ManifestsApplyFailed, ApplyingManifests (mid-apply over a
	// non-managed previous version), Managed (when True).
	ConditionManaged = "Managed"

	// ConditionConfigurationApplied reflects whether the desired configuration —
	// settings, render, hooks, manifests — was successfully applied. False on
	// invalid settings, hook errors, or Helm errors. On reconcile a download
	// failure makes the configuration state Unknown (we cannot tell whether the
	// desired config is on disk).
	// Possible reasons: DownloadFailed, SettingsInvalid,
	// HookInitializationFailed, HookFailed, ManifestsApplyFailed,
	// ApplyingManifests (the new version's manifests are still being applied),
	// ConfigurationApplied (when True).
	ConditionConfigurationApplied = "ConfigurationApplied"
)

External condition types — what the user sees on the Application 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 an app that lost a hard dependency, until it is installed again.

The reason vocabulary documented per condition below describes a application that exists. While one is being removed the mapper bypasses the rules entirely and reports every condition here as False/Deleting, so each vocabulary gains that reason and the guarantees stated below — the Installed gate, Installed's stickiness, Scaled's exclusive ownership by the health monitor — do not hold on that path.

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 Application conditions.

func NewService

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

NewService creates a new status service with default condition specs.

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 Application 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