-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add Azure support to up space billing get
+ provider-generic refactor
#351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minior nits, but otherwise LGTM
"github.com/upbound/up/internal/usage/model" | ||
) | ||
|
||
var EOF = event.EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this error should be a common error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what you mean, can you elaborate?
This refactors the GCP implementation of `up space billing get` to use a report function that is shared with other providers.
This refactors the AWS implementation of `up space billing get` to use a report function that is shared with other providers.
6387b31
to
98a2920
Compare
Description of your changes
This adds support for Azure blob storage to
up space billing get
. It also refactors the GCS and S3 implementations to use provider-generic code for generating the report.Other things worth noting:
This is a big PR, so see commits for logical groupings of changes.
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR, as appropriate.How has this code been tested
I ran
up space billing get
against sample data with each storage provider. I'll update this with more detail shortly.