Skip to content

Commit

Permalink
Merge pull request #81 from iocanel/namespacefix
Browse files Browse the repository at this point in the history
Use the client's namespace when deleting a pod (fixes a regression pr…
  • Loading branch information
carlossg authored Nov 8, 2016
2 parents bcb79a9 + d6c1a3c commit d59a15b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected void _terminate(TaskListener listener) throws IOException, Interrupted
}

try {
cloud.connect().pods().inNamespace(cloud.getNamespace()).withName(name).delete();
cloud.connect().pods().withName(name).delete();
LOGGER.log(Level.INFO, "Terminated Kubernetes instance for slave {0}", name);
computer.disconnect(OfflineCause.create(new Localizable(HOLDER, "offline")));
LOGGER.log(Level.INFO, "Disconnected computer {0}", name);
Expand Down

0 comments on commit d59a15b

Please sign in to comment.