Skip to content

Commit

Permalink
fix main rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Cadetg committed May 3, 2024
1 parent e16334c commit e1a6f26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ test: manifests generate fmt vet envtest ## Run tests.

.PHONY: create-kind-cluster
create-kind-cluster:
docker network inspect $(KIND_CLUSTER) >/dev/null || docker network create $(KIND_CLUSTER)
kind create cluster --wait=60s --name=$(KIND_CLUSTER) --config=kind-config.yaml
@if ! kind get clusters | grep -q $(KIND_CLUSTER); then \
docker network inspect $(KIND_CLUSTER) >/dev/null 2>&1 || docker network create $(KIND_CLUSTER); \
kind create cluster --wait=60s --name=$(KIND_CLUSTER) --config=kind-config.yaml; \
else \
echo "Cluster $(KIND_CLUSTER) already exists"; \
fi

.PHONY: delete-kind-cluster
delete-kind-cluster:
Expand Down
5 changes: 0 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package main

import (
"crypto/tls"
"database/sql"
"flag"
"os"

Expand Down Expand Up @@ -127,10 +126,6 @@ func main() {
os.Exit(1)
}

mysqlClient := &mysql.MySQLImpl{
ConnectionCache: make(map[string]*sql.DB),
}

relDBClient := database.New()

if err = (&controller.DatabaseRequestReconciler{
Expand Down

0 comments on commit e1a6f26

Please sign in to comment.