/// <summary> /// Called by the informer with real-time resource updates. /// </summary> /// <param name="eventType">Indicates if the resource new, updated, or deleted.</param> /// <param name="resource">The information as provided by the Kubernets API server.</param> private void Notification(WatchEventType eventType, V1Endpoints resource) { var ingressNames = _cache.Update(eventType, resource); foreach (var ingressName in ingressNames) { _queue.Add(new QueueItem(new NamespacedName(resource.Namespace(), ingressName), null)); } }
public ImmutableList <string> Update(WatchEventType eventType, V1Endpoints endpoints) { return(Namespace(endpoints.Namespace()).Update(eventType, endpoints)); }