class Fabric8ServicesListSupplier extends KubernetesServicesListSupplier<Service> {

	private static final LogAccessor LOG = new LogAccessor(LogFactory.getLog(Fabric8ServicesListSupplier.class));

	private final KubernetesClient kubernetesClient;

	private final KubernetesNamespaceProvider namespaceProvider;

	Fabric8ServicesListSupplier(Environment environment, KubernetesClient kubernetesClient,
			Fabric8ServiceInstanceMapper mapper, KubernetesDiscoveryProperties discoveryProperties) {
		super(environment, mapper, discoveryProperties);
		this.kubernetesClient = kubernetesClient;
		namespaceProvider = new KubernetesNamespaceProvider(environment);
	}

	@Override
	public Flux<List<ServiceInstance>> get() {<FILL_FUNCTION_BODY>}

	private void addMappedService(KubernetesServiceInstanceMapper<Service> mapper, List<ServiceInstance> services,
			Service service) {
		services.add(mapper.map(service));
	}

}

		List<ServiceInstance> result = new ArrayList<>();
		String serviceName = getServiceId();
		LOG.debug(() -> "serviceID : " + serviceName);

		if (discoveryProperties.allNamespaces()) {
			LOG.debug(() -> "discovering services in all namespaces");
			List<Service> services = kubernetesClient.services().inAnyNamespace()
					.withField("metadata.name", serviceName).list().getItems();
			services.forEach(service -> addMappedService(mapper, result, service));
		}
		else if (!discoveryProperties.namespaces().isEmpty()) {
			List<String> selectiveNamespaces = discoveryProperties.namespaces().stream().sorted().toList();
			LOG.debug(() -> "discovering services in selective namespaces : " + selectiveNamespaces);
			selectiveNamespaces.forEach(selectiveNamespace -> {
				Service service = kubernetesClient.services().inNamespace(selectiveNamespace).withName(serviceName)
						.get();
				if (service != null) {
					addMappedService(mapper, result, service);
				}
				else {
					LOG.debug(() -> "did not find service with name : " + serviceName + " in namespace : "
							+ selectiveNamespace);
				}
			});
		}
		else {
			String namespace = Fabric8Utils.getApplicationNamespace(kubernetesClient, null, "loadbalancer-service",
					namespaceProvider);
			LOG.debug(() -> "discovering services in namespace : " + namespace);
			Service service = kubernetesClient.services().inNamespace(namespace).withName(serviceName).get();
			if (service != null) {
				addMappedService(mapper, result, service);
			}
			else {
				LOG.debug(() -> "did not find service with name : " + serviceName + " in namespace : " + namespace);
			}
		}

		LOG.debug(() -> "found services : " + result);
		return Flux.defer(() -> Flux.just(result));
	
<methods>public void <init>(org.springframework.core.env.Environment, KubernetesServiceInstanceMapper<io.fabric8.kubernetes.api.model.Service>, KubernetesDiscoveryProperties) ,public abstract Flux<List<org.springframework.cloud.client.ServiceInstance>> get() ,public java.lang.String getServiceId() <variables>protected final non-sealed KubernetesDiscoveryProperties discoveryProperties,protected final non-sealed org.springframework.core.env.Environment environment,protected final non-sealed KubernetesServiceInstanceMapper<io.fabric8.kubernetes.api.model.Service> mapper