mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-07 06:22:17 -04:00
cli: save Helm charts to disk before running upgrades (#2305)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
6cb506bca7
commit
94a7b9e7b2
6 changed files with 144 additions and 3 deletions
|
@ -422,6 +422,13 @@ func (u *upgradeApplyCmd) handleServiceUpgrade(
|
|||
}
|
||||
}
|
||||
|
||||
// Save the Helm charts for the upgrade to disk
|
||||
chartDir := filepath.Join(upgradeDir, "helm-charts")
|
||||
if err := executor.SaveCharts(chartDir, u.fileHandler); err != nil {
|
||||
return fmt.Errorf("saving Helm charts to disk: %w", err)
|
||||
}
|
||||
u.log.Debugf("Helm charts saved to %s", chartDir)
|
||||
|
||||
if includesUpgrades {
|
||||
u.log.Debugf("Creating backup of CRDs and CRs")
|
||||
crds, err := u.kubeUpgrader.BackupCRDs(cmd.Context(), upgradeDir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue