operator-framework/helm-operator-plugins

Unable to use enable-leader-election flag without inform an ID

camilamacedo86 opened this issue · 1 comments

 $ go run ../main.go --enable-leader-election=true
{"level":"info","ts":1592903497.46476,"logger":"setup","msg":"version information","go":"go1.13.12","GOOS":"darwin","GOARCH":"amd64","helm-operator":"0.0.0+git"}
{"level":"dpanic","ts":1592903497.464818,"logger":"setup","msg":"odd number of arguments passed as key-value pairs for logging","ignored key":""}
{"level":"info","ts":1592903497.4648151,"logger":"setup","msg":"leaderElectionID %v"}
{"level":"info","ts":1592903497.464832,"logger":"setup","msg":"watching all namespaces"}
{"level":"error","ts":1592903497.777029,"logger":"setup","msg":"unable to start manager","error":"LeaderElectionID must be configured"}
exit status 1

After our chat and the comment in https://github.com/joelanford/helm-operator/pull/39. I understand that the path will be changed the scaffold to add OPERATOR_NAME or just to pass the flag as it is done now. So, I am closing it as sorted out.