|
| 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. |
0 commit comments