@@ -8,7 +8,8 @@ This book is being actively developed.
8
8
Kubernete APIs require boilerplate code that is not shown here and is managed by kubebuilder.
9
9
10
10
Project structure may be created by running ` kubebuilder init ` and then creating a
11
- new API with ` kubebuilder create resource ` . More on this topic in * Project Creation and Structure*
11
+ new API with ` kubebuilder create resource ` . More on this topic in
12
+ [ Project Creation and Structure] ( ../basics/project_creation_and_structure.md )
12
13
{% endpanel %}
13
14
14
15
This chapter shows an abridged Kubebuilder project for a simple API.
@@ -25,8 +26,12 @@ Kubernetes APIs have 3 components. These components live in separate go package
25
26
This is a Resource definition. It is a go struct containing the API schema that
26
27
implicitly defines CRUD endpoints for the Resource.
27
28
29
+ For a more information on Resources see [ What is a Resource] ( ../basics/what_is_a_resource.md ) .
30
+
28
31
While it is not shown here, most Resources will split their fields in into a Spec and a Status field.
29
32
33
+ For a more complete example see [ Simple Resource Example] ( ../basics/simple_resource.md )
34
+
30
35
{% sample lang="go" %}
31
36
``` go
32
37
type Pancake struct {
@@ -52,7 +57,10 @@ mapped to the key of a Pancake object. This will trigger a full reconcile of
52
57
the Pancake object, which will in turn read related cluster state, including the object the
53
58
original event was for.
54
59
55
- The code shown here has been abridged; for a more complete example see * Simple Controller Example* .
60
+ For a more information on Controllers see [ What is a Controller] ( ../basics/what_is_a_controller.md ) .
61
+
62
+ The code shown here has been abridged; for a more complete example see
63
+ [ Simple Controller Example] ( ../basics/simple_controller.md )
56
64
57
65
{% sample lang="go" %}
58
66
``` go
0 commit comments