mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
fix configmap backup during upgrade (#2219)
This commit is contained in:
parent
c7bbf90989
commit
1af13878a0
@ -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…
Reference in New Issue
Block a user