• Phillip Kuznetsov's avatar
    Clean up operator monitoring code · 2e782772
    Phillip Kuznetsov authored
    Summary:
    Cleaning up the operator monitoring code in preparation for knocking out PP-2874.
    A summary of changes ->
    1. Added some types that were previously missing (VizierPhase on api defs, new VizierReason type in vzstatus.go)
    2. Separate out ReconcileStatus into two functions (1 - gets a reason from a specific subcomponent, 2 -converts the more specific reason to a Phase)
        * the Reason will be used for a healer
        * Showed proof of concept of different components providing data (GetCloudConnState).
    
    Test Plan: Ran tests and they work, will try to deploy operator. Most worried about the VizierPhase type addition in the api defs.
    
    Reviewers: michelle, vihang, zasgar
    
    Reviewed By: michelle
    
    JIRA Issues: PP-2874
    
    Differential Revision: https://phab.corp.pixielabs.ai/D9589
    
    GitOrigin-RevId: d3bac97662c050b583f6e71959663800f5e940dc
    2e782772