|
| 1 | +/* |
| 2 | + * Copyright 2013-present the original author or authors. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +package org.springframework.cloud.kubernetes.client.discovery; |
| 18 | + |
| 19 | +import java.util.List; |
| 20 | +import java.util.function.Predicate; |
| 21 | + |
| 22 | +import io.kubernetes.client.informer.SharedInformer; |
| 23 | +import io.kubernetes.client.informer.SharedInformerFactory; |
| 24 | +import io.kubernetes.client.informer.cache.Lister; |
| 25 | +import io.kubernetes.client.openapi.apis.CoreV1Api; |
| 26 | +import io.kubernetes.client.openapi.models.V1Endpoints; |
| 27 | +import io.kubernetes.client.openapi.models.V1Service; |
| 28 | + |
| 29 | +import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties; |
| 30 | + |
| 31 | +/** |
| 32 | + * @author wind57 |
| 33 | + */ |
| 34 | +public class VisibleKubernetesClientInformerDiscoveryClient extends KubernetesClientInformerDiscoveryClient { |
| 35 | + |
| 36 | + public VisibleKubernetesClientInformerDiscoveryClient(List<SharedInformerFactory> sharedInformerFactories, |
| 37 | + List<Lister<V1Service>> serviceListers, List<Lister<V1Endpoints>> endpointsListers, |
| 38 | + List<SharedInformer<V1Service>> serviceInformers, List<SharedInformer<V1Endpoints>> endpointsInformers, |
| 39 | + KubernetesDiscoveryProperties properties, CoreV1Api coreV1Api, Predicate<V1Service> predicate) { |
| 40 | + super(sharedInformerFactories, serviceListers, endpointsListers, serviceInformers, endpointsInformers, |
| 41 | + properties, coreV1Api, predicate); |
| 42 | + } |
| 43 | + |
| 44 | +} |
0 commit comments