/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Kubernetes.Controller/Client/V1ServiceResourceInformer.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 V1ServiceResourceInformer : ResourceInformer<V1Service, V1ServiceList> { public V1ServiceResourceInformer( IKubernetes client, ResourceSelector<V1Service> selector, IHostApplicationLifetime hostApplicationLifetime, ILogger<V1ServiceResourceInformer> logger) : base(client, selector, hostApplicationLifetime, logger) { } protected override Task<HttpOperationResponse<V1ServiceList>> RetrieveResourceListAsync(bool? watch = null, string resourceVersion = null, ResourceSelector<V1Service> resourceSelector = null, CancellationToken cancellationToken = default) { return Client.CoreV1.ListServiceForAllNamespacesWithHttpMessagesAsync(watch: watch, resourceVersion: resourceVersion, fieldSelector: resourceSelector?.FieldSelector, cancellationToken: cancellationToken); } }