Skip to content

Commit 67a6b26

Browse files
authored
Merge pull request #84336 from mletalie/OSDOCS-12516
[OSDOCS12516] OSD-GCP-Document specific commands that list clusters that are using WIF
2 parents 6c2d011 + 1c3a6cc commit 67a6b26

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

modules/create-wif-cluster-cli.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,20 @@ ocm gcp update wif-config --version <version> \ <1>
203203
--name <wif_name> <2>
204204
----
205205
<1> Replace `<version>` with the {product-title} y-stream version you plan to update the cluster to.
206-
<2> Replace `<wif_name>` with the name of the WIF configuration you want to update.
206+
<2> Replace `<wif_name>` with the name of the WIF configuration you want to update.
207+
208+
[id="ocm-cli-list-wif-commands_{context}"]
209+
== List WIF clusters
210+
211+
To list all of your {product-title} clusters that have been deployed using the WIF authentication type, run the following command:
212+
213+
[source,terminal]
214+
----
215+
$ ocm list clusters --parameter search="gcp.authentication.wif_config_id != ''"
216+
----
217+
To list all of your {product-title} clusters that have been deployed using a specific wif-config, run the following command:
218+
[source,terminal]
219+
----
220+
$ ocm list clusters --parameter search="gcp.authentication.wif_config_id = '<wif_config_id>'" <1>
221+
----
222+
<1> Replace `<wif_config_id>` with the ID of the WIF configuration to list the clusters that have been deployed using that WIF configuration.

osd_install_access_delete_cluster/creating-a-gcp-cluster-with-workload-identity-federation.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ For more information about the prerequisites for PSC, see xref:../osd_install_ac
3434
include::modules/create-wif-cluster-ocm.adoc[leveloffset=+1]
3535
include::modules/create-wif-cluster-cli.adoc[leveloffset=+1]
3636

37+
3738
== Additional resources
3839

3940
* For information about {product-title} clusters using a Customer Cloud Subscription (CCS) model on {GCP}, see xref:../osd_planning/gcp-ccs.adoc#ccs-gcp-customer-requirements_gcp-ccs[Customer requirements].

0 commit comments

Comments
 (0)