Skip to content

Commit cb7ddfc

Browse files
authored
Merge pull request #159 from pwittrock/docs-gen
Upgrading Kubebuilder and Core Only Controller docs
2 parents d3caa1d + 3c3ead8 commit cb7ddfc

File tree

8 files changed

+72
-8
lines changed

8 files changed

+72
-8
lines changed

docs/book/RELEASE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
To push the docs run:
2+
3+
- gitbook build
4+
- docker build . -t gcr.io/kubebuilder/book
5+
- docker push gcr.io/kubebuilder/book
6+
- kubectl delete pods -l run=gitbook-prod

docs/book/SUMMARY.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
* Development Workflow
1616
* [Project Creation and Structure](basics/project_creation_and_structure.md)
17-
* [Running Tests](basics/running_tests.md)
18-
* [Generating API Documentation](basics/generating_documentation.md)
1917
* Resource Fundamentals
2018
* [What is a Resource](basics/what_is_a_resource.md)
2119
* [Simple Resource Example](basics/simple_resource.md)
@@ -28,5 +26,15 @@
2826
* [What is the Controller-Manager](basics/what_is_the_controller_manager.md)
2927
* [Simple Controller-Manager](basics/simple_controller_manager.md)
3028

29+
### Beyond the Basics
30+
31+
* Development Workflow
32+
* [Running Tests](beyond_basics/running_tests.md)
33+
* [Generating API Documentation](beyond_basics/generating_documentation.md)
34+
* [Updating Kubebuilder](beyond_basics/upgrading_kubebuilder.md)
35+
* Controllers
36+
* [Controllers For Core Resources](beyond_basics/controllers_for_core_resources.md)
37+
38+
3139
### Reference Docs
3240
* [GoDoc Links](go_docs.md)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% panel style="info", title="Under Development" %}
2+
This book is being actively developed.
3+
{% endpanel %}
4+
5+
## Controllers for Core Resources
6+
7+
{% method %}
8+
9+
It it possible to create Controllers for Core resources, or for resources defined outside your project.
10+
11+
{% sample lang="bash" %}
12+
```bash
13+
kubebuilder create controller --group apps --version v1beta2 --kind Deployment --core-type
14+
```
15+
{% endmethod %}
16+
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.
20+
{% endpanel %}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% panel style="info", title="Under Development" %}
2+
This book is being actively developed.
3+
{% endpanel %}
4+
5+
# Update Kubebuilder
6+
7+
## Update the Kubebuilder install
8+
9+
Download the latest version of kubebuilder from [releases page](https://github.com/kubernetes-sigs/kubebuilder/releases)
10+
and install it.
11+
12+
## Update Existing Project's Dependencies
13+
14+
{% method %}
15+
16+
Update your project's dependencies to the latest version of the libraries used by kubebuilder. This
17+
will modify *Gopkg.toml* by rewriting the `[[override]]` elements beneath the
18+
`# DO NOT MODIFY BELOW THIS LINE.` line. Rules added by the user above this line will be retained.
19+
20+
{% sample lang="bash" %}
21+
```bash
22+
kubebuilder update vendor
23+
```
24+
{% endmethod %}
25+
26+

docs/book/getting_started/installation_and_setup.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Kubebuilder can then setup a project in the user's `GOPATH`.
2323
{% sample lang="mac" %}
2424
```bash
2525
# download the release
26-
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.8/kubebuilder_0.1.8_darwin_amd64.tar.gz
26+
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.9/kubebuilder_0.1.9_darwin_amd64.tar.gz
2727

2828
# extract the archive
29-
tar -zxvf kubebuilder_0.1.8_darwin_amd64.tar.gz
30-
sudo mv kubebuilder_0.1.8_darwin_amd64 /usr/local/kubebuilder
29+
tar -zxvf kubebuilder_0.1.9_darwin_amd64.tar.gz
30+
sudo mv kubebuilder_0.1.9_darwin_amd64 /usr/local/kubebuilder
3131

3232
# update your PATH to include /usr/local/kubebuilder/bin
3333
export PATH=$PATH:/usr/local/kubebuilder/bin
@@ -36,11 +36,11 @@ export PATH=$PATH:/usr/local/kubebuilder/bin
3636
{% sample lang="linux" %}
3737
```bash
3838
# download the release
39-
wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.8/kubebuilder_0.1.8_linux_amd64.tar.gz
39+
wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.9/kubebuilder_0.1.9_linux_amd64.tar.gz
4040

4141
# extract the archive
42-
tar -zxvf kubebuilder_0.1.8_linux_amd64.tar.gz
43-
sudo mv kubebuilder_0.1.8_linux_amd64 /usr/local/kubebuilder
42+
tar -zxvf kubebuilder_0.1.9_linux_amd64.tar.gz
43+
sudo mv kubebuilder_0.1.9_linux_amd64 /usr/local/kubebuilder
4444

4545
# update your PATH to include /usr/local/kubebuilder/bin
4646
export PATH=$PATH:/usr/local/kubebuilder/bin

docs/book/quick_start.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
{% panel style="info", title="Under Development" %}
2+
This book is being actively developed.
3+
{% endpanel %}
4+
15
# Quick Start
26

37
This Quick Start guide will cover.

0 commit comments

Comments
 (0)