Support a flag to ignore non-existing instances. Currently script terminate with error errors parsing config: googleapi: Error 404: The Cloud SQL instance does not exist., instanceDoesNotExist when non-existing instances specified. In the event of disaster recovery, a database replica will be promoted and the old master instance will be deleted. App has embeded failover mechanism that will auto connect to the new master instance without us changing the code and redeploy. However if cloudsql proxy is restarted by any chance, the container will keep crashing because of this error. This will requires us to change the code and redeploy. It will helpful to disaster recovery if we can introduce a flag to ignore non-existing instances during startup
Feature Description
Support a flag to ignore non-existing instances. Currently script terminate with error
errors parsing config: googleapi: Error 404: The Cloud SQL instance does not exist., instanceDoesNotExist
when non-existing instances specified. In the event of disaster recovery, a database replica will be promoted and the old master instance will be deleted. App has embeded failover mechanism that will auto connect to the new master instance without us changing the code and redeploy. However if cloudsql proxy is restarted by any chance, the container will keep crashing because of this error. This will requires us to change the code and redeploy. It will helpful to disaster recovery if we can introduce a flag to ignore non-existing instances during startupSample code
Alternatives Considered
No response
Additional Details
No response