mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-08-24 04:16:18 +00:00
Revert "Add protobuf support for metric kind PodList #191"
This reverts commit df67a171ee.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user