Skip to content

OSD-4804 service-quota --all-regions#74

Merged
openshift-merge-robot merged 6 commits intoopenshift:masterfrom
drewandersonnz:OSD4804-servicequota-all-regions
Jan 13, 2021
Merged

OSD-4804 service-quota --all-regions#74
openshift-merge-robot merged 6 commits intoopenshift:masterfrom
drewandersonnz:OSD4804-servicequota-all-regions

Conversation

@drewandersonnz
Copy link
Member

Allow use of --all-regions to loop through supported regions and apply servicequota commands in sequence

@drewandersonnz drewandersonnz changed the title OSD-4804 servicequota --all-regions OSD-4804 service-quota --all-regions Dec 1, 2020
@drewandersonnz drewandersonnz requested review from iamkirkbater and rogbas and removed request for fahlmant December 3, 2020 11:39
@drewandersonnz drewandersonnz force-pushed the OSD4804-servicequota-all-regions branch from 3938fbc to d87bfdb Compare December 7, 2020 16:24
Copy link
Contributor

@drpaneas drpaneas left a comment

Choose a reason for hiding this comment

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

Great work @drewandersonnz :D Thank you very much for your time working on this and excellent work on writing tests for for common.go. Please see my comments on the review, here's a summary:

  • I think we need to provide a better comment for the GetSupportRegions as it's not clear to me how it behaves unless I read your tests.
  • Some minor optional syntactical glitches
  • Some function calls return values you don't check.
  • There is no testing for update.go and describe.go. We can consider putting that in another PR, so we don't block this one, since there was no testing before either for those files. I really have a bad feeling, because I think I saw functions no used and some dead code. Oh well ...

I'm open to discussion for any of the points :)

Remove excess variables and re-scope
Update GetSupportedRegions comment for clarity
@drewandersonnz drewandersonnz force-pushed the OSD4804-servicequota-all-regions branch from c0365b7 to b47f245 Compare December 24, 2020 08:34
@drewandersonnz
Copy link
Member Author

@drpaneas @rogbas this should be in a state for review and merge now, I have tidied this from @drpaneas 's previous comments.

@drpaneas
Copy link
Contributor

Thanks Drew I will check it soon

Copy link
Contributor

@drpaneas drpaneas 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 any particular reason we need the commented code?

@drpaneas
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 12, 2021
Copy link

@rogbas rogbas left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

// GetSupportedRegions returns a []string of all supported regions if found and an error. Filtering for a single region is also supported.
func GetSupportedRegions(filter string, allRegions bool) ([]string, error) {
var results []string
for i := range awsv1alpha1.CoveredRegions {
Copy link

Choose a reason for hiding this comment

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

Nice, I like how it's consuming from the main AWS account operator code.

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: drewandersonnz, drpaneas, rogbas

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 13, 2021
@openshift-merge-robot openshift-merge-robot merged commit 9fbd9c8 into openshift:master Jan 13, 2021
@drewandersonnz drewandersonnz deleted the OSD4804-servicequota-all-regions branch January 14, 2021 07:07
devppratik pushed a commit to devppratik/osdctl that referenced this pull request Aug 23, 2023
…ota-all-regions

OSD-4804 service-quota --all-regions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants