Skip to content

Commit

Permalink
Merge pull request #159 from pwittrock/docs-gen
Browse files Browse the repository at this point in the history
Upgrading Kubebuilder and Core Only Controller docs
  • Loading branch information
droot committed May 15, 2018
2 parents d3caa1d + 3c3ead8 commit cb7ddfc
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 8 deletions.
6 changes: 6 additions & 0 deletions docs/book/RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
To push the docs run:

- gitbook build
- docker build . -t gcr.io/kubebuilder/book
- docker push gcr.io/kubebuilder/book
- kubectl delete pods -l run=gitbook-prod
12 changes: 10 additions & 2 deletions docs/book/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

* Development Workflow
* [Project Creation and Structure](basics/project_creation_and_structure.md)
* [Running Tests](basics/running_tests.md)
* [Generating API Documentation](basics/generating_documentation.md)
* Resource Fundamentals
* [What is a Resource](basics/what_is_a_resource.md)
* [Simple Resource Example](basics/simple_resource.md)
Expand All @@ -28,5 +26,15 @@
* [What is the Controller-Manager](basics/what_is_the_controller_manager.md)
* [Simple Controller-Manager](basics/simple_controller_manager.md)

### Beyond the Basics

* Development Workflow
* [Running Tests](beyond_basics/running_tests.md)
* [Generating API Documentation](beyond_basics/generating_documentation.md)
* [Updating Kubebuilder](beyond_basics/upgrading_kubebuilder.md)
* Controllers
* [Controllers For Core Resources](beyond_basics/controllers_for_core_resources.md)


### Reference Docs
* [GoDoc Links](go_docs.md)
20 changes: 20 additions & 0 deletions docs/book/beyond_basics/controllers_for_core_resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% panel style="info", title="Under Development" %}
This book is being actively developed.
{% endpanel %}

## Controllers for Core Resources

{% method %}

It it possible to create Controllers for Core resources, or for resources defined outside your project.

{% sample lang="bash" %}
```bash
kubebuilder create controller --group apps --version v1beta2 --kind Deployment --core-type
```
{% endmethod %}

{% panel style="warning", title="Core Only Projects" %}
If your project will *only* contain controllers for types defined outside your project,
you must create the project with the `--controller-only` flag.
{% endpanel %}
File renamed without changes.
26 changes: 26 additions & 0 deletions docs/book/beyond_basics/upgrading_kubebuilder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% panel style="info", title="Under Development" %}
This book is being actively developed.
{% endpanel %}

# Update Kubebuilder

## Update the Kubebuilder install

Download the latest version of kubebuilder from [releases page](https://github.com/kubernetes-sigs/kubebuilder/releases)
and install it.

## Update Existing Project's Dependencies

{% method %}

Update your project's dependencies to the latest version of the libraries used by kubebuilder. This
will modify *Gopkg.toml* by rewriting the `[[override]]` elements beneath the
`# DO NOT MODIFY BELOW THIS LINE.` line. Rules added by the user above this line will be retained.

{% sample lang="bash" %}
```bash
kubebuilder update vendor
```
{% endmethod %}


12 changes: 6 additions & 6 deletions docs/book/getting_started/installation_and_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Kubebuilder can then setup a project in the user's `GOPATH`.
{% sample lang="mac" %}
```bash
# download the release
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.8/kubebuilder_0.1.8_darwin_amd64.tar.gz
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v0.1.9/kubebuilder_0.1.9_darwin_amd64.tar.gz

# extract the archive
tar -zxvf kubebuilder_0.1.8_darwin_amd64.tar.gz
sudo mv kubebuilder_0.1.8_darwin_amd64 /usr/local/kubebuilder
tar -zxvf kubebuilder_0.1.9_darwin_amd64.tar.gz
sudo mv kubebuilder_0.1.9_darwin_amd64 /usr/local/kubebuilder

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

# extract the archive
tar -zxvf kubebuilder_0.1.8_linux_amd64.tar.gz
sudo mv kubebuilder_0.1.8_linux_amd64 /usr/local/kubebuilder
tar -zxvf kubebuilder_0.1.9_linux_amd64.tar.gz
sudo mv kubebuilder_0.1.9_linux_amd64 /usr/local/kubebuilder

# update your PATH to include /usr/local/kubebuilder/bin
export PATH=$PATH:/usr/local/kubebuilder/bin
Expand Down
4 changes: 4 additions & 0 deletions docs/book/quick_start.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{% panel style="info", title="Under Development" %}
This book is being actively developed.
{% endpanel %}

# Quick Start

This Quick Start guide will cover.
Expand Down

0 comments on commit cb7ddfc

Please sign in to comment.