Its not an infection - it's inflammation in the front part of the eye. Most likely no underlying cause beyond bad luck. Shouldn't have any impact on your flying but perhaps best to get the precise name of the condition from your consultant if the CAA want more info.