Commit graph

3 commits

Author SHA1 Message Date
Paul Meyer
1a45c652c1
cli: remove ambiguity in path for CR backups (#1719)
During upgrade all custom resources are backed up to files on the
local file system. Since old versions are also backed up, we need to
reflect the version in the name.

Co-authored-by: Otto Bittner <cobittner@posteo.net>
2023-05-03 15:13:31 +02:00
Paul Meyer
b4a6ee963c
cli: create namespaced folders for upgrade backups (#1702)
Resource names are only unique per kind+ns. Without this patch it
might happen that there are two resources with the same name
in different namespaces. Upgrade might fail in that case.

Co-authored-by: Otto Bittner <cobittner@posteo.net>
2023-05-02 12:57:24 +02:00
Otto Bittner
e7c7e35f51 cli: create backups for CRDs and their resources
These backups could be used in case an upgrade
misbehaves after helm declared it as successful.
The manual backups are required as helm-rollback
won't touch custom resources and changes to CRDs
delete resources of the old version.
2023-01-05 16:52:06 +01:00