Skip to content

Migrate gsutil usage to gcloud storage - #2607

Open
bhandarivijay-png wants to merge 14 commits into
GoogleCloudPlatform:masterfrom
bhandarivijay-png:compute-image-demo
Open

Migrate gsutil usage to gcloud storage #2607
bhandarivijay-png wants to merge 14 commits into
GoogleCloudPlatform:masterfrom
bhandarivijay-png:compute-image-demo

Conversation

@bhandarivijay-png

Copy link
Copy Markdown
Contributor

Migrate gsutil usage to gcloud storage

@google-oss-prow

Copy link
Copy Markdown

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@cadieuxnicolas51-cloud

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bhandarivijay-png
Once this PR has been reviewed and has the lgtm label, please assign dorileo for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe a single quota is missing here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

resolved

Comment thread daisy_workflows/image_build/windows/bootstrap_install.ps1 Outdated
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe a single quota is missing here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

resolved

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@gurusai-voleti

Copy link
Copy Markdown
Contributor

@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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is inconsistent with the other changes. The other changes include the arguments in the literal string

'gcloud storage' cp
-->
'gcloud storage cp -r'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

addressed in all places

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread daisy_workflows/image_build/sqlserver/sql_install.ps1 Outdated
Comment thread daisy_workflows/image_build/sqlserver/sql_install.ps1 Outdated
Comment thread daisy_workflows/image_build/sqlserver/sql_install.ps1 Outdated
Comment thread daisy_workflows/image_build/sqlserver/sql_install.ps1 Outdated
Comment thread daisy_workflows/image_build/sqlserver/sql_install.ps1 Outdated
Comment thread daisy_workflows/image_build/sqlserver/sql_install.ps1 Outdated
Comment thread daisy_workflows/image_build/windows/bootstrap_install.ps1 Outdated
Comment thread daisy_workflows/image_build/windows/bootstrap_install.ps1 Outdated
Comment thread daisy_workflows/image_build/windows/bootstrap_install.ps1 Outdated
gurusai-voleti and others added 9 commits June 9, 2026 09:39
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>
@google-oss-prow google-oss-prow Bot added the lgtm label Jun 9, 2026
@google-oss-prow

Copy link
Copy Markdown

[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

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

@gurusai-voleti

Copy link
Copy Markdown
Contributor

@SaswatPadhi can you help merge it as well, we don't have permissions to merge

@google-oss-prow

Copy link
Copy Markdown

@bhandarivijay-png: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
prow/presubmit/sbom_windows aafa6b4 link true /sbom_windows
Details

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants