Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • she/theodolite
1 result
Show changes
Commits on Source (4)
......@@ -47,7 +47,7 @@ helm install theodolite . -f preconfigs/one-broker-values.yaml
To uninstall/delete the `theodolite` deployment:
```sh
helm delete theodolite
helm uninstall theodolite
```
This command does not remove the CRDs which are created by this chart. Remove them manually with:
......
......@@ -32,7 +32,7 @@ class PatcherFactory {
k8sResources.filter { it.first == patcherDefinition.resource }
.map { resource -> resource.second }
.firstOrNull()
?: throw DeploymentFailedException("Could not find resource ${patcherDefinition.resource}")
?: throw InvalidPatcherConfigurationException("Could not find resource ${patcherDefinition.resource}")
return try {
when (patcherDefinition.type) {
......@@ -86,10 +86,10 @@ class PatcherFactory {
)
else -> throw InvalidPatcherConfigurationException("Patcher type ${patcherDefinition.type} not found.")
}
} catch (e: Exception) {
} catch (e: NullPointerException) {
throw InvalidPatcherConfigurationException(
"Could not create patcher with type ${patcherDefinition.type}" +
" Probably a required patcher argument was not specified."
" Probably a required patcher argument was not specified.", e
)
}
}
......
package theodolite.util
class InvalidPatcherConfigurationException(message: String) : Exception(message)
class InvalidPatcherConfigurationException(message: String, e: Exception? = null) : Exception(message, e)