mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-18 03:56:43 +00:00
fix: missing leader election namespace when running out-of-cluster (#2079)
Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
This commit is contained in:
@@ -556,9 +556,10 @@ func main() {
|
||||
Port: webhookPort,
|
||||
TLSOpts: webhookTLSOpts,
|
||||
}),
|
||||
LeaderElection: enableLeaderElection,
|
||||
LeaderElectionID: "42c733ea.clastix.capsule.io",
|
||||
HealthProbeBindAddress: ":10080",
|
||||
LeaderElection: enableLeaderElection,
|
||||
LeaderElectionID: "42c733ea.clastix.capsule.io",
|
||||
LeaderElectionNamespace: ns,
|
||||
HealthProbeBindAddress: ":10080",
|
||||
NewClient: func(config *rest.Config, options client.Options) (client.Client, error) {
|
||||
options.Cache.Unstructured = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user