Key Features:
- Create/Update/Delete CRs: The HandleCreate, HandleUpdate, and HandleDelete methods simulate CRUD operations for Custom Resources (CRs). They modify the in-memory store (crStore).
- View CR Spec and Status: The ViewCR method allows you to fetch and print a CR’s spec and its current status.
- Watch for CR Status Changes: The WatchCRStatus method simulates watching for status changes in a CR. It periodically prints out the CR's status, showing how it evolves over time.
- To run this application, execute the following:
go run custom-controller.go