Migrate gsutil usage to gcloud storage - #2607
Conversation
|
Hi @bhandarivijay-png. Thanks for your PR. I'm waiting for a GoogleCloudPlatform member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
| Write-Output "Generating sbom." | ||
| & "C:\sbomutil.exe" -archetype=windows-image -googet_path 'C:\ProgramData\GooGet' -extra_content="${script:sbom_dir}\" -comp_name="${comp_name}" -output image.sbom.json | ||
| & 'gsutil' -m cp image.sbom.json $gs_path | ||
| & 'gcloud storage cp image.sbom.json $gs_path |
There was a problem hiding this comment.
I believe a single quota is missing here.
| if ($gs_path) { | ||
| Write-Output "Downloading components from $gs_path." | ||
| & 'gsutil' -m cp -r "${gs_path}/*" $script:components_dir | ||
| & 'gcloud storage cp -r "${gs_path}/*" $script:components_dir |
There was a problem hiding this comment.
I believe a single quota is missing here.
There was a problem hiding this comment.
Line 70 is still missing a single quote
& 'gcloud storage cp -r "${gs_path}/" $script:components_dir
-->
& 'gcloud storage cp -r' "${gs_path}/" $script:components_dir
620da42 to
c5e8210
Compare
|
@bkatyl can you review and merge this PR |
| @@ -51,7 +51,7 @@ function Download-Drivers { | |||
| $gs_path = Get-MetadataValue -key 'drivers-path' | |||
| if ($gs_path) { | |||
| Write-Output "Downloading drivers from $gs_path." | |||
| & 'gsutil' -m cp -r "${gs_path}/*" $script:driver_dir | |||
| & 'gcloud storage' cp -r "${gs_path}/*" $script:driver_dir | |||
There was a problem hiding this comment.
This is inconsistent with the other changes. The other changes include the arguments in the literal string
'gcloud storage' cp
-->
'gcloud storage cp -r'
There was a problem hiding this comment.
addressed in all places
There was a problem hiding this comment.
@bkatyl can you merge this PR as well, we don't have permissions
| if ($gs_path) { | ||
| Write-Output "Downloading components from $gs_path." | ||
| & 'gsutil' -m cp -r "${gs_path}/*" $script:components_dir | ||
| & 'gcloud storage cp -r "${gs_path}/*" $script:components_dir |
There was a problem hiding this comment.
Line 70 is still missing a single quote
& 'gcloud storage cp -r "${gs_path}/" $script:components_dir
-->
& 'gcloud storage cp -r' "${gs_path}/" $script:components_dir
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
Co-authored-by: Saswat Padhi <saswat.sourav@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bhandarivijay-png, bkatyl, SaswatPadhi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@SaswatPadhi can you help merge it as well, we don't have permissions to merge |
|
@bhandarivijay-png: The following test failed, say
DetailsInstructions 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. |
Migrate gsutil usage to gcloud storage