Documentation
¶
Index ¶
Constants ¶
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 ¶
NewService creates the status service of the kind.