Skip to content

Commit

Permalink
Merge pull request #304 from sky-uk/fix-slave-provisioning-logs
Browse files Browse the repository at this point in the history
Use slave template namespace in logs
  • Loading branch information
carlossg authored Apr 6, 2018
2 parents 4537610 + 9a8b391 commit 97f1697
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,15 @@ private boolean addProvisionedSlave(@Nonnull PodTemplate template, @CheckForNull
if (slaveListItems != null && containerCap <= slaveListItems.size()) {
LOGGER.log(Level.INFO,
"Total container cap of {0} reached, not provisioning: {1} running or errored in namespace {2} with Kubernetes labels {3}",
new Object[] { containerCap, slaveListItems.size(), client.getNamespace(), getLabels() });
new Object[] { containerCap, slaveListItems.size(), templateNamespace, getLabels() });
return false;
}

if (namedListItems != null && slaveListItems != null && template.getInstanceCap() <= namedListItems.size()) {
LOGGER.log(Level.INFO,
"Template instance cap of {0} reached for template {1}, not provisioning: {2} running or errored in namespace {3} with label \"{4}\" and Kubernetes labels {5}",
new Object[] { template.getInstanceCap(), template.getName(), slaveListItems.size(),
client.getNamespace(), label == null ? "" : label.toString(), labelsMap });
templateNamespace, label == null ? "" : label.toString(), labelsMap });
return false; // maxed out
}
return true;
Expand Down

0 comments on commit 97f1697

Please sign in to comment.