Skip to content

Commit

Permalink
Fixed Kubernetes runtime bug (apache#3123)
Browse files Browse the repository at this point in the history
  • Loading branch information
srkukarni authored Dec 5, 2018
1 parent 032df08 commit e5a9ec3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,9 @@ private Map<String, String> getPrometheusAnnotations() {

private Map<String, String> getLabels(Function.FunctionDetails functionDetails) {
final Map<String, String> labels = new HashMap<>();
labels.put("namespace", String.format("%s/%s",functionDetails.getTenant(), functionDetails.getNamespace()));
labels.put("namespace", functionDetails.getNamespace());
labels.put("tenant", functionDetails.getTenant());
labels.put("function", String.format("%s/%s/%s", functionDetails.getTenant(),
functionDetails.getNamespace(), functionDetails.getName()));
labels.put("function", functionDetails.getName());
if (customLabels != null && !customLabels.isEmpty()) {
labels.putAll(customLabels);
}
Expand Down

0 comments on commit e5a9ec3

Please sign in to comment.