This guide explains how to test local code changes in your kind cluster.
Note: If you want to use a local chart, you need a local installation of helmfile. Otherwise a container will be used and the chart will not be visible.
The charts are published from cf-k8s-releases. Just clone this repository.
Edit the versions.yaml and change the release you want to consume from the published chart to the local path.
Example:
To consume a local diego chart:
```yaml
charts:
diego:
url: ../cf-k8s-releases/diego/helm # path to the chart
version: 1.238.0 # is not used in local case, just keep it
The images are built in cf-k8s-releases. For building the image with modified source code, please refer to th local-development-guide.
Make the locally built image available to your kind cluster:
kind load docker-image <image>:latest --name cfk8sExample:
kind load docker-image gorouter:latest --name cfk8sUpdate the deployment or daemonset to use your local image:
kubectl edit deployment <component-name>Example:
kubectl edit deployment gorouterModify the image and pull policy:
spec:
template:
spec:
containers:
- name: gorouter
image: gorouter:latest
imagePullPolicy: IfNotPresent # Important: prevents pulling from registryAfter save and exit the relevant pods will be restarted automatically.