mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-31 16:31:13 +01:00 
			
		
		
		
	This will fix running these scripts on distros without /bin/bash, but where bash is in $PATH, such as NixOS. Currently, `make fmt` otherwise fails to run: ``` make[3]: Leaving directory '/home/flokli/dev/numtide/manifoldfinance/talos' sh: ./hack/fix-artifacts.sh: /bin/bash: bad interpreter: No such file or directory make[2]: *** [Makefile:163: local-fmt-protobuf] Error 126 make[2]: Leaving directory '/home/flokli/dev/numtide/manifoldfinance/talos' make[1]: *** [Makefile:274: fmt-protobuf] Error 2 make[1]: Leaving directory '/home/flokli/dev/numtide/manifoldfinance/talos' make: *** [Makefile:277: fmt] Error 2 ``` Signed-off-by: Florian Klink <flokli@flokli.de> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| set -eou pipefail
 | |
| 
 | |
| source ./hack/test/e2e.sh
 | |
| 
 | |
| function setup {
 | |
|   set +x
 | |
|   echo ${GCE_SVC_ACCT} | base64 -d > ${TMP}/svc-acct.json
 | |
|   gcloud auth activate-service-account --key-file ${TMP}/svc-acct.json
 | |
|   set -x
 | |
| 
 | |
|   gsutil cp ${ARTIFACTS}/gcp-amd64.tar.gz gs://talos-e2e/gcp-${SHA}.tar.gz
 | |
|   gcloud --quiet --project talos-testbed compute images delete talos-e2e-${SHA} || true
 | |
|   gcloud --quiet --project talos-testbed compute images create talos-e2e-${SHA} --source-uri gs://talos-e2e/gcp-${SHA}.tar.gz
 | |
| 
 | |
|   ## Cluster-wide vars
 | |
|   export CLUSTER_NAME=${NAME_PREFIX}
 | |
|   export GCP_PROJECT=talos-testbed
 | |
|   export GCP_REGION=us-central1
 | |
|   export GCP_NETWORK=default
 | |
|   export GCP_VM_SVC_ACCOUNT=e2e-tester@talos-testbed.iam.gserviceaccount.com
 | |
| 
 | |
| 
 | |
|   ## Control plane vars
 | |
|   export CONTROL_PLANE_MACHINE_COUNT=3
 | |
|   export GCP_CONTROL_PLANE_MACHINE_TYPE=n1-standard-4
 | |
|   export GCP_CONTROL_PLANE_VOL_SIZE=50
 | |
|   export GCP_CONTROL_PLANE_IMAGE_ID=projects/${GCP_PROJECT}/global/images/talos-e2e-${SHA}
 | |
| 
 | |
|   ## Worker vars
 | |
|   export WORKER_MACHINE_COUNT=3
 | |
|   export GCP_NODE_MACHINE_TYPE=n1-standard-4
 | |
|   export GCP_NODE_VOL_SIZE=50
 | |
|   export GCP_NODE_IMAGE_ID=projects/${GCP_PROJECT}/global/images/talos-e2e-${SHA}
 | |
| 
 | |
|   ${CLUSTERCTL} generate cluster ${NAME_PREFIX} \
 | |
|     --kubeconfig /tmp/e2e/docker/kubeconfig \
 | |
|     --from https://github.com/talos-systems/cluster-api-templates/blob/v1beta1/gcp/standard/standard.yaml > ${TMP}/cluster.yaml
 | |
|   
 | |
| }
 | |
| 
 | |
| setup
 | |
| create_cluster_capi gcp
 | |
| run_talos_integration_test
 | |
| run_kubernetes_integration_test
 |