6.8. Azure のユーザー定義タグのクエリー
OpenShift Container Platform クラスターを作成したら、Azure リソース用に定義されたタグのリストにアクセスできます。OpenShift Container Platform タグの形式は、kubernetes.io_cluster.<cluster_id>:owned です。cluster_id パラメーターは、config.openshift.io/Infrastructure にある .status.infrastructureName の値です。
次のコマンドを実行して、Azure リソース用に定義されたタグをクエリーします。
$ oc get infrastructures.config.openshift.io cluster -o=jsonpath-as-json='{.status.platformStatus.azure.resourceTags}'出力例
[ [ { "key": "createdBy", "value": "user" }, { "key": "environment", "value": "dev" } ] ]