From 66f8a93b7b496fd9e1f1624d8541a85c79777129 Mon Sep 17 00:00:00 2001 From: Jeana Routh Date: Wed, 28 May 2025 14:46:20 -0400 Subject: [PATCH] OSDOCS-14007: followup to remove irrelevant prereq task --- .../cluster-api-getting-started.adoc | 5 ----- modules/capi-creating-machine-set.adoc | 13 +++++++++---- modules/obtaining-value-cluster-id.adoc | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/machine_management/cluster_api_machine_management/cluster-api-getting-started.adoc b/machine_management/cluster_api_machine_management/cluster-api-getting-started.adoc index a9f66b833c..df67f68223 100644 --- a/machine_management/cluster_api_machine_management/cluster-api-getting-started.adoc +++ b/machine_management/cluster_api_machine_management/cluster-api-getting-started.adoc @@ -14,11 +14,6 @@ For the Cluster API Technology Preview, you must manually create some of the pri [id="creating-primary-resources_{context}"] == Creating the Cluster API primary resources -To create the Cluster API primary resources, you must obtain the cluster ID value, which you use for the `` parameter in the cluster resource manifest. - -//Obtaining the cluster ID value -include::modules/obtaining-value-cluster-id.adoc[leveloffset=+2] - You can create the Cluster API primary resources manually by creating YAML manifest files and applying them with the {oc-first}. //Creating a Cluster API machine template diff --git a/modules/capi-creating-machine-set.adoc b/modules/capi-creating-machine-set.adoc index bd8d47b5a1..67fee8270b 100644 --- a/modules/capi-creating-machine-set.adoc +++ b/modules/capi-creating-machine-set.adoc @@ -48,6 +48,13 @@ spec: <1> Specify a name for the compute machine set. The cluster ID, machine role, and region form a typical pattern for this value in the following format: `--`. <2> Specify the name of the cluster. +Obtain the value of the cluster ID by running the following command: ++ +[source,terminal] +---- +$ oc get infrastructure cluster \ + -o jsonpath='{.status.infrastructureName}' +---- <3> Specify the details for your environment. These parameters are provider specific. For more information, see the sample Cluster API compute machine set YAML for your provider. -- @@ -62,9 +69,8 @@ $ oc create -f .yaml + [source,terminal] ---- -$ oc get machineset -n openshift-cluster-api <1> +$ oc get machineset.cluster.x-k8s.io -n openshift-cluster-api ---- -<1> Specify the `openshift-cluster-api` namespace. + .Example output [source,text] @@ -83,9 +89,8 @@ When the new compute machine set is available, the `REPLICAS` and `AVAILABLE` va + [source,terminal] ---- -$ oc get machine -n openshift-cluster-api <1> +$ oc get machine.cluster.x-k8s.io -n openshift-cluster-api ---- -<1> Specify the `openshift-cluster-api` namespace. + .Example output [source,text] diff --git a/modules/obtaining-value-cluster-id.adoc b/modules/obtaining-value-cluster-id.adoc index d257089069..649f333a5a 100644 --- a/modules/obtaining-value-cluster-id.adoc +++ b/modules/obtaining-value-cluster-id.adoc @@ -1,6 +1,6 @@ // Module included in the following assemblies: // -// * machine_management/cluster_api_machine_management/cluster-api-getting-started.adoc +// :_mod-docs-content-type: PROCEDURE [id="obtaining-value-cluster-id_{context}"]