Is O2 a covalent bond?
Since both oxygen atoms don’t want to lose any valence electrons but want to gain two valence electrons, this means that they must each share two of their own with the other atom. Hence both atoms then have eight valence electrons. But because of their sharing electrons, they are stuck together because neither wants to lose their own two valence electrons. This is a covalent bond.