High and fluctuating glucose levels causes changes to the blood vessels that feeds the retina with oxygen and nutrients, which leads to damage to that nerve layer. This damage is called diabetic retinopathy and can lead to blindness.
Reference: www.diabetessa.org.za/why-you-need-to-see-an-optometrist-if-you-have-diabetes