From fbb3f06a27525223dbba4316f6b2dad2ed27b2b6 Mon Sep 17 00:00:00 2001 From: Jeana Routh Date: Tue, 27 Feb 2024 13:18:20 -0500 Subject: [PATCH] OCPBUGS-14987: fix Nutanix creds extraction in 4.12 --- modules/manually-configure-iam-nutanix.adoc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/modules/manually-configure-iam-nutanix.adoc b/modules/manually-configure-iam-nutanix.adoc index f72f22b5c0fa..c29cbfd25778 100644 --- a/modules/manually-configure-iam-nutanix.adoc +++ b/modules/manually-configure-iam-nutanix.adoc @@ -37,13 +37,22 @@ credentials: <2> Specify the Prism Central credentials. <3> Optional: Specify the Prism Element credentials. +. Set a `$RELEASE_IMAGE` variable with the release image from your installation file by running the following command: ++ +[source,terminal] +---- +$ RELEASE_IMAGE=$(./openshift-install version | awk '/release image/ {print $3}') +---- + . Extract the list of `CredentialsRequest` custom resources (CRs) from the {product-title} release image by running the following command: + [source,terminal] ---- -$ oc adm release extract --credentials-requests --cloud=nutanix \// ---to=/credrequests \ <1> -quay.io//ocp-release: +$ oc adm release extract \ + --from=$RELEASE_IMAGE \ + --credentials-requests \ + --cloud=nutanix \ + --to=/credrequests <1> ---- + <1> Specify the path to the directory that contains the files for the component `CredentialsRequests` objects. If the specified directory does not exist, this command creates it.