diff --git a/theodolite/src/main/kotlin/theodolite/benchmark/ResourceSets.kt b/theodolite/src/main/kotlin/theodolite/benchmark/ResourceSets.kt index 9176b67bcfdc6a97970653ce258d8955392f9379..0626a6e24369348d50b60fbb555665c58dd17281 100644 --- a/theodolite/src/main/kotlin/theodolite/benchmark/ResourceSets.kt +++ b/theodolite/src/main/kotlin/theodolite/benchmark/ResourceSets.kt @@ -21,12 +21,13 @@ class ResourceSets: KubernetesResource { var fileSystem: FileSystemResourceSet? = null fun loadResourceSet(client: NamespacedKubernetesClient): Collection<Pair<String, HasMetadata>> { + // TODO Find out whether field access (::configMap) is really what we want to do here (see #362) return if (::configMap != null) { configMap?.getResourceSet(client= client) !! } else if (::fileSystem != null) { fileSystem?.getResourceSet(client= client ) !! } else { - throw DeploymentFailedException("could not load resourceSet.") + throw DeploymentFailedException("Could not load resourceSet.") } } } \ No newline at end of file