Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
This PR adds events for slice and refactors existing events to use monitoring framework events.
The following have been changed :
use of a util package which has RecordEvent function to systematically handle raising of events and reporting of error in case the event is raised unsuccessfully.
All events are listed under worker-events.yaml file which will act as the source of truth for documentation as well as eventSchema for our code.
Delete operations are marked as Warning type to highlight to the user that a operation of potential concern has happened.
Tests are refactored across the controllers to verify the events are raised and are with the appropriate format.
This PR adds events for slice and refactors existing events to use monitoring framework events.
The following have been changed :