Skip to content

Commit

Permalink
fixup! fixup! map '.' to own namespace, default to own namespace sing…
Browse files Browse the repository at this point in the history
…leton
  • Loading branch information
andrewazores committed Apr 4, 2024
1 parent 47f1027 commit b377af3
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 @@ -385,15 +385,15 @@ static final class KubeConfig {
@Inject FileSystem fs;

@ConfigProperty(name = "cryostat.discovery.k8s.namespaces")
Optional<List<String>> watchNamespaces;
List<String> watchNamespaces;

@ConfigProperty(name = "kubernetes.service.host")
Optional<String> serviceHost;

private KubernetesClient kubeClient;

Collection<String> getWatchNamespaces() {
return watchNamespaces.orElse(List.of(OWN_NAMESPACE)).stream()
return watchNamespaces.stream()
.map(
n -> {
if (OWN_NAMESPACE.equals(n)) {
Expand Down

0 comments on commit b377af3

Please sign in to comment.