I am a type 2 diabetic and noticed the white part of my eyes are yellow. Could this be related

See your doctor. This is one of those problems where a visit to your doctor is necessary to figure out what's going on. Only after a thorough evaluation, including examination and possibly labs and other tests, can your doctor correctly diagnose you and treat you effectively.