Ejemplo n.º 1
0
        /// <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));
            }
        }
Ejemplo n.º 2
0
 public ImmutableList <string> Update(WatchEventType eventType, V1Endpoints endpoints)
 {
     return(Namespace(endpoints.Namespace()).Update(eventType, endpoints));
 }