@@ -30,16 +30,16 @@ Creating composite resources requires a
3030[ Composition] ({{<ref "./compositions">}}) and a
3131[ CompositeResourceDefinition] ({{<ref "./composite-resource-definitions">}})
3232(` XRD ` ).
33- The Composition defines the set of resources to create.
34- The XRD defines the custom API users call to request the set of resources.
33+
34+ The Composition defines the set of resources to create. The XRD defines the
35+ custom API users call to request the set of resources.
3536
3637![ Diagram of the relationship of Crossplane components] ( /media/composition-how-it-works.svg )
3738
38- XRDs define the API used to create a composite resource.
39- For example,
39+ XRDs define the API used to create a composite resource. For example,
4040this {{<hover label =" xrd1 " line =" 2 " >}}CompositeResourceDefinition{{</hover >}}
4141creates a custom API endpoint
42- {{<hover label =" xrd1 " line =" 4 " >}}xmydatabases .example.org{{</hover >}}.
42+ {{<hover label =" xrd1 " line =" 4 " >}}mydatabases .example.org{{</hover >}}.
4343
4444``` yaml {label="xrd1",copy-lines="none"}
4545apiVersion : apiextensions.crossplane.io/v1
5555```
5656
5757When a user calls the custom API,
58- {{<hover label =" xrd1 " line =" 4 " >}}xmydatabases .example.org{{</hover >}},
58+ {{<hover label =" xrd1 " line =" 4 " >}}mydatabases .example.org{{</hover >}},
5959Crossplane chooses the Composition to use based on the Composition's
6060{{<hover label =" typeref " line =" 6 " >}}compositeTypeRef{{</hover >}}
6161
@@ -196,8 +196,8 @@ Find the Composition revision name from
196196``` shell {label="getcomprev",copy-lines="1"}
197197kubectl get compositionrevision
198198NAME REVISION XR-KIND XR-APIVERSION AGE
199- my-composition-5c976ad 1 xmydatabases example.org/v1alpha1 65m
200- my-composition-b5aa1eb 2 xmydatabases example.org/v1alpha1 64m
199+ my-composition-5c976ad 1 mydatabases example.org/v1alpha1 65m
200+ my-composition-b5aa1eb 2 mydatabases example.org/v1alpha1 64m
201201```
202202{{< /hint >}}
203203
@@ -316,6 +316,6 @@ creating a reference between the resource and owning composite resource.
316316``` shell {label="complabel",copy-lines="1"}
317317kubectl describe mydatabase.example.org/my-database-x9rx9
318318Name: my-database2-x9rx9
319- Namespace:
319+ Namespace: default
320320Labels: crossplane.io/composite=my-database-x9rx9
321321```
0 commit comments