Drcrossfire, did this guy shed recently? My chameleon recently had an issue where I believe some stuck shed on his inner eyelid caused some irritation. There was a bit of discharge which dried into a little crust on his eye. Drove him nuts and he was rubbing his eye on everything to get the crust off. I let him rub his eye on my finger and the crust eventually popped off. Gave him some extra long showers that week and have not seen discharge since.
*My guy does have a persistent eye issue that does not go away (despite treatment), but I believe the discharge was unrelated to the underlying eye condition due to the fact that there has been no further discharge from the eye.
This is just one possibility. It could have also formed from some other debris irritating the eye. As others have stated vitamin A deficiency is a cause of eye problems although I don't understand why that would cause discharge or the formation of eye goobers, but I don't have experience with that so I can't say that it's not a possibility.
Hopefully your flushing and cleaning it away is that last you'll see of it!