Yeddyurappa bargains before resignation