Add new conditions to track the status of sylva-units HelmRelease

Add two conditions to track the status of managed sylva-units HelmRelease:

  • HelmReleaseUpToDate indicates if the operator has configured the sylva-units helmrelease manifest
  • HelmReleaseReady condition reflects the ready conditions of sylva-units helmrelease
  status:
    conditions:
    - lastTransitionTime: "2025-10-07T15:13:06Z"
      message: the SylvaUnitsRelease is not yet ready
      observedGeneration: 4
      reason: ResourceNotReady
      status: "False"
      type: Ready
    - lastTransitionTime: "2025-10-07T15:12:03Z"
      message: 'Helm upgrade failed for release preview-pdr1zbaq/sylva-units with
        chart sylva-units@0.0.0-git+17c529dbc643.1: execution error at (sylva-units/templates/units.yaml:6:31):
        blah'
      observedGeneration: 4
      reason: UpgradeFailed
      status: "False"
      type: HelmReleaseReady
    - lastTransitionTime: "2025-10-07T15:01:00Z"
      message: Sylva-units HelmRelease manifest is up to date
      observedGeneration: 4
      reason: Succeeded
      status: "True"
      type: HelmReleaseUpToDate

Some extra columns will be printed in "wide" mode:

❯ k get sur -A -o wide -w
NAMESPACE          NAME                         AGE    READY   STATUS                             HELMRELEASE UP-TO-DATE   HELMRELEASE READY   HELMRELEASE STATUS
preview-pdr1zbaq   management-cluster-preview   17d    False   some resources are not Ready       True                     False               Helm upgrade failed for release preview-pdr1zbaq/sylva-units with chart sylva-units@0.0.0-git+17c529dbc643.1: execution error at (sylva-units/templates/units.yaml:6:31): blah

These conditions can be used in tests to check for the status of the SylvaUnitsRelease. This will be helpful in the context of sylva-projects/sylva-core!5791 (merged)

Closes #60 (closed)

Edited by Francois Eleouet

Merge request reports

Loading