FE: Add Alert to the Policy UI

This is to create the +Add alert function in the UI and store the information in the backend.

From @sam.white:

The mocks don't call this out explicitly, but I would anticipate that any necessary yaml (to configure Hubble, or otherwise) would also be auto-generated and displayed here when the user clicks "Add Alert". I just want to make sure we are accounting for that as well.

image

See Design Issue and parent Epic for details. See prototype

Implementation Plan

  • Add alert as part of policy editor
  • Alert configuration will be included into the network policy as an annotation. This will make it easier to have all related information into a single object.

Check this awesome prototype before working on it.

Edited by Alexander Turinske