You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Create CA and TLS files (see [How To Create CA and Generate SSL/TLS Certificates & Keys](https://scriptcrunch.com/create-ca-tls-ssl-certificates-keys/))
go run . --kubeconfig=%userprofile%\.kube\config --webhook-tls-cert=.ssl/server.crt --webhook-tls-key=.ssl/server.key -webhook-tls-ca=.ssl/ca.crt -logtostderr -v=9 -nowebwookcall=true
192
+
```
193
+
194
+
### Local Development via docker-compose
195
+
196
+
First, start the docker-compose stack in [hobbyfarm/hobbyfarm](https://github.com/hobbyfarm/hobbyfarm) to provide a local [kind](https://github.com/kubernetes-sigs/kind) cluster for CRDs.
197
+
198
+
Next, run:
199
+
200
+
```bash
201
+
# create or start stack
202
+
./compose.sh up
203
+
204
+
# -- or --
205
+
# start the stack, building changes to local dev container
206
+
# only needed if a file in ./cicd/docker-local has changed
207
+
./compose.sh up --build
208
+
209
+
# stop stack
210
+
./compose.sh stop
211
+
212
+
# destroy stack
213
+
./compose.sh destroy
214
+
```
215
+
216
+
The script `./compose-up.sh` does the following:
217
+
218
+
- connects to the external docker network `hobbyfarm-dev`
219
+
- mounts the external volume for kube service account credentials called `hobbyfarm-kube-sa`
220
+
- calls `docker-compose up`
221
+
- creates or starts the `hf-garg` container, which runs a watch loop on golang files, re-builds on change, and listens on [localhost:16210](http://localhost:16210)
222
+
223
+
To modify docker-compose variables for your local environment, copy `.env.example` to `.env` and update variables as needed.
0 commit comments