This project aims to demonstrate how a simple custom controller can be implemented.
This project contains a devcontainer definition. To get started, use either the VS Code
Dev Containers extension, or the devcontainer CLI which is installable using npm with the @devcontainers/cli
package.
The container includes the Operator Framework SDK and its dependencies; Go, Kubectl and Docker CLI.
It is likely that the docker socket is not writeable after the container is built. To fix this, run a shell outside the devcontainer as follows:
docker exec <name of container> chgrp root:docker /var/run/docker.sock
docker exec <name of container> chmod g+w /var/run/docker.sock
Start the lessons, or look at the branch 3-controller
for a finished project.