Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions community/3-tier/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
deleteBucket() {
local BUCKET_NAME=$PROJECT-$APP
echo "Deleting bucket"
gsutil rm -raf gs://${BUCKET_NAME}/*
gsutil rb -f gs://${BUCKET_NAME}/
gcloud storage rm --recursive --all-versions --continue-on-error gs://${BUCKET_NAME}/*
gcloud storage buckets delete --continue-on-error gs://${BUCKET_NAME}/
}

##
Expand Down
6 changes: 3 additions & 3 deletions community/3-tier/deployCitiesMicroservices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ echo ${BUCKET_NAME}
echo_mesg "Deploying cities-service"

######### Copy Startup Script for cities-service
gsutil cp -r startup-scripts/cities-service.sh gs://${BUCKET_NAME}/startup-scripts/cities-service.sh
gcloud storage cp --recursive startup-scripts/cities-service.sh gs://${BUCKET_NAME}/startup-scripts/cities-service.sh

######### Create Instance Group for cities service
createRegionalInstanceGroup cities-service ${APP_REGION} ${PROJECT} $NETWORK $SUBNET $BUCKET_NAME
Expand All @@ -49,7 +49,7 @@ deployCitiesUI() {
echo_mesg "Deploying cities-ui"

######### Copy startup script for cities-ui
gsutil cp -r startup-scripts/cities-ui.sh gs://${BUCKET_NAME}/startup-scripts/cities-ui.sh
gcloud storage cp --recursive startup-scripts/cities-ui.sh gs://${BUCKET_NAME}/startup-scripts/cities-ui.sh

######### Create Instance Groups for cities ui
createRegionalInstanceGroup cities-ui ${APP_REGION} ${PROJECT} $NETWORK $SUBNET $BUCKET_NAME
Expand Down Expand Up @@ -94,7 +94,7 @@ echo_mesg "****** Deploying Microservices *****"

######### Create Bucket
echo_mesg "Creating Bucket"
gsutil mb gs://${BUCKET_NAME}/
gcloud storage buckets create gs://${BUCKET_NAME}/

######## Create VPC Network and subnetwork
createVPCNetwork
Expand Down
2 changes: 1 addition & 1 deletion community/lustre/scripts/startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ EOF
function hsm_import_bucket()
{

bucket_file_list=`gsutil ls -r ${HSM_GCS_BUCKET_IMPORT}/** | sed "/\/:$/d"`
bucket_file_list=`gcloud storage ls --recursive ${HSM_GCS_BUCKET_IMPORT}/** | sed "/\/:$/d"`

for i in $bucket_file_list
do
Expand Down
2 changes: 1 addition & 1 deletion tools/alt-testing/create-projects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ gcloud iam service-accounts add-iam-policy-binding \
cnrm-system@${KRM_PROJECT_ID}.iam.gserviceaccount.com \
--member="serviceAccount:${KRM_PROJECT_ID}.svc.id.goog[cnrm-system/cnrm-controller-manager]" \
--role="roles/iam.workloadIdentityUser"
gsutil cp gs://cnrm/latest/release-bundle.tar.gz release-bundle.tar.gz
gcloud storage cp gs://cnrm/latest/release-bundle.tar.gz release-bundle.tar.gz
rm -rf release-bundle
tar zxvf release-bundle.tar.gz
sed -i.bak 's/${PROJECT_ID?}/'"$KRM_PROJECT_ID"'/' install-bundle-workload-identity/0-cnrm-system.yaml
Expand Down
4 changes: 2 additions & 2 deletions tools/scheduled-deployments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $ zip -jr ./functions scheduled-deployments.zip
and upload that folder to Cloud Storage

```sh
$ gsutil cp scheduled-deployments.zip gs://[PROJECT-ID].appspot.com
$ gcloud storage cp scheduled-deployments.zip gs://[PROJECT-ID].appspot.com
```

where `gs://[PROJECT-ID].appspot.com` is your Cloud Storage bucket name.
Expand All @@ -89,7 +89,7 @@ Cloud Storage. Make sure the file is set to be shared publicly. To upload to
Cloud Storage, you can execute

```sh
$ gsutil cp -a public-read openapi.json gs://[PROJECT-ID].appspot.com
$ gcloud storage cp --predefined-acl=public-read openapi.json gs://[PROJECT-ID].appspot.com
```

so your specification file will be available at
Expand Down