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

Use a single resource group for all SRE resources #2014

Conversation

jemrobinson
Copy link
Member

✅ Checklist

  • You have given your pull request a meaningful title (e.g. Enable foobar integration rather than 515 foobar).
  • You are targeting the appropriate branch. If you're not certain which one this is, it should be develop.
  • Your branch is up-to-date with the target branch (it probably was when you started, but it may have changed since then).

🚦 Depends on

n/a

⤴️ Summary

Use a single Azure resource group for all SRE resources

🌂 Related issues

n/a

🔬 Tests

Tested on a new SRE deployment

@jemrobinson jemrobinson requested a review from a team as a code owner July 15, 2024 13:12
Copy link

github-actions bot commented Jul 15, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  data_safe_haven/infrastructure/components/composite
  local_dns_record.py 18
  data_safe_haven/infrastructure/programs
  declarative_sre.py 133
  data_safe_haven/infrastructure/programs/sre
  apt_proxy_server.py 37
  backup.py 20
  data.py 77-78
  database_servers.py 35
  dns_server.py 39
  gitea_server.py 58
  hedgedoc_server.py 52, 61
  identity.py 45
  monitoring.py 34
  networking.py 47, 52, 1842
  remote_desktop.py 76
  software_repositories.py 48
  user_services.py 62
  workspaces.py 64
Project Total  

This report was generated by python-coverage-comment-action

@jemrobinson jemrobinson force-pushed the simplify-sre-resource-groups branch from 3c87121 to 8c44381 Compare July 15, 2024 13:20
@jemrobinson jemrobinson force-pushed the simplify-sre-resource-groups branch from 8c44381 to 53c1d82 Compare July 15, 2024 13:24
@jemrobinson jemrobinson requested review from a team, JimMadge and craddm July 15, 2024 13:25
Copy link
Member

@JimMadge JimMadge left a comment

Choose a reason for hiding this comment

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

Is there an advantage to this?

I'm not sure if it is better for findability to have one RG per SRE or many RGs for different types of resource. @craddm what do you think?

@craddm
Copy link
Contributor

craddm commented Jul 15, 2024

Is there an advantage to this?

I'm not sure if it is better for findability to have one RG per SRE or many RGs for different types of resource. @craddm what do you think?

I was just wondering exactly the same thing - I feel like things will get buried.

@jemrobinson
Copy link
Member Author

It's a good question. I mildly prefer one resource group for the whole SRE just because some of our existing resource groups either only have a single resource in them (e.g. apt proxy server and backup) or refer to resources in other groups. There's currently not a clean separation between what lives in each resource group (apart from the fact that they're deployed from a single Component) and it's actually a bit annoying to keep switching RGs when trying to debug something.

However, this isn't something I feel very strongly about, so happy to drop it if you both prefer.

@JimMadge
Copy link
Member

Might ask to hang back on merging until #1892 is merged to avoid the conflicts.

@jemrobinson jemrobinson requested a review from JimMadge July 23, 2024 10:09
@jemrobinson
Copy link
Member Author

Thoughts @JimMadge @craddm ?

  • arguments for:
    • fewer resources to deploy (and correspondingly less code)
    • easier to find things in the portal
    • no confusion about which resources live in which RG
  • arguments against:
    • lots of resources in a single RG

@craddm
Copy link
Contributor

craddm commented Jul 23, 2024

Thoughts @JimMadge @craddm ?

  • arguments for:

    • fewer resources to deploy (and correspondingly less code)
    • easier to find things in the portal
    • no confusion about which resources live in which RG
  • arguments against:

    • lots of resources in a single RG

I think the "lots of resources in a single RG" point slightly contradicts the "easier to find things in the portal" point, but I have to admit I sometimes am unsure which resources live in which RG, just like you say.

I'm actually sort of coming round to the single RG viewpoint, having just gone back to the portal and realized you can sort by type etc

@jemrobinson
Copy link
Member Author

Watching how other people use the portal, I think it's quite rare to have the "RGs are folders" mindset. Mostly people search by name or type (or occasionally by tag).

Copy link
Contributor

@craddm craddm left a comment

Choose a reason for hiding this comment

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

Now we've got a few SREs up at once, i'm just running a test deployment with this, and I think I'm converted. As said above, can easily group by type or other fields, or even (shock horror) just filter

@jemrobinson jemrobinson merged commit 2fd9134 into alan-turing-institute:develop Jul 23, 2024
11 checks passed
@jemrobinson jemrobinson deleted the simplify-sre-resource-groups branch January 30, 2025 11:47
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