Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix: handle missing flux-operator release during upgrade (#198)
image to test: ``` ghcr.io/aenix-io/cozystack/cozystack:v0.8.0@sha256:48e9f676f4eca5f7036648a56767c31beb0aca8fdc6d6798bd65de74886ed1ef ``` this PR should fix a problem of upgrading from older cozystack version ``` make: Leaving directory '/cozystack/packages/core/platform' deployment.apps/source-controller condition met deployment.apps/helm-controller condition met Error from server (NotFound): helmreleases.helm.toolkit.fluxcd.io "fluxcd" not found NAME CREATED AT helmreleases.helm.toolkit.fluxcd.io 2024-05-29T11:00:16Z helmrepositories.source.toolkit.fluxcd.io 2024-05-29T11:00:17Z make: Entering directory '/cozystack/packages/system/fluxcd-operator' kubectl patch hr -n cozy-fluxcd fluxcd-operator -p '{"spec": {"suspend": true}}' --type=merge --field-manager=flux-client-side-apply Error from server (NotFound): helmreleases.helm.toolkit.fluxcd.io "fluxcd-operator" not found make: *** [../../../scripts/package-system.mk:20: suspend] Error 1 make: Leaving directory '/cozystack/packages/system/fluxcd-operator' time="2024-07-04T12:50:05Z" level=fatal msg="failed to run" err="exit status 2" ```
- Loading branch information