Skip to content

Commit 282972d

Browse files
authored
docs: add CONTRIBUTING.md file.
This closes #517.
1 parent b2e54b2 commit 282972d

File tree

4 files changed

+90
-0
lines changed

4 files changed

+90
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
output: public/index.html
3434
github-corners: https://github.com/buehler/dotnet-operator-sdk
3535

36+
- name: Build Contribution
37+
uses: jaywcjlove/markdown-to-html-cli@main
38+
with:
39+
source: CONTRIBUTING.md
40+
output: public/contribution.html
41+
github-corners: https://github.com/buehler/dotnet-operator-sdk
42+
3643
- name: Build KubeOps
3744
uses: jaywcjlove/markdown-to-html-cli@main
3845
with:

CONTRIBUTING.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Contributing to KubeOps
2+
3+
First of all, thank you for considering contributing to KubeOps.
4+
This is an open souce project and shall be driven by the community.
5+
6+
This document describes how contributions may be done and what is required
7+
to develop on KubeOps.
8+
9+
## Creating/Reporting Issues
10+
11+
Feel free to open an issue in the [issues section](https://github.com/buehler/dotnet-operator-sdk/issues).
12+
There are three issue templates:
13+
- Bug: to report an issue/bug that prevents usage or is an inconvenience of KubeOps
14+
- Feature request: to report a new feature that would enhance KubeOps
15+
- Documentation: to report missing / wrong documentation
16+
17+
Please search through the already created issues to find similarities.
18+
19+
## Creating Pull Requests
20+
21+
To directly contribute to the solution, create a fork of the repository
22+
and implement your addition. Please keep in mind that reviewing takes some
23+
time and is not done instantly.
24+
25+
Please adhere to the linting rules and the general code style in the repository.
26+
Also, add tests for your changes to ensure that the system works well
27+
when other changes happen.
28+
29+
The PR can have any name, but it would be nice if you adhere to
30+
the repositories standard naming. Please name your PR
31+
with [Convential Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary).
32+
33+
**NOTE for breaking changes**: please state breaking changes
34+
in the PR description. The review process will be faster when
35+
breaking changes are well documented.
36+
37+
A few examples:
38+
- "fix: Null exception during watcher process"
39+
- "feat(core): Add new functionality"
40+
- "feat(testing): expose kubernetes client for testing"
41+
- "refactor: changed this and that"
42+
- "docs: Add docs about KubeOps core"
43+
44+
The PR will be squashed and merged into the default branch.
45+
46+
## Local Development
47+
48+
To setup a local development environment, you'll need to perform the follwing steps:
49+
50+
- Check out the repository (or your fork)
51+
- If you want to run the Operator locally, you'll need some Kubernetes instance.
52+
This can be any Kubernetes instance you'd like:
53+
- Local Kubernetes in Docker for Mac/Windows
54+
- minikube / any other local Kubernetes
55+
- Deployed Kubernetes (e.g. GCP Kubernetes instance)
56+
- You can now code your stuff.
57+
- `tests/KubeOps.TestOperator` is a developed small operator that can be run
58+
locally to test your implementations.
59+
- Write tests for your changes
60+
- Build the whole solution and check for linting errors / warnings.
61+
**NOTE** that any warning will result in an error when building
62+
with `Release` configuration.
63+
- Do not change the linting rules without creating a discussion/issue first.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ and each package contains a README.md with further information/documentation.
2121
## Contribution
2222

2323
If you want to contribute, feel free to open a pull request or write issues :-)
24+
Read more about contribution (especially for setting up your local environment)
25+
in the [CONTRIBUTING file](./CONTRIBUTING.md).
26+
27+
Short wrapup:
28+
- Check out the code
29+
- Develop on KubeOps
30+
- Use some Kubernetes to run the test operator against
31+
- Create tests
32+
- Build the whole solution (lint warnings will result in an error)
33+
- Open PR
2434

2535
## Motivation
2636

res/docs_index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ below.
2222
## Contribution
2323

2424
If you want to contribute, feel free to open a pull request or write issues :-)
25+
Read more about contribution (especially for setting up your local environment)
26+
in the [CONTRIBUTING file](./contribution.html).
27+
28+
Short wrapup:
29+
- Check out the code
30+
- Develop on KubeOps
31+
- Use some Kubernetes to run the test operator against
32+
- Create tests
33+
- Build the whole solution (lint warnings will result in an error)
34+
- Open PR
2535

2636
## Motivation
2737

0 commit comments

Comments
 (0)