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

OCPBUGS-36185: IBMCloud: Handle pagination for subnets #41

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

cjschaef
Copy link
Member

Add pagination support for subnet lookups.

Related: https://issues.redhat.com/browse/OCPBUGS-36185

@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. labels Jun 26, 2024
@openshift-ci-robot
Copy link

@cjschaef: This pull request references Jira Issue OCPBUGS-36185, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.17.0) matches configured target version for branch (4.17.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @sunzhaohua2

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Add pagination support for subnet lookups.

Related: https://issues.redhat.com/browse/OCPBUGS-36185

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Jun 26, 2024
subnetList, _, err := c.vpcService.ListSubnets(subnetOption)
subnetPager, err := c.vpcService.NewSubnetsPager(subnetOption)
if err != nil {
return "", err
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the error be wrapped with additional context?

Suggested change
return "", err
return "", fmt.Errorf("could not get subnet pager: %w", err)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, I can wrap the error....

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

@JoelSpeed
Copy link
Contributor

/lgtm
/approve
/retest

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 4, 2024
Copy link
Contributor

openshift-ci bot commented Jul 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed

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

The pull request process is described here

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 4, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit c2ea2b4 into openshift:main Jul 4, 2024
8 of 9 checks passed
@openshift-ci-robot
Copy link

@cjschaef: Jira Issue OCPBUGS-36185: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-36185 has been moved to the MODIFIED state.

In response to this:

Add pagination support for subnet lookups.

Related: https://issues.redhat.com/browse/OCPBUGS-36185

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-ibmcloud-machine-controllers-container-v4.17.0-202407041312.p0.gc2ea2b4.assembly.stream.el9 for distgit ose-ibmcloud-machine-controllers.
All builds following this will include this PR.

@cjschaef cjschaef deleted the ocpbugs-36185 branch July 8, 2024 17:02
@cjschaef
Copy link
Member Author

cjschaef commented Jul 8, 2024

/cherry-pick release-4.16 release-4.15 release-4.14 release-4.13 release-4.12

@openshift-cherrypick-robot

@cjschaef: new pull request created: #42

In response to this:

/cherry-pick release-4.16 release-4.15 release-4.14 release-4.13 release-4.12

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. 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