cozystack/scripts
Andrei Kvapil acc6ed26bb
fix(platform): fix migrations for v0.40 release (#1846)
## What this PR does

Fixes migration scripts for v0.40 release to ensure smooth upgrade
process.

Changes:
- **Migration 20**: Replace `helm upgrade --install` with `cozyhr apply`
for cozystack-controller and lineage-controller-webhook
- **Migration 21**: Improve Flux instance removal process:
  - Disable reconciliation on FluxInstance before deletion
  - Delete Flux deployments before HelmReleases
  - Add `--wait=false` flags to prevent hanging
  - Fix CRD grep pattern to properly match `fluxcd.io` domains
- **Migration 22**: Add new migration tasks:
- Migrate Victoria Metrics Operator CRDs to prometheus-operator-crds
Helm release
  - Remove CozyStack Resource Definitions HelmRelease
- Add default version v17 to PostgreSQL HelmReleases without explicit
version

### Release note

```release-note
[platform] Fix migration scripts for v0.40 release: improve Flux removal, add VictoriaMetrics CRD migration, set default PostgreSQL version
```
2026-01-10 01:52:12 +01:00
..
migrations fix(platform): fix migrations for v0.40 release (#1846) 2026-01-10 01:52:12 +01:00
common-envs.mk [cilium] Update Cilium to v1.18.5 (#1769) 2026-01-09 14:53:59 +01:00
installer.sh [fluxcd] Add flux-aio module and migration (#1698) 2026-01-09 14:52:40 +01:00
issue-flux-certificates.sh [fluxcd] Add flux-aio module and migration (#1698) 2026-01-09 14:52:40 +01:00
package.mk [installer,dx] Rename cozypkg to cozyhr (#1763) 2026-01-09 14:53:59 +01:00