From e78305012472b073f9d2d99450a6eebf7d26dce7 Mon Sep 17 00:00:00 2001 From: yuqiuw <72527514+yuqiuw@users.noreply.github.com> Date: Thu, 10 Jun 2021 11:36:31 -0500 Subject: [PATCH] Revert "Add protobuf support for metric kind PodList #191" This reverts commit df67a171eeaef4d731241f252b1ee7a9ee053db6. --- client/src/utils/protoHelpers.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/client/src/utils/protoHelpers.ts b/client/src/utils/protoHelpers.ts index 5a2eda2..4647194 100644 --- a/client/src/utils/protoHelpers.ts +++ b/client/src/utils/protoHelpers.ts @@ -7,17 +7,10 @@ const {PodMetrics} = k8s.io.metrics.pkg.apis.metrics.v1beta1; const {PodMetricsList} = k8s.io.metrics.pkg.apis.metrics.v1beta1; const {EventList} = k8s.io.api.core.v1; const {NodeList} = k8s.io.api.core.v1; -const {PodList} = k8s.io.api.core.v1; export const kindMap: { [index: string]: { - proto: typeof NodeMetrics - | typeof NodeMetricsList - | typeof PodMetrics - | typeof PodMetricsList - | typeof EventList - | typeof NodeList - | typeof PodList, + proto: typeof NodeMetrics | typeof NodeMetricsList | typeof PodMetrics | typeof PodMetricsList | typeof EventList | typeof NodeList, path: string } } = { @@ -45,10 +38,6 @@ export const kindMap: { proto: NodeList, path: 'api/v1/nodes', }, - PodList: { - proto: PodList, - path: 'api/v1/pods', - }, }; export function protoParser(raw: Uint8Array) {