Skip to content

Commit

Permalink
chore(k8s): correct labels
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Apr 4, 2024
1 parent fdb6929 commit 39da2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/cryostat/discovery/KubeApiDiscovery.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ private Pair<HasMetadata, DiscoveryNode> queryForNode(
DiscoveryNode.getNode(
n -> {
return name.equals(n.name)
&& namespace.equals(n.labels.get("cryostat.io/namespace"));
&& namespace.equals(n.labels.get("io.cryostat/namespace"));
});

return Pair.of(
Expand All @@ -368,7 +368,7 @@ private Pair<HasMetadata, DiscoveryNode> queryForNode(
? kubeObj.getMetadata().getLabels()
: new HashMap<>();
// Add namespace to label to retrieve node later
newNode.labels.put("cryostat.io/namespace", namespace);
newNode.labels.put("io.cryostat/namespace", namespace);
return newNode;
}));
}
Expand Down

0 comments on commit 39da2e1

Please sign in to comment.