Prerequisite

Install Tilt

If you want to install tilt with all dev tools:

make install-dev-prerequisites: 

Or if you want to install till only:

make install-tilt

Tilt configuration:

You can either configure tilt with setting in your bashrc or profile:

export CONTROLLER_IMAGE=myregistry/osc/cluster-api-outscale-controllers:latest
export K8S_CONTEXT=cluster-api-dev

K8S_CONTEXT is the name of the cluster. (k8s context in kubeconfig).

CONTROLLER_IMAGE is the image controller (myregistry is the url of your registry, osc is the project, cluster-api-outscale-controllers is the name of the image, latest is the tag of the image )

Or you can set with tilt.config:

{
  "allowed_contexts": cluster-api-dev,
  "controller_image": myregistry/osc/cluster-api-outscale-controllers:latest,
}

Tilt

Please launch tilt at the project’s root folder:

[root@cidev-admin cluster-api-provider-outscale]# tilt up
Tilt started on http://localhost:10350/
v0.25.3, built 2022-03-04

(space) to open the browser
(s) to stream logs (--stream=true)
(t) to open legacy terminal mode (--legacy=true)
(ctrl-c) to exit

You can track your docker build and controller log in your web browser.