diff options
author | Clayton Coleman <ccoleman@redhat.com> | 2017-10-31 19:07:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 19:07:57 -0400 |
commit | 4572e05b17eed19851861e52507567a86d0b3432 (patch) | |
tree | d71186a52b0f8042b57755d969fd8cda3caf42c6 /roles/openshift_gcp/templates | |
parent | b393201a048ca7b73b1892d8222390954dca4841 (diff) | |
parent | 34dcc2d0b68d9bd549183a81b531e278bd448589 (diff) | |
download | openshift-4572e05b17eed19851861e52507567a86d0b3432.tar.gz openshift-4572e05b17eed19851861e52507567a86d0b3432.tar.bz2 openshift-4572e05b17eed19851861e52507567a86d0b3432.tar.xz openshift-4572e05b17eed19851861e52507567a86d0b3432.zip |
Merge pull request #5956 from smarterclayton/delete_build_istance
Ensure GCP image build instance gets cleaned up on teardown
Diffstat (limited to 'roles/openshift_gcp/templates')
-rw-r--r-- | roles/openshift_gcp/templates/remove.j2.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_gcp/templates/remove.j2.sh b/roles/openshift_gcp/templates/remove.j2.sh index 10b463349..c9213b800 100644 --- a/roles/openshift_gcp/templates/remove.j2.sh +++ b/roles/openshift_gcp/templates/remove.j2.sh @@ -68,6 +68,12 @@ fi done ) & +# Instances and disks used for image building +( + teardown "{{ openshift_gcp_prefix }}build-image-instance" compute instances --zone "{{ openshift_gcp_zone }}" + teardown "{{ openshift_gcp_prefix }}build-image-instance" compute disks --zone "{{ openshift_gcp_zone }}" +) & + # DNS ( dns_zone="{{ dns_managed_zone | default(openshift_gcp_prefix + 'managed-zone') }}" |