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

DDO-1161 Support for regional PDs #8

Merged
merged 18 commits into from
Apr 6, 2021
Merged

DDO-1161 Support for regional PDs #8

merged 18 commits into from
Apr 6, 2021

Conversation

choover-broad
Copy link
Collaborator

@choover-broad choover-broad commented Mar 25, 2021

👶 's first Golang PR!

This PR updates disk-manager to support setting snapshot policies on regional persistent disks. Previously, only zonal disks were supported; but we've decided to use regional PDs for stateful services in prod because they offer more redundancy.

This PR also adds some unit test coverage and refactors the code a bit to support unit testing. The unit tests I added follow the approach described here for testing code that interacts with the K8s API. Httpmock is used to fake/mock GCP API calls.

@choover-broad choover-broad changed the title DDO-1161 Disk-manager should fail if adding a snapshot policy fails DDO-1161 Support for regional PDs Mar 25, 2021
Copy link
Collaborator

@mflinn-broad mflinn-broad left a comment

Choose a reason for hiding this comment

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

Thanks so much for doing this, this is awesome. Apologies in advance for some of the nitpicks

README.md Show resolved Hide resolved
client/client.go Show resolved Hide resolved
disk.go Outdated Show resolved Hide resolved
disk.go Outdated Show resolved Hide resolved
disk.go Outdated Show resolved Hide resolved
disk.go Outdated Show resolved Hide resolved
disk.go Outdated Show resolved Hide resolved
disk_test.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@mflinn-broad mflinn-broad left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for doing this!!

@choover-broad choover-broad merged commit f2bb34a into main Apr 6, 2021
@choover-broad choover-broad deleted the ch-regional-disks branch April 6, 2021 20:35
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.

None yet

2 participants