Do not despair. Many dogs live for several productive years with Kidney failure. There are many things you can do. There are special diets, supplements and especially important is SubQ fluid injected under the skin. Check out this website for great info:
Kidney Disease