Files
cozystack/packages/core/platform/sources/backupstrategy-controller.yaml
T
Aleksei Sviridkin ee853b00bd fix(platform): order backupstrategy-controller after cozystack-basics
backupstrategy-controller creates the cozy-backups Bucket into the
tenant-root namespace, which cozystack-basics provisions. On a fresh
install the Bucket patch can race namespace creation and fail with
`namespaces "tenant-root" not found`, which then races the install
wait deadline and fails the run — on changes that have nothing to do
with backup ordering. Add the cozystack-basics dependsOn edge so the
target namespace exists first, pinned with a helm-unittest regression
guard.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-06-24 22:34:09 +03:00

42 lines
1.6 KiB
YAML

---
apiVersion: cozystack.io/v1alpha1
kind: PackageSource
metadata:
name: cozystack.backupstrategy-controller
spec:
sourceRef:
kind: OCIRepository
name: cozystack-packages
namespace: cozy-system
path: /
variants:
- name: default
# backupstrategy-controller now ships:
# - the cozy-default BackupClass (CRD from backup-controller)
# - the cozy-backups apps.cozystack.io/Bucket (CRD from bucket-application via objectstorage-controller)
# - the cozy-default Velero BackupStorageLocation (CRD from velero)
# All three must be installed before the templates render, otherwise
# the Helm release fails with "no matches for kind". Order is enforced
# via dependsOn so a fresh-cluster bootstrap cannot race the CRDs.
#
# The cozy-backups Bucket is also created INTO the tenant-root namespace,
# which is provisioned by cozystack-basics (the static tenant-root release).
# Without the cozystack-basics edge the Bucket patch can race namespace
# creation on a fresh install and fail with `namespaces "tenant-root" not
# found`, which then races the install script's wait deadline. Depend on
# cozystack-basics so the target namespace exists first.
dependsOn:
- cozystack.networking
- cozystack.cozystack-basics
- cozystack.backup-controller
- cozystack.bucket-application
- cozystack.objectstorage-controller
- cozystack.velero
components:
- name: backupstrategy-controller
path: system/backupstrategy-controller
install:
privileged: true
namespace: cozy-backup-controller
releaseName: backupstrategy-controller