Skip to content

ApplicationDefinition healthCheckExprs and waitStrategy never reach existing HelmReleases #4409

Open

Description

A change to healthCheckExprs or waitStrategy on an ApplicationDefinition never reaches the HelmReleases of applications that already exist. Only a new application, or an existing one written again through the apps API, gets it. So after an upgrade that changes these settings, old and new releases of the same kind wait on different things, for as long as nobody edits the old ones.

The apps API sets both fields when it builds a HelmRelease from an Application (pkg/registry/apps/application/rest.go:1724-1725 at eec069b). After that, the only thing that keeps existing releases in sync with their definition is ApplicationDefinitionHelmReconciler.updateHelmReleaseChart (internal/controller/applicationdefinition_helmreconciler.go:127-188 at the same commit). It copies chartRef, valuesFrom and the release labels, and nothing else: neither HealthCheckExprs nor WaitStrategy appears anywhere in that file.

Where it shows up today:

The same thing was noticed for the disable-wait annotation in #3734, where existing HelmReleases picked up the new spec only after their Application was written again.

I see two ways to fix it: copy both fields in updateHelmReleaseChart, the way chartRef is copied now, or regenerate a release's spec from its Application whenever the definition changes. The first is smaller. Its catch is that waitStrategy is derived through config.ResolveWaitStrategy, so the reconciler has to derive it the same way the apps API does.

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug
    area/apiIssues or PRs related to the cozystack-api aggregated API server
    triage/acceptedIndicates an issue is ready to be actively worked on
    priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete
    and removed
    triage/needs-triageIndicates an issue needs triage by a maintainer
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiIssues or PRs related to the cozystack-api aggregated API serverkind/bugCategorizes issue or PR as related to a bugpriority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to completetriage/acceptedIndicates an issue is ready to be actively worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions