I think you should better not wear the foundation when you have the pink eyes. If it gets into the eyes unconsciously, your pink eyes will get serious. You'd better treat your pink eyes first. You could use the eye drops with anti-inflammation to moisture the eyes. Then you could do the warm compress often to make the eyes get comfortable.
Ok, it looks like you are cared about your looks more than your eye health, not a good sign. Anyway, you should know that pink eyes is a very serious problem which could affect both our life and work. What's more, it is communicable to others if you are careless! Thus, I suggest that you stop applying foundation until you are recovered, for those stuff are irritative and could make the situation worse. Just get to meet a doctor.
Well, in my opinion, you are not supposed to have foundation when you suffer from pink eye. Generally speaking, pink eye is a kind of eye infection, which can be just caused by viruses, bacteria, irritants, allergies. In common, there are some symptoms which can just occur. For example, one of your eyes, or both of your eyes will be red, itchy, even burning. And at this time, if you wear foundation which is made from chemical material, it will just make your situation more serious. So just give up it. Also, you should keep your eyes far from infection resource. By the way, you can just try rose water.