Further Improvements for Cilium Alerts within KAS/AgentK

The features related to Cilium Alerts within KAS/Agentk has been implemented as part of two epics:

As a further improvement, there are some refactoring which could be done for improving performance or simplifying logic and code complexity.

Tasks:

  • Refactor existsLabelsInEndpointSelector() to accept the EndpointSelector type instead of string
  • Refactor Switch CiliumNetworkPolicies(ns).List(ctx, metav1.ListOptions{}) to an informer in order to avoid the expensive calls. Replacing List by Watch would be helpful already.

Related source code

Edited by Adam Cohen