diff --git a/Makefile b/Makefile index 77b99248..75ade1de 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ all: manager # Run tests test: generate fmt vet manifests - go test ./... -coverprofile cover.out + KUBEDL_CI=true go test ./... -coverprofile cover.out # Build manager binary manager: generate fmt vet diff --git a/main.go b/main.go index bb83d4fa..92d1365c 100644 --- a/main.go +++ b/main.go @@ -71,6 +71,7 @@ func main() { Scheme: scheme, MetricsBindAddress: ctrlMetricsAddr, LeaderElection: enableLeaderElection, + LeaderElectionID: "kubedl-election", Port: 9443, }) if err != nil {