File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,25 @@ This book is being actively developed.
4
4
5
5
## Controllers for Core Resources
6
6
7
+ {% panel style="warning", title="Core Only Projects" %}
8
+ If your project will * only* contain controllers for types defined outside your project,
9
+ you must create the project with the ` --controller-only ` flag.
10
+ {% endpanel %}
11
+
7
12
{% method %}
8
13
9
- It it possible to create Controllers for Core resources, or for resources defined outside your project.
14
+ It is possible to create Controllers for Core resources, or for resources defined outside your project.
10
15
11
16
{% sample lang="bash" %}
12
17
``` bash
13
18
kubebuilder create controller --group apps --version v1beta2 --kind Deployment --core-type
14
19
```
15
20
{% endmethod %}
16
21
17
- {% panel style="warning", title="Core Only Projects" %}
18
- If your project will * only* contain controllers for types defined outside your project,
19
- you must create the project with the ` --controller-only ` flag.
22
+ {% panel style="warning", title="Scaffold Tests May Not Pass" %}
23
+ When creating controllers for core and existing types, it may be necessary to modify
24
+ the scaffold tests before they pass.
25
+
26
+ This is because the empty objet may not be valid and have required fields not
27
+ set in the scaffold test.
20
28
{% endpanel %}
You can’t perform that action at this time.
0 commit comments