Files
cozystack/hack
Alexey Artamonov 003bc3ed0b test(clickhouse): fail the round-trip when CoreDNS cannot be restored
The round-trip puts the host CoreDNS Corefile back from its EXIT trap,
which runs with errexit off. A refused kubectl replace, for instance a
resourceVersion conflict with another writer, fell through to the
success message and returned 0, so the run stayed green while the
rewrite remained in a cluster-wide object and the next run refused to
start. The restore now returns the failure.

The restore moves into a file of its own so a unit test can run it
against a stubbed kubectl and so other callers can share it.

Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
2026-11-05 21:06:53 +03:00
..