|
| 1 | +# Developing |
| 2 | + |
| 3 | +## Requirements |
| 4 | + |
| 5 | +Getting started to develop Registry Scanner shouldn't be too hard. All that |
| 6 | +is required is a simple build toolchain, consisting of: |
| 7 | + |
| 8 | +* Golang |
| 9 | +* GNU make |
| 10 | +* Docker (for building images, optional) |
| 11 | +* Kustomize (for building K8s manifests, optional) |
| 12 | + |
| 13 | +## Makefile targets |
| 14 | + |
| 15 | +Most steps in the development process are scripted in the `Makefile`, the most |
| 16 | +important targets are: |
| 17 | + |
| 18 | +* `all` - this is the default target, and will run `golangci-lint` to ensure code is linted correctly and run all the unit tests. |
| 19 | + |
| 20 | +* `lint` - this will run `golangci-lint` and ensure code is linted correctly. |
| 21 | + |
| 22 | +* `test` - this will run all the unit tests |
| 23 | + |
| 24 | + |
| 25 | +## Sending Pull Requests |
| 26 | + |
| 27 | +To send a pull request, simply fork the |
| 28 | +[GitHub repository](https://github.com/argoproj-labs/argocd-image-updater) |
| 29 | +to your GitHub account, create a new branch, commit & push your changes and then |
| 30 | +send the PR over for review. Changes should be |
| 31 | +[signed off](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt--s) |
| 32 | +and committed with `-s` or `--signoff` options to meet |
| 33 | +[Developer Certificate of Origin](https://probot.github.io/apps/dco/) requirement. |
| 34 | + |
| 35 | +When developing new features or fixing bugs, please make sure that your code is |
| 36 | +accompanied by appropriate unit tests. If you are fixing a bug, please also |
| 37 | +include a unit test for that specific bug. |
| 38 | + |
| 39 | +Also, please make sure that your code is correctly linted. |
0 commit comments