operator-framework / operator-sdk

SDK for building Kubernetes applications. Provides high level APIs, useful abstractions, and project scaffolding.
https://sdk.operatorframework.io
Apache License 2.0
7.23k stars 1.75k forks source link

Check and doc the steps required to use the `leader.Become` and be able to run locally #3677

Open camilamacedo86 opened 4 years ago

camilamacedo86 commented 4 years ago

The goal of this task is to identify the required steps for we are able to make the leader.Become from the operator-lib work when we run it locally as well. See in https://github.com/operator-framework/operator-sdk/issues/3676 the steps used to check it running succefully in the cluster.

$ make run 
/Users/camilamacedo/go/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
go fmt ./...
go vet ./...
/Users/camilamacedo/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
go run ./main.go
2020-08-07T12:49:07.299+0100    INFO    leader  Trying to become the leader.
exit status 1
make: *** [Makefile:40: run] Error 1
openshift-bot commented 3 years ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

camilamacedo86 commented 3 years ago

/lifecycle frozen