To be albe to run and debug your operator locally not by using operator-sdk up local
command
but straight from ( in my case ) JetBrain's GoLang IDE, do the following
- Export env var
KUBERNETES_CONFIG=/path/to/your/kube/config/file
- Export env var
WATCH_NAMESPACE=default
(or any other namespace you like to wath) - Run main.go file from
cmd
dir