From d052f833aab1b50016da796db3a81d23b05576dd Mon Sep 17 00:00:00 2001 From: umeshkumhar Date: Thu, 28 Mar 2024 16:54:15 +0530 Subject: [PATCH] create new gcp network module --- cloudbuild.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 3b158d5f0..821c6b62f 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -59,6 +59,7 @@ steps: terraform apply \ -var-file=tfvars_tests/standard-gke-public.platform.tfvars \ -var=project_id=$PROJECT_ID \ + -var=network_name=ml-$SHORT_SHA-$_PR_NUMBER-$_BUILD_ID-$_AUTOPILOT_CLUSTER \ -var=cluster_name=ml-$SHORT_SHA-$_PR_NUMBER-$_BUILD_ID-cluster \ -var=autopilot_cluster=$_AUTOPILOT_CLUSTER \ -var=cluster_location=$_REGION \ @@ -202,7 +203,7 @@ steps: cd /workspace/applications/rag/ terraform apply \ -var-file=workloads.tfvars \ - -var=network_name=default \ + -var=network_name=ml-$SHORT_SHA-$_PR_NUMBER-$_BUILD_ID-$_AUTOPILOT_CLUSTER \ -var=create_cluster=false \ -var=jupyter_add_auth=false \ -var=frontend_add_auth=false \ @@ -261,7 +262,7 @@ steps: cd /workspace/applications/rag/ terraform destroy \ -var-file=workloads.tfvars \ - -var=network_name=default \ + -var=network_name=ml-$SHORT_SHA-$_PR_NUMBER-$_BUILD_ID-$_AUTOPILOT_CLUSTER \ -var=create_cluster=false \ -var=jupyter_add_auth=false \ -var=frontend_add_auth=false \ @@ -289,6 +290,7 @@ steps: cd /workspace/infrastructure terraform destroy -var-file=tfvars_tests/standard-gke-public.platform.tfvars -var=project_id=$PROJECT_ID \ -var=cluster_name=ml-$SHORT_SHA-$_PR_NUMBER-$_BUILD_ID-cluster \ + -var=network_name=ml-$SHORT_SHA-$_PR_NUMBER-$_BUILD_ID-$_AUTOPILOT_CLUSTER \ -var=autopilot_cluster=$_AUTOPILOT_CLUSTER \ -var=cluster_location=$_REGION -auto-approve -no-color