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.
This commit is contained in:
k8s-merge-robot
2016-06-14 13:43:44 -07:00
committed by GitHub

View File

@@ -16,10 +16,15 @@
# 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 -x
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 images create $1 --source-disk=$1
gcloud compute --project $3 disks delete $1
gcloud compute --project $3 images create $1 \
--source-disk=$1 \
--description="Cloned from projects/$2/global/images/$1 by $USER on $(date)"
gcloud -q compute --project $3 disks delete $1