-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add a simple local development guide
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Development | ||
|
||
The simples way to test the code is to run it from local. | ||
If you have `capoci-controller-manager ` running in your management cluster, please scale down the deployment | ||
```bash | ||
kubectl scale deployment/capoci-controller-manager --replicas=0 -n cluster-api-provider-oci-system | ||
``` | ||
Then run the following commands. | ||
```bash | ||
export AUTH_CONFIG_DIR="<repo-path>/auth-config.yaml" | ||
make run | ||
``` | ||
This will run the code against the local management cluster. | ||
|
||
Please execute the following steps if you want to create an image from the repository | ||
|
||
```bash | ||
export TAG=<tag> | ||
export REGISTRY="iad.ocir.io/<namespace>" | ||
make docker-build | ||
``` | ||
|
||
Push the resulting docker image to the repository. | ||
|
||
Execute the following steps to install the image | ||
|
||
```bash | ||
make release-manifests | ||
kubectl apply -f out/infrastructure-oci/v0.1.0-alpha1/infrastructure-components.yaml | ||
``` |