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

CORS-3254: Update google.golang.org/api/cloudresourcemanager library version #8213

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

bharath-b-rh
Copy link
Contributor

@bharath-b-rh bharath-b-rh commented Mar 28, 2024

This is a continuation of code changes made in #7279 PR where cloudresourcemanager was updated in one of the internal packages and in this PR it is updated other packages using it.

Along with updating the library version, the APIs are also updated/replaced with the new offering from the library.

Make use of the constant ClusterIDLabelFmt defined in pkg/constants/gcp/gcp.go for deriving the label name added to GCP resources created for OpenShift cluster, instead of re-declaring at multiple places.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Mar 28, 2024

@bharath-b-rh: This pull request references CORS-3254 which is a valid jira issue.

In response to this:

This is a continuation of code changes made in #7279 PR where cloudresourcemanager was updated in one of the internal packages and in this PR it is updated other packages using it.

Along with updating the library version, the APIs are also updated/replaced with the new offering from the library.

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-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 28, 2024
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 30, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 1, 2024
@bharath-b-rh
Copy link
Contributor Author

/cc @r4f4

@openshift-ci openshift-ci bot requested a review from r4f4 April 1, 2024 06:22
@r4f4
Copy link
Contributor

r4f4 commented Apr 1, 2024

/uncc @jhixson74
/cc @bfournie @barbacbd
To check if anything needs to be done on the capg side.

@openshift-ci openshift-ci bot requested review from barbacbd and bfournie and removed request for jhixson74 April 1, 2024 07:41

tagValuesService := cloudresourcemanager.NewTagValuesService(service)

return tagValuesService.GetNamespaced().
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we wrap the possible errors here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

suggestion incorporated.

}
return nil
}); err != nil {
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrap the error here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

suggestion incorporated.

"k8s.io/apimachinery/pkg/util/sets"
)

const (
// projectNameFmt is the format string for project resource name.
projectNameFmt = "projects/%s"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is now defined multiple times, consider moving somewhere that both parts of the package can use it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

suggestion incorporated.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 3, 2024

@bharath-b-rh: This pull request references CORS-3254 which is a valid jira issue.

In response to this:

This is a continuation of code changes made in #7279 PR where cloudresourcemanager was updated in one of the internal packages and in this PR it is updated other packages using it.

Along with updating the library version, the APIs are also updated/replaced with the new offering from the library.

Make use of the constant ClusterIDLabelFmt defined in pkg/constants/gcp/gcp.go for deriving the label name added to GCP resources created for OpenShift cluster, instead of re-declaring at multiple places.

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.

Copy link
Contributor

@barbacbd barbacbd left a comment

Choose a reason for hiding this comment

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

/lgtm

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

r4f4 commented Apr 11, 2024

/approve

Copy link
Contributor

openshift-ci bot commented Apr 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: r4f4

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 Apr 11, 2024
Copy link
Contributor

openshift-ci bot commented Apr 11, 2024

@bharath-b-rh: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-e2e-aws-ovn-upgrade b9c61f2 link false /test okd-e2e-aws-ovn-upgrade
ci/prow/e2e-gcp-secureboot b9c61f2 link false /test e2e-gcp-secureboot

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD a6f102c and 2 for PR HEAD b9c61f2 in total

@openshift-merge-bot openshift-merge-bot bot merged commit 8995dd6 into openshift:master Apr 11, 2024
24 of 26 checks passed
@bharath-b-rh bharath-b-rh deleted the cors-3254 branch July 1, 2024 09:23
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/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