From 69493839cc4610ed838428cb08916d10f6e73765 Mon Sep 17 00:00:00 2001 From: Arkadiusz Galwas Date: Fri, 2 Aug 2024 11:40:01 +0200 Subject: [PATCH] Stopped saving shoot on upgrade --- .../controller/runtime/fsm/runtime_fsm_patch_shoot.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/internal/controller/runtime/fsm/runtime_fsm_patch_shoot.go b/internal/controller/runtime/fsm/runtime_fsm_patch_shoot.go index 5fd72721..df5ab25d 100644 --- a/internal/controller/runtime/fsm/runtime_fsm_patch_shoot.go +++ b/internal/controller/runtime/fsm/runtime_fsm_patch_shoot.go @@ -49,11 +49,6 @@ func sFnPatchExistingShoot(ctx context.Context, m *fsm, s *systemState) (stateFn "Shoot is pending", ) - shouldDumpShootSpec := m.PVCPath != "" - if shouldDumpShootSpec { - return switchState(sFnDumpShootSpec) - } - return updateStatusAndRequeueAfter(gardenerRequeueDuration) } @@ -63,13 +58,13 @@ func convertShoot(instance *imv1.Runtime, cfg shoot.ConverterConfig) (gardener.S } converter := gardener_shoot.NewConverter(cfg) - shoot, err := converter.ToShoot(*instance) + newShoot, err := converter.ToShoot(*instance) if err == nil { - setObjectFields(&shoot) + setObjectFields(&newShoot) } - return shoot, err + return newShoot, err } // workaround