Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit e74bd1a

Browse files
committed
#24 Clean up Markdown of developer guide
- Move the documentation as comments in fenced code blocks up as toplevel text for better readability. - Use code (backtick) markup for stuff used as keyboard input and filenames. - Remove leading $ in bash example because this prevents copy paste of the examle code w/o manual editing. - Make single paragraph text also a single line w/o unnecessary linebreaks. Just use an editor with line wrapping. - Some spell checking. - Markdown allows only one H1 equivalent top level title Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com> Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent 4123f7c commit e74bd1a

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

docs/developer-guide/README.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,42 +21,45 @@ To operate your (local) kubernetes cluster you will need to install [kubectl](ht
2121
For your local development you will need a S3 compatible storage.
2222
We would recommend to use [Minio](https://min.io/download#/) inside a podman or docker container.
2323

24+
##### If You Want to Use Podman
25+
26+
```bash
27+
podman run --name minio -p 9000:9000 minio/minio server /data
28+
```
29+
30+
##### If You Want to Use Docker
31+
2432
```bash
25-
# if you want to use podman
26-
$ podman run --name minio -p 9000:9000 minio/minio server /data
27-
# if you want to use docker
28-
$ docker run --name minio -p 9000:9000 minio/minio server /data
33+
docker run --name minio -p 9000:9000 minio/minio server /data
2934
```
3035

31-
In the Minio management GUI you will need to add a new bucket for the operator.
32-
The default credentials for your minio instance are *minioadmin:minioadmin*.
33-
You might change those.
36+
In the Minio management GUI you will need to add a new bucket for the operator. The default credentials for your minio instance are `minioadmin:minioadmin`. You might change those.
3437

3538
After setting up your bucket you will need to specify some environment variables to enable the operator to use the bucket.
36-
You could add these to your *.bashrc* or *.zshrc* as well.
39+
You could add these to your `.bashrc` or `.zshrc` as well.
3740

3841
```bash
39-
$ export S3_ACCESS_KEY="your-minio-access-key"
40-
$ export S3_SECRET_KEY="your-minio-secret-key"
41-
$ export S3_BUCKET="name-of-your-bucket"
42-
$ export S3_USE_SSL="false" # This ensures that the operator will connect even without HTTPS
43-
$ export S3_ENDPOINT="<your.local.ip1address>:9000/"
42+
export S3_ACCESS_KEY="your-minio-access-key"
43+
export S3_SECRET_KEY="your-minio-secret-key"
44+
export S3_BUCKET="name-of-your-bucket"
45+
export S3_USE_SSL="false" # This ensures that the operator will connect even without HTTPS
46+
export S3_ENDPOINT="<your.local.ip1address>:9000/"
4447
```
4548

4649
### Build and run the operator
4750

4851
To build an run the operator you can simply execute *make* in the *operator* directory of this repository.
4952

5053
```bash
51-
$ make
54+
make
5255
```
5356

5457
To run the operator locally you can simply execute *make run*
5558

5659
*NOTICE:* You will need to uninstall the operator from your local cluster first or it will result in undefined behavior!
5760

5861
```bash
59-
$ make run
62+
make run
6063
```
6164

6265
## How to a new security scanner
@@ -71,13 +74,13 @@ $ make run
7174

7275
### Hook SDK
7376

74-
# Guidelines
77+
## Guidelines
7578

76-
## Coding Guidelines
79+
### Coding Guidelines
7780

78-
### JSON
81+
#### JSON
7982

80-
We're using snake_case (lower case) for json attributes. If an enum type is used as attribute its converted to lower case. If it's an value it's always used UPPERCASE. This is to hold the attribute api consistent, but make shure Enums are recognized as enums.
83+
We're using snake_case (lower case) for json attributes. If an enum type is used as attribute its converted to lower case. If it's an value it's always used UPPERCASE. This is to hold the attribute api consistent, but make sure Enums are recognized as enums.
8184

8285
```json
8386
{

0 commit comments

Comments
 (0)