diff --git a/theodolite/src/main/kotlin/theodolite/benchmark/ConfigMapResourceSet.kt b/theodolite/src/main/kotlin/theodolite/benchmark/ConfigMapResourceSet.kt index d50caec12d664886bcd4411df80909ff875d8ec9..5bd39dcbce40a833fea05b68a86e13e7a1836d3a 100644 --- a/theodolite/src/main/kotlin/theodolite/benchmark/ConfigMapResourceSet.kt +++ b/theodolite/src/main/kotlin/theodolite/benchmark/ConfigMapResourceSet.kt @@ -26,7 +26,7 @@ class ConfigMapResourceSet : ResourceSet, KubernetesResource { .withName(name) .get() ?: throw DeploymentFailedException("Cannot find ConfigMap with name '$name'.")) .data - .filter { it.key.endsWith(".yaml") } + .filter { it.key.endsWith(".yaml") || it.key.endsWith(".yml")} } catch (e: KubernetesClientException) { throw DeploymentFailedException("Cannot find or read ConfigMap with name '$name'.", e) } diff --git a/theodolite/src/main/kotlin/theodolite/benchmark/FileSystemResourceSet.kt b/theodolite/src/main/kotlin/theodolite/benchmark/FileSystemResourceSet.kt index e769f8b9883b98d9787f2de65571fc94056c3b9c..f830232de4b6956fa0f989cae131903377862e6c 100644 --- a/theodolite/src/main/kotlin/theodolite/benchmark/FileSystemResourceSet.kt +++ b/theodolite/src/main/kotlin/theodolite/benchmark/FileSystemResourceSet.kt @@ -28,7 +28,7 @@ class FileSystemResourceSet: ResourceSet, KubernetesResource { return try { File(path) .list() !! - .filter { it.endsWith(".yaml") } // consider only yaml files, e.g. ignore readme files + .filter { it.endsWith(".yaml") || it.endsWith(".yml") } .map { loadSingleResource(resourceURL = it, client = client) }