Skip to content

Commit

Permalink
Pass HealthProbe port in main
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhaseeb2 committed May 24, 2021
1 parent 17569bb commit e5ed1b2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ func main() {

// Manager options
options := ctrl.Options{
Scheme: scheme,
MetricsBindAddress: metricsAddr,
Port: 9443,
LeaderElection: enableLeaderElection,
LeaderElectionID: "48610e2b.stakater.com",
Namespace: watchNamespace, // namespaced-scope when the value is not an empty string
Scheme: scheme,
MetricsBindAddress: metricsAddr,
Port: 9443,
HealthProbeBindAddress: probeAddr,
LeaderElection: enableLeaderElection,
LeaderElectionID: "48610e2b.stakater.com",
Namespace: watchNamespace, // namespaced-scope when the value is not an empty string
}

// Add support for MultiNamespace set in WATCH_NAMESPACE (e.g ns1,ns2)
Expand Down

0 comments on commit e5ed1b2

Please sign in to comment.