Skip to content

Commit

Permalink
Stopped saving shoot on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
akgalwas committed Aug 2, 2024
1 parent 1eb5953 commit 6949383
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions internal/controller/runtime/fsm/runtime_fsm_patch_shoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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
Expand Down

0 comments on commit 6949383

Please sign in to comment.