Fix parseAPI not working with non-"namespaces" pathnames. (#450)

* fix parseApi not accepting versions that don't start with 'v'
* add unit tests

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
Sebastian MaltonandSebastian Malton authored and Lauri Nevala committed 2020-06-24 09:17:34 +03:00
1 parent 4b5e35bb48
commit 29d6b0b989
10 files changed
+182 -37

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ export class PrometheusLens implements PrometheusProvider {
port: service.spec.ports[0].port
}
} catch(error) {
logger.warn(`PrometheusLens: failed to list services: ${error.toString()}`)
logger.warn(`PrometheusLens: failed to list services: ${error.response.body.message}`)
}
}