In geoplotics no one is permanent friend and enemy . Its the national interest that's permanent. India though aligned with diffrent world powers always had independent foreign policy and in future this will definitely create some uncomfortable moments with USA as its not used to that from its friends and allies. Moreover Indians are not so aggressive militarily in its neighborhood. we have only two enemies in our neighborhood . one is pakistan due to destiny andother is China is by its own choice. Once India become strong militarily there will be a diffrent attitude towards us for sure . Maybe china will change its attitude and decide to be more friendly.
You could be right, but given the kinds of views that the PRC subscribes to; it's anti-democratic, anti-capitalist, anti-human rights, etc... it sees any non-communist country as an enemy that has to be destroyed either now or at a future date. This is the legacy handed down by Mao, that his ultimate goal was to bring down the US and democracy in general. India to the CCP represents 'bourgeoisie capitalism' and even if it reversed its behavior 180 degrees now, it's only a matter of time when they will go back to reliving the 1962 war except full scale, and sponsoring anti-governmental communists in India to seize power. It would just wait for the day the US is defeated and no longer can fight China, and perhaps even the same for Russia, Japan, EU, etc... for it to finally be in the right position to take on India unhampered.
That is the lesson of history with totalitarian governments. The Soviet Union never went to war with America because it knew at the end of the day, and even with Chinas help; the whole world would jump down its throat, and of course the possibility of a nuclear war would become increasingly plausible. They are cold and calculating opportunists similar to the fascists of WWII, taking land and resources slowly until it comes to a point where the world only acts when it is almost too late, and tens of millions of people are killed in an ensuing world war. Communism claims to be the antithesis of imperialism and colonialism, but it was born out of such acts and continues doing them to this day. Communists claimed to be anti-religious, but its very institutions and practices makes its supreme leaders look like saints, prophets, gods, while carrying out blasphemy trials and witch hunts for those who would disagree with the politburo and 'the dear leader.' Communists preach against capitalism and western culture, yet their entire existence now depends on the cultural influence of both. They have and always will be cunning and deceitful, and The CCP were trained and stationed in China by Stalin, just as the Soviet Union would have never existed had it not been for the German Colonial Empire and Austria-Hungary funding the fall of the Romanov dynasty in Russia, during the First World War when the Germans were winning (until the allies starting pushing back the western front). The communists will prop up and support dozens of dictatorships around the world in a few years if they see an opportunity where they are winning against democratic powers, exactly like what happened after the Vietnam War and during the 1980s.
China does need to be contained, and the more hands on deck that participate to ally against them will prevent them from acts of aggression against any of its neighbours or foreign states. Such a move could help bring about an end to communism since China represents the last major basion of it in the world, which would bring the world one step closer to world peace. China could eventually become a democracy later and still retain its image as a major player on the world stage, and help to bring the world closer to peace. Of course this is somewhat idealistic, but it is a possibilty in the long term. India can play a part in this, and would benefit greatly from it. It's only idealistic because people are complacent and prone to moral equivalency in this world, and sometimes are unwilling to fight until a major tyrannical enemy confronts them.