mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
GCI: Update the command to get the image
This commit is contained in:
parent
11298d02e0
commit
967fd495e0
@ -33,7 +33,8 @@ elif [[ "${OS_DISTRIBUTION}" == "gci" ]]; then
|
||||
# If the user does not set a GCI image for master, we run both master and nodes
|
||||
# using the latest GCI dev image.
|
||||
if [[ "${MASTER_IMAGE}" != gci* ]]; then
|
||||
MASTER_IMAGE=$(gcloud compute images list | grep "gci-dev" | cut -d ' ' -f1)
|
||||
gci_images=( $(gcloud compute images list --project google-containers | grep "gci-dev" | cut -d ' ' -f1) )
|
||||
MASTER_IMAGE="${gci_images[0]}"
|
||||
NODE_IMAGE="${MASTER_IMAGE}"
|
||||
NODE_IMAGE_PROJECT="${MASTER_IMAGE_PROJECT}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user