Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding debug target on Makefile, fixing leaderElection and imageConfi… #611

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ build: generate fmt vet ## Build manager binary.

.PHONY: run
run: manifests generate fmt vet ## Run a controller from your host.
go run ./cmd/main.go
go run ./cmd/main.go --config=./config/manager/controller_manager_config.yaml

.PHONY: debug
debug: manifests build
dlv --listen=:2345 --headless=true --api-version=2 exec ./bin/manager -- \
--config=./config/manager/controller_manager_config.yaml

.PHONY: docker-build
docker-build: ## Build docker image with the manager.
Expand Down
4 changes: 2 additions & 2 deletions config/manager/controller_manager_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metrics:
webhook:
port: 9443
leaderElection:
leaderElect: true
leaderElect: false
resourceName: b569adb7.cassandra.datastax.com
disableWebhooks: true
imageConfigFile: /configs/image_config.yaml
imageConfigFile: ./config/manager/image_config.yaml
Loading