-
Notifications
You must be signed in to change notification settings - Fork 1.7k
chore: Migrate gsutil usage to gcloud storage #10002
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -68,7 +68,7 @@ HELM_URL=https://get.helm.sh/helm-${HELM_VERSION}-linux-${ARCH}.tar.gz | |||||
| wget -q -O helm.tar.gz "${HELM_URL}" | ||||||
|
|
||||||
| # upload the binary to skaffold gcs bucket | ||||||
| gsutil -q cp helm.tar.gz gs://skaffold/deps/helm/helm-${HELM_VERSION}-linux-amd64.tar.gz | ||||||
| gcloud storage cp helm.tar.gz gs://skaffold/deps/helm/helm-${HELM_VERSION}-linux-amd64.tar.gz | ||||||
|
|
||||||
| # take the shasum and put into correct digests/ dir | ||||||
| sha256sum helm.tar.gz > ${DIGESTS_DIR}/helm.amd64.sha256 | ||||||
|
|
@@ -78,7 +78,7 @@ KUSTOMIZE_URL=https://github.com/kubernetes-sigs/kustomize/releases/download/kus | |||||
| wget -q -O kustomize.tar.gz "${KUSTOMIZE_URL}" | ||||||
|
|
||||||
| # upload the binary to skaffold gcs bucket | ||||||
| gsutil -q cp kustomize.tar.gz gs://skaffold/deps/kustomize/v${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz | ||||||
| gcloud storage cp kustomize.tar.gz gs://skaffold/deps/kustomize/v${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original
Suggested change
|
||||||
|
|
||||||
| # take the shasum and put into correct digests/ dir | ||||||
| sha256sum kustomize.tar.gz > ${DIGESTS_DIR}/kustomize.amd64.sha256 | ||||||
|
|
@@ -88,7 +88,7 @@ KPT_URL=https://github.com/GoogleContainerTools/kpt/releases/download/v${KPT_VER | |||||
| wget -q -O kpt "${KPT_URL}" | ||||||
|
|
||||||
| # upload the binary to skaffold gcs bucket | ||||||
| gsutil -q cp kpt gs://skaffold/deps/kpt/v${KPT_VERSION}/kpt_linux_amd64 | ||||||
| gcloud storage cp kpt gs://skaffold/deps/kpt/v${KPT_VERSION}/kpt_linux_amd64 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original
Suggested change
|
||||||
|
|
||||||
| # take the shasum and put into correct digests/ dir | ||||||
| sha256sum kpt > ${DIGESTS_DIR}/kpt.amd64.sha256 | ||||||
|
|
||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
gsutilcommand used the-qflag for quiet output. The migratedgcloud storage cpcommand should include the--quietflag to maintain the same behavior and prevent progress indicators from being printed to stdout.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.
Any specific reason why the quiet flag is no longer being included?
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 omission of the --quiet flag was an oversight during the initial script conversion. Since the original gsutil command used -q to suppress progress indicators,which is critical for keeping CI/CD logs clean and preventing stdout clutter. we should definitely include it in the cloud storage version to maintain the same behavior. I'll update the migration logic to ensure this flag is preserved.