/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Kubernetes.Controller/Client/V1EndpointsResourceInformer.cs
29 строк
1 KB
Miha Zupan
Update LettuceEncrypt to 1.2.0 and KubernetesClient to 9.0.28 (#1902)
24 окт 2022, 20:05
Не верифицирован
24 окт 2022, 20:05
e64218a
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using k8s; using k8s.Autorest; using k8s.Models; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System.Threading; using System.Threading.Tasks; namespace Yarp.Kubernetes.Controller.Client; internal class V1EndpointsResourceInformer : ResourceInformer<V1Endpoints, V1EndpointsList> { public V1EndpointsResourceInformer( IKubernetes client, ResourceSelector<V1Endpoints> selector, IHostApplicationLifetime hostApplicationLifetime, ILogger<V1EndpointsResourceInformer> logger) : base(client, selector, hostApplicationLifetime, logger) { } protected override Task<HttpOperationResponse<V1EndpointsList>> RetrieveResourceListAsync(bool? watch = null, string resourceVersion = null, ResourceSelector<V1Endpoints> resourceSelector = null, CancellationToken cancellationToken = default) { return Client.CoreV1.ListEndpointsForAllNamespacesWithHttpMessagesAsync(watch: watch, resourceVersion: resourceVersion, fieldSelector: resourceSelector?.FieldSelector, cancellationToken: cancellationToken); } }