Skip to content
Snippets Groups Projects
Commit 7872f337 authored by Lorenz Boguhn's avatar Lorenz Boguhn Committed by Sören Henning
Browse files

Change environmental variable lookup

parent 1dd907fa
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!91Make namespace configurable,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -24,11 +24,8 @@ class KubernetesBenchmark : Benchmark { ...@@ -24,11 +24,8 @@ class KubernetesBenchmark : Benchmark {
val basePath = "./../../../resources/main/yaml/" val basePath = "./../../../resources/main/yaml/"
val parser = YamlParser() val parser = YamlParser()
namespace = System.getenv("NAMESPACE") namespace = System.getenv("NAMESPACE") ?: DEFAULT_NAMESPACE
if (namespace.isNullOrEmpty()) { logger.info("Using $namespace as namespace.")
logger.info("No enviroment variable namespace found. Using default: $DEFAULT_NAMESPACE")
namespace = DEFAULT_NAMESPACE
}
val loader = K8sResourceLoader(DefaultKubernetesClient().inNamespace(namespace)) val loader = K8sResourceLoader(DefaultKubernetesClient().inNamespace(namespace))
return resources return resources
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment