apply.sh stuck on sylvactl watch
Summary
After apply.sh, the deployment is stuck on:
🎯 Trigger reconciliation of units
trigger reconciliation of sylva-units HelmRelease...
helmrelease.helm.toolkit.fluxcd.io/sylva-units annotated
watching resources on namespace: sylva-system
Since we're now using the sylva-units-operator since !4101 (merged) was merged, we're producing a new git repo for each new deployed version. The issue is that while upgrading to version n+1, the HelmChart object won't be updated since the HelmRelease is suspended:
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmChart
metadata:
annotations:
reconcile.fluxcd.io/requestedAt: 2025-10-20T09:50:34
sylvactl/reconcileCompletedAt.18.8FTGC0: 2025-10-20T09:49:31
sylvactl/reconcileCompletedAt.19.8FTGC0: 2025-10-20T09:49:59
sylvactl/reconcileCompletedAt.21.VqK75k: 2025-10-20T09:50:34
sylvactl/reconcileStartedAt.16.LNspi5: 2025-10-16T15:31:45
sylvactl/reconcileStartedAt.16.a4ZAPh: 2025-10-16T15:32:16
sylvactl/reconcileStartedAt.17.8FTGC0: 2025-10-20T09:49:31
sylvactl/reconcileStartedAt.18.8FTGC0: 2025-10-20T09:49:31
sylvactl/reconcileStartedAt.19.8FTGC0: 2025-10-20T09:49:31
sylvactl/reconcileStartedAt.20.VqK75k: 2025-10-20T09:50:34
sylvactl/reconcileStartedAt.21.VqK75k: 2025-10-20T09:50:34
creationTimestamp: "2025-09-07T13:15:49Z"
finalizers:
- finalizers.fluxcd.io
generation: 22
labels:
helm.toolkit.fluxcd.io/name: sylva-units
helm.toolkit.fluxcd.io/namespace: sylva-system
name: sylva-system-sylva-units
namespace: sylva-system
resourceVersion: "82037706"
uid: 54324f3c-14c3-49b0-8670-bedc19929425
spec:
chart: charts/sylva-units
interval: 30m0s
reconcileStrategy: Revision
sourceRef:
kind: GitRepository
name: sylva-units-21e65c47 # <<<<<< still refering to the onld repo of version n
suspend: true
valuesFiles:
- charts/sylva-units/values.yaml
- charts/sylva-units/management.values.yaml
version: '*'
status:
artifact:
digest: sha256:c0ed9aad5abd9837f798e00e143c93f8b55e1f8ff6554efd00283ef85006a7d5
lastUpdateTime: "2025-10-20T09:50:34Z"
path: helmchart/sylva-system/sylva-system-sylva-units/sylva-units-0.0.0-git+c7209a12d636.21.tgz
revision: 0.0.0-git+c7209a12d636.21
size: 153255
url: http://source-controller.flux-system.svc.cluster.local./helmchart/sylva-system/sylva-system-sylva-units/sylva-units-0.0.0-git+c7209a12d636.21.tgz
conditions:
- lastTransitionTime: "2025-10-20T09:50:34Z"
message: packaged 'sylva-units' chart with version '0.0.0-git+c7209a12d636.21'
and merged values files [charts/sylva-units/values.yaml charts/sylva-units/management.values.yaml]
observedGeneration: 22
reason: ChartPackageSucceeded
status: "True"
type: Ready
- lastTransitionTime: "2025-10-20T09:50:34Z"
message: packaged 'sylva-units' chart with version '0.0.0-git+c7209a12d636.21'
and merged values files [charts/sylva-units/values.yaml charts/sylva-units/management.values.yaml]
observedGeneration: 21
reason: ChartPackageSucceeded
status: "True"
type: ArtifactInStorage
lastHandledReconcileAt: 2025-10-20T09:50:34
observedChartName: sylva-units
observedGeneration: 22
observedSourceArtifactRevision: sha1:c7209a12d636e09264db8a61890ec8a61508889b
url: http://source-controller.flux-system.svc.cluster.local./helmchart/sylva-system/sylva-system-sylva-units/latest.tar.gz
And as the previous repo is pruned by the operator, sylvactl will consider that this obect has a missing dependency, so it won't try to reconcile it (and won't resume sylva-units).
!5791 (merged) should fix that.