Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for public IP #373

Merged
merged 1 commit into from
Jan 29, 2024
Merged

feat: add support for public IP #373

merged 1 commit into from
Jan 29, 2024

Conversation

ttosta-google
Copy link
Contributor

Fixes #368

@ttosta-google ttosta-google force-pushed the gh-368-public-ip branch 2 times, most recently from 8eec590 to d0611b3 Compare January 12, 2024 20:41
@ttosta-google ttosta-google marked this pull request as ready for review January 15, 2024 13:47
public enum IpType {
PUBLIC,
PRIVATE,
PSC;
Copy link
Contributor

Choose a reason for hiding this comment

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

We are not adding PSC support to the connectors just yet I believe. I think we want to wait on this until we have tested appropriately...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@@ -78,6 +78,7 @@ public ListenableFuture<ConnectionInfo> getConnectionInfo(

return new ConnectionInfo(
info.getIpAddress(),
info.getPublicIpAddress(),
Copy link
Contributor

Choose a reason for hiding this comment

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

What if an instance does not have a Public IP, does this fail nicely...?

Copy link
Contributor Author

@ttosta-google ttosta-google Jan 17, 2024

Choose a reason for hiding this comment

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

It returns an empty string.

I've updated the connector to raise an exception when IP address is not provided.

Thanks for you review.

Copy link
Member

@enocom enocom left a comment

Choose a reason for hiding this comment

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

Looks great!

@enocom enocom added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 19, 2024
@enocom enocom removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 29, 2024
@ttosta-google ttosta-google merged commit 016065b into main Jan 29, 2024
16 checks passed
@ttosta-google ttosta-google deleted the gh-368-public-ip branch January 29, 2024 17:42
ttosta-google added a commit that referenced this pull request Feb 1, 2024
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.

Add support for Public IP
3 participants