not sure why the report line was removed
@@ -214,7 +214,7 @@ func runDeploymentCheck() {
if cleanUpError != nil {
errorReport = append(errorReport, cleanUpError.Error())
}
-
+ reportErrorsToKuberhealthy([]string{err.Error()})
return
}
// Continue with the check if there is no error.
@@ -234,7 +234,7 @@ func runDeploymentCheck() {
// Clean up!
cleanUpError := cleanUp(ctx)
if cleanUpError != nil {
- reportErrorsToKuberhealthy([]string{cleanUpError.Error()})
+ reportErrorsToKuberhealthy([]string{err.Error()})
}
// Report to Kuberhealthy.
reportOKToKuberhealthy()
