Skip to content

Commit 3912a9a

Browse files
authored
Merge pull request #347 from dholbach/move-contributor-doc
2 parents 4d6eb62 + 2d45155 commit 3912a9a

File tree

2 files changed

+50
-114
lines changed

2 files changed

+50
-114
lines changed

CONTRIBUTING.md

-114
This file was deleted.

DEVELOPMENT.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Development
2+
3+
> **Note:** Please take a look at <https://fluxcd.io/docs/contributing/flux/>
4+
> to find out about how to contribute to Flux and how to interact with the
5+
> Flux Development team.
6+
7+
## How to run the test suite
8+
9+
Prerequisites:
10+
* go >= 1.16
11+
* kubebuilder >= 2.3
12+
* kustomize >= 3.1
13+
14+
You can run the unit tests by simply doing
15+
16+
```bash
17+
make test
18+
```
19+
20+
## How to run the controller locally
21+
22+
Install flux on your test cluster:
23+
24+
```sh
25+
flux install
26+
```
27+
28+
Scale the in-cluster controller to zero:
29+
30+
```sh
31+
kubectl -n flux-system scale deployment/helm-controller --replicas=0
32+
```
33+
34+
Port forward to source-controller artifacts server:
35+
36+
```sh
37+
kubectl -n flux-system port-forward svc/source-controller 8080:80
38+
```
39+
40+
Export the local address as `SOURCE_CONTROLLER_LOCALHOST`:
41+
42+
```sh
43+
export SOURCE_CONTROLLER_LOCALHOST=localhost:8080
44+
```
45+
46+
Run the controller locally:
47+
48+
```sh
49+
make run
50+
```

0 commit comments

Comments
 (0)