diff --git a/cluster-manager/src/main/java/io/seldon/clustermanager/k8s/SeldonDeploymentWatcher.java b/cluster-manager/src/main/java/io/seldon/clustermanager/k8s/SeldonDeploymentWatcher.java index 900bfe1f95..ebe5e8b40b 100644 --- a/cluster-manager/src/main/java/io/seldon/clustermanager/k8s/SeldonDeploymentWatcher.java +++ b/cluster-manager/src/main/java/io/seldon/clustermanager/k8s/SeldonDeploymentWatcher.java @@ -127,7 +127,7 @@ private String getNamespace(JsonNode actualObj) { if (!clusterManagerProperites.isSingleNamespace()) { - if (actualObj.has("metadata") && actualObj.get("meta").has("namespace")) + if (actualObj.has("metadata") && actualObj.get("metadata").has("namespace")) return actualObj.get("metadata").get("namespace").asText(); else return "default";