Files
cozystack/packages/system
Aleksei Sviridkin 561bc4dc23 fix(etcd): address second review round
- Mark backup.enabled as optional in the values typedef so
  generated JSON schema no longer lists it in 'required'.
  Previously, 'backup: {}' (relying on the enabled:false default)
  failed schema validation at CRD admission.

- Validate backup.destinationPath has s3:// prefix. Without this
  check, passing a path without the scheme silently used the
  first path segment as the bucket name.

- Add tail newline to values.schema.json to match repo convention
  (cozyvalues-gen output lacks it — worth fixing in that project
  separately).

- Add bats setup() that clears tenant-test etcd resources before
  each test so a failure mid-test does not leak into subsequent
  tests. Hardcoded chart-level resource names ('etcd',
  'etcd-s3-creds') make two Etcd apps in the same namespace
  collide; setup() enforces a single owner per test.

- Add dump_diagnostics() helper that dumps operator logs + the
  relevant CRD state on wait-for-ready timeouts, so CI failures
  surface actionable context instead of bare exit code 124.

- Add a third e2e case 'Create Etcd with empty backup block' that
  asserts backup:{} admits and produces no backup resources — a
  regression test for the required:['enabled'] bug fixed here.

Known scope: the upstream EtcdCluster.spec.bootstrap restore field
(also new in v0.4.3) is not exposed through this values.yaml yet.
Restoring a cluster from an existing snapshot is a follow-up PR.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-04-20 16:15:56 +03:00
..
2026-03-25 15:57:25 +05:00
2026-04-16 08:50:30 +00:00
2026-03-25 15:57:25 +05:00
2026-04-16 08:50:30 +00:00
2026-04-16 08:50:30 +00:00
2026-01-20 03:24:32 +01:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-04-16 08:50:30 +00:00
2026-02-10 22:16:11 +01:00
2026-03-25 15:57:25 +05:00
2026-04-16 08:50:30 +00:00
2026-02-10 20:19:03 +01:00
2026-03-25 15:57:25 +05:00
2026-01-15 23:32:41 +00:00
2026-01-20 03:24:32 +01:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-04-16 08:50:30 +00:00
2026-02-17 22:54:12 +01:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-01-20 03:24:32 +01:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-04-16 08:50:30 +00:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-04-14 19:59:19 +05:00
2026-03-25 15:57:25 +05:00