Skip to content

Commit f766e01

Browse files
committed
use desc list for ts content
1 parent 5d9c6cd commit f766e01

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

modules/ts-capi-cli-reference-intended-objects.adoc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,24 @@ For clusters that use the Cluster API, {oc-first} commands prioritize Cluster AP
1111
This behavior impacts any `oc` command that acts upon any object that is represented in both the Cluster API and the Machine API.
1212
This explanation uses the `oc delete machine` command, which deletes a machine, as an example.
1313

14-
[discrete]
15-
=== Cause
14+
Cause::
1615

1716
When you run an `oc` command, `oc` communicates with the Kube API server to determine which objects to act upon.
1817
The Kube API server uses the first installed custom resource definition (CRD) it encounters alphabetically when an `oc` command is run.
19-
18+
+
2019
CRDs for Cluster API objects are in the `cluster.x-k8s.io` group, while CRDs for Machine API objects are in the `machine.openshift.io` group.
2120
Because the letter `c` precedes the letter `m` alphabetically, the Kube API server matches on the Cluster API object CRD.
2221
As a result, the `oc` command acts upon Cluster API objects.
2322

24-
[discrete]
25-
=== Consequences
23+
Consequence::
2624

2725
Due to this behavior, the following unintended outcomes can occur on a cluster that uses the Cluster API:
2826

2927
* For namespaces that contain both types of objects, commands such as `oc get machine` return only Cluster API objects.
3028
3129
* For namespaces that contain only Machine API objects, commands such as `oc get machine` return no results.
3230
33-
[discrete]
34-
=== Workaround
31+
Workaround::
3532

3633
You can ensure that `oc` commands act on the type of objects you intend by using the corresponding fully qualified name.
3734

0 commit comments

Comments
 (0)