diff --git a/theodolite/src/main/kotlin/theodolite/benchmark/ConfigMapResourceSet.kt b/theodolite/src/main/kotlin/theodolite/benchmark/ConfigMapResourceSet.kt index 1f89549fb4eabb86fa1a766627abe3bf7c1b3cc6..273a13170e77ae9e2f5f09869ebbc5cc06185715 100644 --- a/theodolite/src/main/kotlin/theodolite/benchmark/ConfigMapResourceSet.kt +++ b/theodolite/src/main/kotlin/theodolite/benchmark/ConfigMapResourceSet.kt @@ -23,9 +23,6 @@ class ConfigMapResourceSet: ResourceSet, KubernetesResource { @OptIn(ExperimentalStdlibApi::class) override fun getResourceSet(client: NamespacedKubernetesClient): Collection<Pair<String, KubernetesResource>> { val loader = K8sResourceLoaderFromString(client) - - logger.info {"use namespace: ${client.namespace} in configmap resource set" } - var resources: Map<String, String> try { @@ -44,6 +41,10 @@ class ConfigMapResourceSet: ResourceSet, KubernetesResource { if (::files.isInitialized){ resources = resources .filter { files.contains(it.key) } + + if (resources.size != files.size) { + throw DeploymentFailedException("Could not find all specified Kubernetes manifests files") + } } return try { diff --git a/theodolite/src/main/kotlin/theodolite/model/crd/BenchmarkCRD.kt b/theodolite/src/main/kotlin/theodolite/model/crd/BenchmarkCRD.kt index 8c58db0ebdb07a61881dd532c18004196ade570e..b6468fff523e57b124e144d5b9fef6477973655a 100644 --- a/theodolite/src/main/kotlin/theodolite/model/crd/BenchmarkCRD.kt +++ b/theodolite/src/main/kotlin/theodolite/model/crd/BenchmarkCRD.kt @@ -16,4 +16,4 @@ import theodolite.benchmark.KubernetesBenchmark class BenchmarkCRD( var spec: KubernetesBenchmark = KubernetesBenchmark(), var status: BenchmarkStatus = BenchmarkStatus() -) : CustomResource<KubernetesBenchmark, Void>(), Namespaced, HasMetadata \ No newline at end of file +) : CustomResource<KubernetesBenchmark, BenchmarkStatus>(), Namespaced, HasMetadata \ No newline at end of file