File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Development
2
+
3
+ The simples way to test the code is to run it from local.
4
+ If you have ` capoci-controller-manager ` running in your management cluster, please scale down the deployment
5
+ ``` bash
6
+ kubectl scale deployment/capoci-controller-manager --replicas=0 -n cluster-api-provider-oci-system
7
+ ```
8
+ Then run the following commands.
9
+ ``` bash
10
+ export AUTH_CONFIG_DIR=" <repo-path>/auth-config.yaml"
11
+ make run
12
+ ```
13
+ This will run the code against the local management cluster.
14
+
15
+ Please execute the following steps if you want to create an image from the repository
16
+
17
+ ``` bash
18
+ export TAG=< tag>
19
+ export REGISTRY=" iad.ocir.io/<namespace>"
20
+ make docker-build
21
+ ```
22
+
23
+ Push the resulting docker image to the repository.
24
+
25
+ Execute the following steps to install the image
26
+
27
+ ``` bash
28
+ make release-manifests
29
+ kubectl apply -f out/infrastructure-oci/v0.1.0-alpha1/infrastructure-components.yaml
30
+ ```
You can’t perform that action at this time.
0 commit comments