Blood glucose test reliability

In which disease states or at what stages of chronic kidney disease is the HbA1c test no longer reliable?