Basic example of using the kube controller-runtime package. Example code stolen pretty much verbatim from the package's examples.
Broken into a separate repository so I could split component parts into separate commits to share with colleagues.
- Have a valid ~/.kube/config file pointing at the context you want to use
kubectl apply -f ./deploy.yamlgo run main.gokubectl scale deploy/hello --replicas=2kubectl get rs -Lpod-countto see label added by controller.