Class AbstractV1ServiceProvider
java.lang.Object
io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider
io.micronaut.kubernetes.discovery.provider.AbstractV1ServiceProvider
- All Implemented Interfaces:
KubernetesServiceInstanceProvider
- Direct Known Subclasses:
KubernetesServiceInstanceServiceInformerProvider
,KubernetesServiceInstanceServiceProvider
Service instance provider uses Kubernetes Service 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
Modifier and TypeFieldDescriptionprotected static final String
protected static final org.slf4j.Logger
static final String
Fields inherited from class io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider
SECURE_LABEL
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractV1ServiceProvider
(KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<List<io.micronaut.discovery.ServiceInstance>>
getInstances
(KubernetesServiceConfiguration serviceConfiguration) getMode()
abstract reactor.core.publisher.Mono<io.kubernetes.client.openapi.models.V1Service>
getService
(String name, String namespace) org.reactivestreams.Publisher<String>
getServiceIds
(String namespace) abstract reactor.core.publisher.Flux<io.kubernetes.client.openapi.models.V1Service>
listServices
(String namespace) Methods inherited from class io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider
buildServiceInstance, compositePredicate, discoveryConfigurationFilter, hasValidPortConfiguration, isMetadataSecure, isPortSecure, serviceConfigurationDiscoveryFilter
-
Field Details
-
MODE
- See Also:
-
EXTERNAL_NAME
- See Also:
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
AbstractV1ServiceProvider
protected AbstractV1ServiceProvider(KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration)
-
-
Method Details
-
getMode
- Returns:
- the provider mode name.
-
getInstances
public org.reactivestreams.Publisher<List<io.micronaut.discovery.ServiceInstance>> getInstances(KubernetesServiceConfiguration serviceConfiguration) - Parameters:
serviceConfiguration
- service discovery configuration- Returns:
- discovered service instances
-
getServiceIds
- Parameters:
namespace
- namespace- Returns:
- provider service ids for given namespace
-
getService
-
listServices
public abstract reactor.core.publisher.Flux<io.kubernetes.client.openapi.models.V1Service> listServices(String namespace)
-