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

roachprod: only register services when applicable #120141

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

herkolategan
Copy link
Collaborator

Previously, DNS services for clusters would be registered in all cases. This can lead to some scenarios where roachprod is unable to correctly determine the port of a service.

When a cluster is created in a custom GCP project (non-default project) the roachprod garbage collector will destroy the records as it determines it has nothing to tie the resources to since it has no visibility of the custom project.

As we currently do not test virtual clusters on AWS or Azure, these have also been excluded, because these providers do not specify using the Google Cloud DNS Provider yet. For that reason, there is no point in trying to register services.

Epic: None
Release Note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@herkolategan herkolategan force-pushed the hbl/roachprod-dns-limits branch from 3c42e93 to a5f56f1 Compare March 8, 2024 18:54
@herkolategan herkolategan marked this pull request as ready for review March 8, 2024 18:54
@herkolategan herkolategan requested a review from a team as a code owner March 8, 2024 18:54
@herkolategan herkolategan requested review from srosenberg and renatolabs and removed request for a team March 8, 2024 18:54
@herkolategan herkolategan force-pushed the hbl/roachprod-dns-limits branch 6 times, most recently from 6f91a73 to 6e296c9 Compare March 8, 2024 19:14
Previously, DNS services for clusters would be registered in all cases. This can
lead to some scenarios where `roachprod` is unable to correctly determine the
port of a service.

When a cluster is created in a custom GCP project (non-default project) the
`roachprod` garbage collector will destroy the records as it determines it has
nothing to tie the resources to since it has no visibility of the custom
project.

As we currently do not test virtual clusters on AWS or Azure, these have also
been excluded, because these providers do not specify using the Google Cloud DNS
Provider yet. For that reason, there is no point in trying to register services.

Epic: None
Release Note: None
Copy link
Contributor

@renatolabs renatolabs left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @srosenberg)

@herkolategan
Copy link
Collaborator Author

TFTRs!

bors r=renatolabs,srosenberg

@herkolategan
Copy link
Collaborator Author

bors cancel

@craig
Copy link
Contributor

craig bot commented Mar 11, 2024

Canceled.

@herkolategan
Copy link
Collaborator Author

bors r=renatolabs,srosenberg

@craig
Copy link
Contributor

craig bot commented Mar 11, 2024

Build succeeded:

@craig craig bot merged commit df1220b into cockroachdb:master Mar 11, 2024
18 of 19 checks passed
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.

4 participants