Skip to content

Commit

Permalink
add missed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vimystic committed Jan 14, 2025
1 parent 4a8790c commit 2ff50dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions config/manager/controller_manager_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ webhook:
leaderElection:
leaderElect: true
resourceName: 16e1bc09.strange.love
namespaceSelector:
regex: "*" # Selects all namespaces by default
# leaderElectionReleaseOnCancel defines if the leader should step down volume
# when the Manager ends. This requires the binary to immediately end when the
# Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
Expand Down
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ func startManager(cmd *cobra.Command, args []string) error {
HealthProbeBindAddress: probeAddr,
LeaderElection: enableLeaderElection,
LeaderElectionID: "16e1bc09.strange.love",
Namespace: namespaceRegex,
// LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
// when the Manager ends. This requires the binary to immediately end when the
// Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
Expand All @@ -163,6 +162,10 @@ func startManager(cmd *cobra.Command, args []string) error {
return fmt.Errorf("unable to start manager: %w", err)
}

fmt.Println("Manager started")
//Example Print.
fmt.Println("Port: ", mgr.GetWebhookServer().Port)

ctx := cmd.Context()

// CacheController which fetches CometBFT status in the background.
Expand Down

0 comments on commit 2ff50dc

Please sign in to comment.