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: azure GC supports cleanup for multiple subscriptions #129058

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

DarrylWong
Copy link
Contributor

@DarrylWong DarrylWong commented Aug 15, 2024

Previously Azure GC assumed that only one subscription ID would be used at a time. However the current structure of our Azure subscriptions makes a distinction between user "adhoc" roachprod clusters and nightly "infra" clusters. As a result, roachprod clusters can live in two different subscriptions.

This change adds the azure-subscription-name flag to support cleaning up in multiple subscriptions.

Additionally it also switches the default subscription ID to e2e-adhoc, which is what users should use.

Fixes: #129057
Release note: none
Epic: none

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@DarrylWong DarrylWong force-pushed the azure-multiple-gc branch 3 times, most recently from 4788a67 to a3d4a39 Compare August 16, 2024 16:58
@DarrylWong DarrylWong marked this pull request as ready for review August 16, 2024 19:08
@DarrylWong DarrylWong requested a review from a team as a code owner August 16, 2024 19:09
@DarrylWong DarrylWong requested review from nameisbhaskar and renatolabs and removed request for a team August 16, 2024 19:09
@DarrylWong
Copy link
Contributor Author

DarrylWong commented Aug 18, 2024

Actually this won't work because it exposes the subscription ID in the yaml file which according to Dev inf = not good. Will need to take in the subscription name and iterate for the ID instead. (Done)

@DarrylWong DarrylWong marked this pull request as draft August 18, 2024 17:23
@DarrylWong DarrylWong force-pushed the azure-multiple-gc branch 3 times, most recently from 79834f0 to 7d36bde Compare August 19, 2024 15:25
Previously Azure GC assumed that only one subscription ID would
be used at a time. However the current structure of our Azure
subscriptions makes a distinction between user "adhoc" roachprod
clusters and nightly "infra" clusters. As a result, roachprod
clusters can live in two different subscriptions.

This change adds the azure-subscription-names flag to support
cleaning up in multiple Azure subscriptions.

Additionally it also switches the default subscription to
e2e-adhoc, which is what users should use.
@DarrylWong DarrylWong marked this pull request as ready for review August 19, 2024 15:36
@DarrylWong
Copy link
Contributor Author

TFTR!

bors r=srosenberg

@craig craig bot merged commit 27dc4e6 into cockroachdb:master Aug 20, 2024
22 of 23 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.

roachprod gc: enable cluster cleanup for multiple azure subscriptions
3 participants