-
Notifications
You must be signed in to change notification settings - Fork 47
STOR-2538: Migrate aws sdk to v2 #442
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
base: main
Are you sure you want to change the base?
Conversation
…mod tidy && go mod vendor
…/sts && go mod tidy && go mod vendor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rhrmo The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/retest |
|
|
||
| // Create or update the tags | ||
| _, err := efsClient.TagResource(&efs.TagResourceInput{ | ||
| _, err := efsClient.TagResource(context.TODO(), &efs.TagResourceInput{ |
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.
use ctx from the function arguments
|
wait for https://github.com/openshift/openshift-tests-private/pull/28085 to merge before retesting |
|
/retest |
|
@rhrmo: all tests passed! 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-sigs/prow repository. I understand the commands that are listed here. |
| var resourceIDs []string | ||
| for _, volume := range volumes { | ||
| resourceIDs = append(resourceIDs, aws.String(volume.Spec.CSI.VolumeHandle)) | ||
| resourceIDs = append(resourceIDs, *aws.String(volume.Spec.CSI.VolumeHandle)) |
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.
The original code needed array of pointers, so it needed to create the pointers. Now it just needs strings, so just collect them...
| resourceIDs = append(resourceIDs, *aws.String(volume.Spec.CSI.VolumeHandle)) | |
| resourceIDs = append(resourceIDs, volume.Spec.CSI.VolumeHandle) |
|
/retitle STOR-2538: Migrate aws sdk to v2 |
|
@rhrmo: This pull request references STOR-2538 which is a valid jira issue. In response to this:
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. |
|
PR needs rebase. 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. |
aws sdk ends support of v1, we need to upgrade to v2