Skip to content

Commit

Permalink
fix namespace env var
Browse files Browse the repository at this point in the history
  • Loading branch information
zyzyx85 committed Dec 10, 2024
1 parent 69d48aa commit 958e9c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class KubernetesUtils implements JwtDecoder {
@SuppressWarnings("java:S5164")
private final ThreadLocal<String> callerNamespace = new ThreadLocal<>();

@Value("${entando.namespaces-to-observe:}")
@Value("${entando.namespaces.to.observe:}")
private String namespacesToObserve;

@Value("${entando.cluster.address:}")
Expand Down Expand Up @@ -81,7 +81,7 @@ public KubernetesClient getCurrentKubernetesClient() {
// return this.kubernetesClients.get(DefaultKubernetesClientBuilder.NOT_K8S_TOKEN);
//If we ever require serviceAccount propagation from component-manager, reactivate this line:
//return this.kubernetesClients.get(currentToken.get());

Logger.getLogger(getClass().getName()).log(Level.INFO, namespacesToObserve);
return getCurrentKubernetesClient(clusterAddress,clusterToken, namespacesToObserve);
}

Expand Down

0 comments on commit 958e9c5

Please sign in to comment.