Skip to content

docs(operations): correct the cozy-default backup override path, add backupStorage to the platform values table#621

Closed
Andrey Kolkov (androndo) wants to merge 1 commit into
feat/backup-default-classfrom
docs/3245-backupstorage-override
Closed

docs(operations): correct the cozy-default backup override path, add backupStorage to the platform values table#621
Andrey Kolkov (androndo) wants to merge 1 commit into
feat/backup-default-classfrom
docs/3245-backupstorage-override

Conversation

@androndo

Copy link
Copy Markdown
Contributor

What this PR does

Docs follow-up for cozystack/cozystack#3245, fixed by cozystack/cozystack#3333.

The admin-override example on the Backup Classes page (added by #547) documents a path the cozystack operator silently ignores: spec.components.backupstrategy-controller.values on the Package cozystack.cozystack-platform — that PackageSource exposes only the platform component. cozystack/cozystack#3333 wires the working path: spec.components.platform.values.backupStorage, which the platform chart forwards into the backupstrategy-controller component.

Changes (both in content/en/docs/next/ only):

  • operations/services/backup-classes.md — the override example now uses components.platform.values.backupStorage, with a paragraph explaining the forwarding and calling out the two plausible-looking paths that do not work (the old documented one, and patching the child Package cozystack.backupstrategy-controller directly, which the platform helm-reconcile reverts). Mirrors the upstream docs/operations/backup-classes.md update in fix(platform): forward backupStorage overrides to the backupstrategy-controller Package cozystack#3333.
  • operations/configuration/platform-package.md — the hand-written spec.components.platform.values.* reference table gains the new backupStorage key.

Merge ordering

…backupStorage to the platform values table

The admin-override example on the Backup Classes page told admins to set
spec.components.backupstrategy-controller.values on the
cozystack.cozystack-platform Package, a path the cozystack operator
silently ignores (cozystack/cozystack#3245): that PackageSource exposes
only the platform component. cozystack/cozystack#3333 wires the working
path — spec.components.platform.values.backupStorage — which the
platform chart forwards into the backupstrategy-controller component.

Update the example to the working path, explain the forwarding, call
out the two plausible-looking paths that do not work, and add the new
backupStorage key to the platform-package values reference table.

Only the next/ copy is touched: the v1.4 copy stays as-is until the
cozystack fix is backported, since no working override path exists on
released versions yet.

Assisted-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e7276363-0ba2-4578-9894-5631baf57cef

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/3245-backupstorage-override

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation for configuring backup storage in Cozystack. It documents the backupStorage block under the platform package and corrects the override instructions in the backup classes documentation to target the platform component instead of backupstrategy-controller. The review feedback suggests capitalizing "Cozystack" when referring to the operator to maintain consistency with the rest of the documentation.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

- cozy-velero
```

The platform chart forwards this block into the child `Package cozystack.backupstrategy-controller` as component values, from where the cozystack operator merges it into the `backupstrategy-controller` HelmRelease over the chart defaults. Two paths that look plausible do **not** work: `spec.components.backupstrategy-controller` on the `cozystack.cozystack-platform` Package is silently ignored (the only component under that PackageSource is `platform`), and patching the child `Package cozystack.backupstrategy-controller` directly is reverted whenever the platform helm-reconcile re-renders it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the rest of the documentation, "Cozystack" should be capitalized when referring to the operator (i.e., "Cozystack operator" instead of "cozystack operator").

@androndo

Copy link
Copy Markdown
Contributor Author

Superseded by #622, which combines this fix with #547 on a main-based branch and extends it to the v1.4 docs as well.

Andrey Kolkov (androndo) added a commit that referenced this pull request Jul 20, 2026
…in override path (next + v1.5) (#622)

## What this PR does

Supersedes #547 and #621, combining both into one PR based on `main` and
covering the documentation versions that actually ship the feature:
**`next/` and `v1.5/`**.

**Commit 1** (retarget of #547): simplify the backup guides around the
platform-provided default strategies and the `cozy-default` BackupClass
— a new Backup Classes admin page replaces
`managed-app-backup-configuration.md` and
`velero-backup-configuration.md`, and the applications / virtualization
/ velero-addon guides are rewritten around `backupClassName:
cozy-default`. Applied to `next/` and ported to `v1.5/` (the v1.5 base
pages were identical to the v1.4 ones modulo version refs). **`v1.4/` is
untouched**: release-1.4 does not ship `cozy-default`
(`packages/system/backupstrategy-controller` there has no default
BackupClass/strategy templates and no `backupStorage` values block), so
the v1.4 guides for the manual flow remain correct as they are.

**Commit 2** (override path + review findings, both versions): the
admin-override example documented a path the cozystack operator silently
ignores — `spec.components.backupstrategy-controller.values` on the
`Package cozystack.cozystack-platform` (cozystack/cozystack#3245).
cozystack/cozystack#3333 wires the working path:
`spec.components.platform.values.backupStorage`. In `next/` and `v1.5/`:

- `operations/services/backup-classes.md` — the override example uses
`components.platform.values.backupStorage`, a paragraph explains the
forwarding and calls out the two plausible-looking paths that do **not**
work; the external-S3 section uses the same platform Package path;
`aliases:` frontmatter keeps the deleted pages' permalinks resolving
(the release announcements link them as absolute URLs, which Hugo's ref
checking cannot see).
- `operations/configuration/platform-package.md` — the
`spec.components.platform.values.*` reference table gains the new
`backupStorage` key.
- Review fixes from #622: valid `kubectl wait
--for=jsonpath='{.status.phase}'=Available` readiness checks instead of
the malformed `= Available` tail, `flux reconcile helmrelease
backupstrategy-controller -n cozy-backup-controller` (the namespace the
HelmRelease actually lives in — not `cozy-system`), anchor link for the
FoundationDB caveat, "Starting with v1.4" phrasing, Etcd mentioned in
the tenant guide intro and escalation diagnostics
(`etcd.aenix.io/EtcdBackup`), merged duplicate "See also" bullet.

## Merge ordering

- **Do not merge before cozystack/cozystack#3333 lands** — until then
the documented override path does not work on `main` either.
- The `v1.5/` half additionally assumes cozystack/cozystack#3333 is
**backported to release-1.5** (the feature ships there; only the values
forwarding is missing). #3333 carries the `backport` label for this.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Added a new **Backup Classes** guide for the platform-managed default
`cozy-default` `BackupClass`, covering Postgres, MariaDB, ClickHouse,
and **Etcd**, credential projection, tuning, and
troubleshooting/observability.
* Updated the platform values reference with a **Backup storage**
(`backupStorage`) block for `cozy-default`.
* Refreshed application and virtualization backup/restore docs to use
`cozy-default`, updated cross-references to **Backup Classes**, and
clarified the fresh-cluster availability window.
* Removed legacy documentation pages for Velero and managed-application
backup configuration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant