mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 12:46:06 +00:00
hack: make test-e2e-node: remove old project refs
This commit cleans up references to the old kubernetes-node-e2e-images project. In the process it removes the `LIST_IMAGES` mode as listing large numbers of public cloud projects is not particularly useful, and has been somewhat broken for a long period of time - as we defaulted launching a VM to a different project than listing.
This commit is contained in:
@@ -89,19 +89,13 @@ if [ "${remote}" = true ] && [ "${remote_mode}" = gce ] ; then
|
||||
# The following options are only valid in remote GCE run.
|
||||
images=${IMAGES:-""}
|
||||
hosts=${HOSTS:-""}
|
||||
image_project=${IMAGE_PROJECT:-"kubernetes-node-e2e-images"}
|
||||
image_project=${IMAGE_PROJECT:-"cos-cloud"}
|
||||
metadata=${INSTANCE_METADATA:-""}
|
||||
list_images=${LIST_IMAGES:-false}
|
||||
if [[ ${list_images} == "true" ]]; then
|
||||
gcloud compute images list --project="${image_project}" | grep "e2e-node"
|
||||
exit 0
|
||||
fi
|
||||
gubernator=${GUBERNATOR:-"false"}
|
||||
image_config_file=${IMAGE_CONFIG_FILE:-""}
|
||||
image_config_dir=${IMAGE_CONFIG_DIR:-""}
|
||||
runtime_config=${RUNTIME_CONFIG:-""}
|
||||
if [[ ${hosts} == "" && ${images} == "" && ${image_config_file} == "" ]]; then
|
||||
image_project="${IMAGE_PROJECT:-"cos-cloud"}"
|
||||
gci_image=$(gcloud compute images list --project "${image_project}" \
|
||||
--no-standard-images --filter="name ~ 'cos-beta.*'" --format="table[no-heading](name)")
|
||||
images=${gci_image}
|
||||
|
Reference in New Issue
Block a user