Class AbstractV1EndpointsProvider
java.lang.Object
io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider
io.micronaut.kubernetes.discovery.provider.AbstractV1EndpointsProvider
- All Implemented Interfaces:
KubernetesServiceInstanceProvider
- Direct Known Subclasses:
KubernetesServiceInstanceEndpointInformerProvider
,KubernetesServiceInstanceEndpointProvider
Service instance provider uses Kubernetes Endpoints as source of service discovery.
- Since:
- 3.2
- Author:
- Pavol Gressa
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider
AbstractKubernetesServiceInstanceProvider.PortBinder
-
Field Summary
Fields inherited from class io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider
SECURE_LABEL
-
Constructor Summary
ConstructorDescriptionAbstractV1EndpointsProvider
(KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionabstract reactor.core.publisher.Mono<io.kubernetes.client.openapi.models.V1Endpoints>
getEndpoints
(String name, String namespace) org.reactivestreams.Publisher<List<io.micronaut.discovery.ServiceInstance>>
getInstances
(KubernetesServiceConfiguration serviceConfiguration) getMode()
org.reactivestreams.Publisher<String>
getServiceIds
(String namespace) abstract reactor.core.publisher.Flux<io.kubernetes.client.openapi.models.V1Endpoints>
listEndpoints
(String namespace) Methods inherited from class io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider
buildServiceInstance, compositePredicate, discoveryConfigurationFilter, hasValidPortConfiguration, isMetadataSecure, isPortSecure, serviceConfigurationDiscoveryFilter
-
Field Details
-
MODE
- See Also:
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
AbstractV1EndpointsProvider
public AbstractV1EndpointsProvider(KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration)
-
-
Method Details
-
getMode
- Returns:
- the provider mode name.
-
getServiceIds
- Parameters:
namespace
- namespace- Returns:
- provider service ids for given namespace
-
getInstances
public org.reactivestreams.Publisher<List<io.micronaut.discovery.ServiceInstance>> getInstances(KubernetesServiceConfiguration serviceConfiguration) - Parameters:
serviceConfiguration
- service discovery configuration- Returns:
- discovered service instances
-
getEndpoints
-
listEndpoints
public abstract reactor.core.publisher.Flux<io.kubernetes.client.openapi.models.V1Endpoints> listEndpoints(String namespace)
-