8.2. 使用 CLI 查看 Operator 状态

可以使用 CLI 来查看 Operator 状态。

流程

  1. 使用 oc describe 命令检查订阅资源:

    $ oc describe sub <subscription_name>
  2. 在命令输出中找到 Conditions 部分:

    Conditions:
       Last Transition Time:  2019-07-29T13:42:57Z
       Message:               all available catalogsources are healthy
       Reason:                AllCatalogSourcesHealthy
       Status:                False
       Type:                  CatalogSourcesUnhealthy