diff --git a/api/v1alpha1/applicationdefinitions_types.go b/api/v1alpha1/applicationdefinitions_types.go index 98841a362..82d5bd8de 100644 --- a/api/v1alpha1/applicationdefinitions_types.go +++ b/api/v1alpha1/applicationdefinitions_types.go @@ -120,14 +120,18 @@ type ApplicationDefinitionRelease struct { // kstatus rules instead. // A CR whose CRD is not installed fails the Helm action before any wait, // whatever these expressions say. - // helm-controller parses and validates these expressions and constructs the - // status reader before choosing how to wait. Invalid configuration can + // helm-controller parses and validates these expressions and creates a + // status reader factory before choosing how to wait. The factory constructs + // the concrete status reader when the selected wait path creates its + // resource manager. 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. + // disables wait. Without the annotation, the legacy strategy never evaluates + // them. With it, hooks are evaluated whatever the strategy, because disabling + // wait takes precedence. // +optional HealthCheckExprs []kustomize.CustomHealthCheck `json:"healthCheckExprs,omitempty"` } diff --git a/packages/system/application-definition-crd/definition/cozystack.io_applicationdefinitions.yaml b/packages/system/application-definition-crd/definition/cozystack.io_applicationdefinitions.yaml index f997f6398..8e208ac66 100644 --- a/packages/system/application-definition-crd/definition/cozystack.io_applicationdefinitions.yaml +++ b/packages/system/application-definition-crd/definition/cozystack.io_applicationdefinitions.yaml @@ -337,14 +337,18 @@ spec: kstatus rules instead. A CR whose CRD is not installed fails the Helm action before any wait, whatever these expressions say. - helm-controller parses and validates these expressions and constructs the - status reader before choosing how to wait. Invalid configuration can + helm-controller parses and validates these expressions and creates a + status reader factory before choosing how to wait. The factory constructs + the concrete status reader when the selected wait path creates its + resource manager. 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. + disables wait. Without the annotation, the legacy strategy never evaluates + them. With it, hooks are evaluated whatever the strategy, because disabling + wait takes precedence. items: description: CustomHealthCheck defines the health check for custom resources.