mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-31 16:46:54 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user