mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-05-12 10:46:35 +00:00
Add protobuf support for metric kind NodeList #192
This commit is contained in:
@@ -6,10 +6,11 @@ const {NodeMetricsList} = k8s.io.metrics.pkg.apis.metrics.v1beta1;
|
||||
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;
|
||||
|
||||
export const kindMap: {
|
||||
[index: string]: {
|
||||
proto: typeof NodeMetrics | typeof NodeMetricsList | typeof PodMetrics | typeof PodMetricsList | typeof EventList,
|
||||
proto: typeof NodeMetrics | typeof NodeMetricsList | typeof PodMetrics | typeof PodMetricsList | typeof EventList | typeof NodeList,
|
||||
path: string
|
||||
}
|
||||
} = {
|
||||
@@ -33,6 +34,10 @@ export const kindMap: {
|
||||
proto: EventList,
|
||||
path: 'api/v1/events',
|
||||
},
|
||||
NodeList: {
|
||||
proto: NodeList,
|
||||
path: 'api/v1/nodes',
|
||||
},
|
||||
};
|
||||
|
||||
export function protoParser(raw: Uint8Array) {
|
||||
|
||||
Reference in New Issue
Block a user