add unit tests fetching pod metrics and clean up code

Signed-off-by: Mengnan Gong <namco1992@gmail.com>
This commit is contained in:
Mengnan Gong
2022-10-09 21:47:13 +08:00
parent cbf5d11fdf
commit cc9749a88e
7 changed files with 597 additions and 407 deletions
+1
View File
@@ -233,6 +233,7 @@ export interface KubernetesFetchError {
export type KubernetesErrorTypes =
| 'BAD_REQUEST'
| 'UNAUTHORIZED_ERROR'
| 'NOT_FOUND'
| 'SYSTEM_ERROR'
| 'UNKNOWN_ERROR';