mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-02 20:16:15 -04:00
fix configmap backup during upgrade (#2219)
This commit is contained in:
parent
c7bbf90989
commit
1af13878a0
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ func (u *Upgrader) BackupConfigMap(ctx context.Context, name string) error {
|
|||
}
|
||||
backup := cm.DeepCopy()
|
||||
backup.ObjectMeta = metav1.ObjectMeta{}
|
||||
backup.Name = fmt.Sprintf("%s-backup", backup.Name)
|
||||
backup.Name = fmt.Sprintf("%s-backup", name)
|
||||
if _, err := u.stableInterface.CreateConfigMap(ctx, backup); err != nil {
|
||||
if _, err := u.stableInterface.UpdateConfigMap(ctx, backup); err != nil {
|
||||
return fmt.Errorf("updating backup config map: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue