Skip to content

Commit

Permalink
Merge pull request #172 from fabric8io/delete-build-pod
Browse files Browse the repository at this point in the history
delete the build pod after we have finished with the template block
  • Loading branch information
carlossg authored Jul 12, 2017
2 parents 7dd2f9c + de0bcba commit fb9a0a8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ protected void finished(StepContext context) throws Exception {
if (cloud instanceof KubernetesCloud) {
KubernetesCloud kubernetesCloud = (KubernetesCloud) cloud;
kubernetesCloud.removeTemplate(podTemplate);
kubernetesCloud.connect().pods().withName(podTemplate.getName()).delete();
}
}
}
Expand Down

0 comments on commit fb9a0a8

Please sign in to comment.