File tree 2 files changed +50
-114
lines changed
2 files changed +50
-114
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments