The reason of the
kidney infection may be because of prevailing
Diabetes or even hyperglycemia(excess of sugar in blood and/or urine; if you are suffering from hypertension(
high blood pressure) or even the lack of intake of sufficient water.
Thorough investigations can decide the exact cause of kidney infection. Excess of salt and sugar intake alone can hardly causes infection of thr kidney provided you are having anything which I mentioned earlier.