Fixed Kubernetes runtime bug
@@ -524,10 +524,9 @@ class KubernetesRuntime implements Runtime {
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);
}
