Skip to content

Commit 6663068

Browse files
committed
chore: update project in GCP testing
This PR moves the GCP tests to a new project there. I'm working on consolidating projects, names, and doing some reservations out there. Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com>
1 parent b86edc6 commit 6663068

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

hack/test/e2e-gcp.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,12 @@ function setup {
1010
gcloud auth activate-service-account --key-file ${TMP}/svc-acct.json
1111
set -x
1212

13-
gsutil cp ${ARTIFACTS}/gcp-amd64.raw.tar.gz gs://talos-e2e/gcp-${SHA}.tar.gz
14-
gcloud --quiet --project talos-testbed compute images delete talos-e2e-${SHA} || true
15-
gcloud --quiet --project talos-testbed compute images create talos-e2e-${SHA} --source-uri gs://talos-e2e/gcp-${SHA}.tar.gz
16-
1713
## Cluster-wide vars
1814
export CLUSTER_NAME=${NAME_PREFIX}
19-
export GCP_PROJECT=talos-testbed
15+
export GCP_PROJECT=siderolabs-dev
2016
export GCP_REGION=us-central1
2117
export GCP_NETWORK=default
22-
export GCP_VM_SVC_ACCOUNT=e2e-tester@talos-testbed.iam.gserviceaccount.com
23-
18+
export GCP_VM_SVC_ACCOUNT=e2e-tester@${GCP_PROJECT}.iam.gserviceaccount.com
2419

2520
## Control plane vars
2621
export CONTROL_PLANE_MACHINE_COUNT=3
@@ -34,6 +29,12 @@ function setup {
3429
export GCP_NODE_VOL_SIZE=50
3530
export GCP_NODE_IMAGE_ID=projects/${GCP_PROJECT}/global/images/talos-e2e-${SHA}
3631

32+
## Create GCP Image
33+
gsutil cp ${ARTIFACTS}/gcp-amd64.raw.tar.gz gs://siderolabs-e2e/gcp-${SHA}.tar.gz
34+
gcloud --quiet --project ${GCP_PROJECT} compute images delete talos-e2e-${SHA} || true
35+
gcloud --quiet --project ${GCP_PROJECT} compute images create talos-e2e-${SHA} --source-uri gs://siderolabs-e2e/gcp-${SHA}.tar.gz
36+
37+
3738
${CLUSTERCTL} generate cluster ${NAME_PREFIX} \
3839
--kubeconfig /tmp/e2e/docker/kubeconfig \
3940
--from https://github.com/siderolabs/cluster-api-templates/blob/v1beta1/gcp/standard/standard.yaml > ${TMP}/cluster.yaml

0 commit comments

Comments
 (0)