Monitoring the Enable and Upgrade Supervisor Cluster Operations
When you run the Supervisor Cluster enable and upgrade operations, the status of the tasks is not returned. Since these operations might be time-consuming but critical when automating second- and third-party products with vSphere with Tanzu, you can write a logic to track the task status.
To monitor the status of the enable and upgrade Supervisor Cluster operations, get the Info / ClustersTypes.Info instance and query the Kubernetes and the configuration statuses of the cluster. Track the statuses every two minutes or so, until you receive READY for kubernetes_status / getKubernetesStatus() and RUNNING for config_status / getConfigStatus(). These statuses indicate that the Supervisor Cluster reached the desired configuration status and is ready for running Kubernetes workloads.