Skip to content

Conversation

@jackwotherspoon
Copy link
Collaborator

Add a new IP type IPTypes.PSC to support connections to Cloud SQL using private service connect.

@jackwotherspoon jackwotherspoon self-assigned this Jun 19, 2023
@jackwotherspoon jackwotherspoon marked this pull request as ready for review July 5, 2023 14:41
@jackwotherspoon jackwotherspoon requested a review from a team as a code owner July 5, 2023 14:41
addr_info = await self._loop.getaddrinfo(
ip_address, None, family=socket.AF_INET
)
ip_address = addr_info[0][4][0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment here about these numbers would help. Also, do you see any reason to guard against these indexes being null?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll throw in an error message if the list is empty saying "Could not resolve PSC DNS name into IP addresss" or something

@jackwotherspoon jackwotherspoon merged commit c238fe3 into main Jul 6, 2023
@jackwotherspoon jackwotherspoon deleted the psc-support branch July 6, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants