mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-03 21:53:20 +09:00
docs(api): clarify health check parsing and evaluation
Health expressions are parsed before helm-controller selects a wait strategy, while evaluation also applies to hooks waited through the poller when install wait is disabled. The API documentation must distinguish these paths so future ApplicationDefinitions do not rely on invalid no-op assumptions. Fixes cozystack/cozystack#4388 Assisted-by: LLM Signed-off-by: frolov.so <opsmon.sh@yandex.com>
This commit is contained in:
1 parent
2c2c0301f7
commit
64e5bf9b0b
3 files changed
+23
-13
No files matched your search
@@ -120,10 +120,14 @@ type ApplicationDefinitionRelease struct {
|
||||
// kstatus rules instead.
|
||||
// A CR whose CRD is not installed fails the Helm action before any wait,
|
||||
// whatever these expressions say.
|
||||
// Upstream evaluates these only when the Helm action itself has wait
|
||||
// enabled, so the release.cozystack.io/helm-install-disable-wait annotation
|
||||
// makes them a silent no-op whatever waitStrategy says: the HelmRelease
|
||||
// reports Ready as soon as helm applies the CR, with no error or warning.
|
||||
// helm-controller parses and validates these expressions and constructs the
|
||||
// status reader before choosing how to wait. Invalid configuration can
|
||||
// therefore stall the HelmRelease with reason InvalidCELExpression even when
|
||||
// the release.cozystack.io/helm-install-disable-wait annotation is set or the
|
||||
// legacy wait strategy is selected. Once setup succeeds, only helm-controller's
|
||||
// poller evaluates expressions: while a Helm action waits under the poller
|
||||
// strategy, and for Helm hooks, which are still waited on when the annotation
|
||||
// disables wait. The legacy strategy never evaluates them.
|
||||
// +optional
|
||||
HealthCheckExprs []kustomize.CustomHealthCheck `json:"healthCheckExprs,omitempty"`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user