Skip to content
Snippets Groups Projects
Commit 4a8e9cae authored by Sören Henning's avatar Sören Henning
Browse files

Allow Kubernetes fields ending with .yml

parent d1e83654
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
......@@ -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)
}
......
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