@@ -30,16 +30,16 @@ Creating composite resources requires a
30
30
[ Composition] ({{<ref "./compositions">}}) and a
31
31
[ CompositeResourceDefinition] ({{<ref "./composite-resource-definitions">}})
32
32
(` 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.
35
36
36
37
![ Diagram of the relationship of Crossplane components] ( /media/composition-how-it-works.svg )
37
38
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,
40
40
this {{<hover label =" xrd1 " line =" 2 " >}}CompositeResourceDefinition{{</hover >}}
41
41
creates a custom API endpoint
42
- {{<hover label =" xrd1 " line =" 4 " >}}xmydatabases .example.org{{</hover >}}.
42
+ {{<hover label =" xrd1 " line =" 4 " >}}mydatabases .example.org{{</hover >}}.
43
43
44
44
``` yaml {label="xrd1",copy-lines="none"}
45
45
apiVersion : apiextensions.crossplane.io/v1
55
55
```
56
56
57
57
When 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 >}},
59
59
Crossplane chooses the Composition to use based on the Composition's
60
60
{{<hover label =" typeref " line =" 6 " >}}compositeTypeRef{{</hover >}}
61
61
@@ -196,8 +196,8 @@ Find the Composition revision name from
196
196
``` shell {label="getcomprev",copy-lines="1"}
197
197
kubectl get compositionrevision
198
198
NAME 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
201
201
```
202
202
{{< /hint >}}
203
203
@@ -316,6 +316,6 @@ creating a reference between the resource and owning composite resource.
316
316
``` shell {label="complabel",copy-lines="1"}
317
317
kubectl describe mydatabase.example.org/my-database-x9rx9
318
318
Name: my-database2-x9rx9
319
- Namespace:
319
+ Namespace: default
320
320
Labels: crossplane.io/composite=my-database-x9rx9
321
321
```
0 commit comments