From 392d36bd0ee2765de61fafbb0c5419d8292a01d8 Mon Sep 17 00:00:00 2001 From: Roy Tokeshi Date: Tue, 21 May 2019 14:17:58 -0400 Subject: [PATCH 1/3] Update deployment to delete image Deployment script creates image in the project. This adds step to delete image from project. --- gcp/scripts/automated_deployment.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcp/scripts/automated_deployment.pl b/gcp/scripts/automated_deployment.pl index 36c02ff..11ce2d1 100644 --- a/gcp/scripts/automated_deployment.pl +++ b/gcp/scripts/automated_deployment.pl @@ -20,6 +20,11 @@ print ("\n******************************************************\n"); qx#gcloud -q deployment-manager deployments delete tier1-vpx#; + print ("\n******************************************************\n"); + print ("Deleting the VPX image"); + print ("\n******************************************************\n"); + qx#gcloud -q compute images create netscaler12-1e#; + print ("\n******************************************************\n"); print ("Deleting the GKE Kubernetes cluster"); print ("\n******************************************************\n"); From 040cdd6b60582f328d7bf9a2a0811e379cd57478 Mon Sep 17 00:00:00 2001 From: Roy Tokeshi Date: Tue, 21 May 2019 14:31:07 -0400 Subject: [PATCH 2/3] edit command delete --- gcp/scripts/automated_deployment.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp/scripts/automated_deployment.pl b/gcp/scripts/automated_deployment.pl index 11ce2d1..813b5a4 100644 --- a/gcp/scripts/automated_deployment.pl +++ b/gcp/scripts/automated_deployment.pl @@ -23,7 +23,7 @@ print ("\n******************************************************\n"); print ("Deleting the VPX image"); print ("\n******************************************************\n"); - qx#gcloud -q compute images create netscaler12-1e#; + qx#gcloud -q compute images delete netscaler12-1e#; print ("\n******************************************************\n"); print ("Deleting the GKE Kubernetes cluster"); From 425e7e619202073d1bc8a90c90918b465cf51739 Mon Sep 17 00:00:00 2001 From: ratokeshi Date: Wed, 22 May 2019 11:08:31 -0400 Subject: [PATCH 3/3] modified: gcp/scripts/automated_deployment.pl --- gcp/scripts/automated_deployment.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp/scripts/automated_deployment.pl b/gcp/scripts/automated_deployment.pl index 813b5a4..b939061 100644 --- a/gcp/scripts/automated_deployment.pl +++ b/gcp/scripts/automated_deployment.pl @@ -23,7 +23,7 @@ print ("\n******************************************************\n"); print ("Deleting the VPX image"); print ("\n******************************************************\n"); - qx#gcloud -q compute images delete netscaler12-1e#; + qx#gcloud -q compute images delete netscaler12-1#; print ("\n******************************************************\n"); print ("Deleting the GKE Kubernetes cluster");