Commit Graph
19 Commits
Author SHA1 Message Date
Guy Margalit 2ce2382676 Refactor operator context init and allow to run local
Signed-off-by: Guy Margalit <guymguym@gmail.com>
Co-Authored-By: Sébastien Han <seb@redhat.com>
Co-Authored-By: Travis Nielsen <tnielsen@redhat.com>

This change is meant to allow running operators locally on a developer machine.
The idea is to allow faster development cycles by reducing the time and complexity of building -> deploying -> debugging on cluster.

For operators that rely only on kubernetes API this works easily - see cockroachdb and minio examples in development-flow doc.

The change includes:

- rook.NewContext() - Refactored to remove repeating initialization code that was copy-pasted in most of the operators in order to create the clusterd.Context and the Clientsets. Also it detects the mode of working in-cluster vs external and sets up the external mode with standard user config (~/.kube/config) and a job executor.
- rook.GetOperatorImage() - Refactor this repeating code in many operators to detect the operator pod image. Also added a global flag --operator-image that developers can use to override this when running locally.
- rook.TerminateOnError() - Added a convenient function.
2019-06-19 20:47:55 +03:00
travisn f0117150f3 docs: consistent dev environment
Signed-off-by: travisn <tnielsen@redhat.com>
2019-02-21 12:25:01 -07:00
Dmitry Yusupov 90ad28475c add 00 to all the weights in *.md files
Signed-off-by: Dmitry Yusupov <dmitry@nexenta.com>
2019-02-04 09:46:00 -08:00
travisn 0524084592 docs: table of contents with a storage provider organization
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-08 08:07:03 -07:00
travisn 57d58760c2 docs: minor updates for the 0.9 release
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-07 22:50:33 -07:00
Alexander Trost 097f640bbb doc: rename monitoring doc for Ceph
doc: move Ceph mon example files to ceph example subfolder

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-12-07 19:33:27 +01:00
rohan47 3aef6fc213 [Documentation] Added source code layout
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-11-05 20:50:23 +05:30
Blaine Gardner fe5fb394c7 Fix spellcheck and trailing space/newline issues
Fix some basic spellcheck errors. Also remove trailing spaces and make
sure files have a newline (my editor does automatically).

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-07-26 11:36:09 -06:00
travisn 0854cbaf55 docs: clarifications for the 0.8 release
Signed-off-by: travisn <tnielsen@redhat.com>
2018-07-13 14:29:57 -06:00
Jared Watts 8c008e96d9 docs: update contribution flow to clarify design document process
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-03-29 17:27:54 -07:00
Jared Watts c35754ece8 Add golang 1.10 to supported list, minor updates to dev flow instructions
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-02-26 14:41:28 -08:00
Sébastien Han 3c6fa79518 doc: add doc for multi-node setup and dev workflow
This commit adds instructions to develop on a multi-node deployment,
which is somehow similar to a production setup.
It also proposes a development workflow approach to
write/build/test/ship
code to Rook.

Signed-off-by: Sébastien Han <seb@redhat.com>
2018-02-21 17:45:49 +01:00
Travis Nielsen 6a1a1c31ad docs: helm chart install and other clarifications 2018-01-19 16:47:57 -08:00
Travis Nielsen 873751349a docs: update the table of contents 2018-01-12 16:55:34 -08:00
Jared Watts a36780b84a docs: steps for backporting fixes to release branches 2017-12-15 10:13:01 -08:00
Jared Watts 1616167422 docs: user guide for upgrading a Rook cluster 2017-09-11 08:38:33 -07:00
Ian Lovett 7d3a4029cd docs: polish docs for consistent and heirarchical title formatting, add spacing in raw md for readability 2017-08-07 12:20:09 -07:00
Ian Lovett 7b2ade4af5 add front matter, add landing page, fix broken link to docs site 2017-08-04 14:19:44 -07:00
aramisjohnson 8aebb76478 Add development workflow process 2017-05-08 14:54:06 -07:00