Commit 5ba4b3f2 authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #27338 from fejta/node

Automatic merge from submit-queue Add description to created node images Make it a little easier to see who to contact about important node e2e images.
parents 751f45b6 25451a68
...@@ -16,10 +16,15 @@ ...@@ -16,10 +16,15 @@
# Usage: copy-e2e-image.sh <image-name> <from-project-name> <to-project-name> # Usage: copy-e2e-image.sh <image-name> <from-project-name> <to-project-name>
# See *.properties for list of images to copy,
# typically from kubernetes-node-e2e-images
set -e set -e
set -x set -x
echo "Copying image $1 from project $2 to project $3..." echo "Copying image $1 from project $2 to project $3..."
gcloud compute --project $3 disks create $1 --image=https://www.googleapis.com/compute/v1/projects/$2/global/images/$1 gcloud compute --project $3 disks create $1 --image=https://www.googleapis.com/compute/v1/projects/$2/global/images/$1
gcloud compute --project $3 images create $1 --source-disk=$1 gcloud compute --project $3 images create $1 \
gcloud compute --project $3 disks delete $1 --source-disk=$1 \
--description="Cloned from projects/$2/global/images/$1 by $USER on $(date)"
gcloud -q compute --project $3 disks delete $1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment