How williamkoller/k8s-addon works
Project type and purpose
• This is a Kubernetes “operator” / controller addon written in Go.
File structure
• cmd/addon/: main.go entrypoint. Initializes the controller-runtime manager, metrics & health probes, and leader election.
• internal/controllers/: two reconcilers (NamespaceReconciler, NodeReconciler) implementing the controller pattern.
• manifests/: Kubernetes YAMLs—RBAC rules and Deployment manifest.
• Dockerfile, Makefile, and test scripts: build, image push, deploy, local/remote tests.
README for additional insights
• Uses the Kubernetes controller-runtime library.
• Exposes /metrics and /healthz, /readyz endpoints.
• Configurable via env vars or command-line flags.
• Performs leader election on coordination.k8s.io/leases.