KS Eshwarappa to resign