method KubernetesProvider.prototype.mapSlices KubernetesProvider.prototype.mapSlices(body: unknown,serviceName: string): readonly ServiceInstance[] Maps an EndpointSlice list onto instances. Parameters body: unknown The parsed list response serviceName: string The service the slices belong to Return Type readonly ServiceInstance[] The mapped instances Throws DiscoveryUnavailableError If several ports exist and none was named