The Karnataka minister of planning and statistics, who breathed his last at a Bengaluru hospital, had been undergoing treatment for a lung infection for the past two months.