2.6. 列出工作负载身份联邦集群
您可以使用 OpenShift Cluster Manager CLI (ocm)列出已使用 Workload Identity Federation (WIF)身份验证部署的 OpenShift Dedicated 集群。
流程
要列出已使用 WIF 身份验证类型部署的所有 OpenShift Dedicated 集群,请运行以下命令:
使用带有
search选项的--parameter标志:$ ocm list clusters --parameter search="gcp.authentication.wif_config_id != ''"使用特定的 wif-config ID 来过滤与该配置关联的集群:
$ ocm list clusters --parameter search="gcp.authentication.wif_config_id = '<wif_config_id>'"1 - 1
- 将
<wif_config_id> 替换为 WIF 配置的 ID。