fix: missing leader election namespace when running out-of-cluster (#2079)

Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
This commit is contained in:
Dario Tranchitella
2026-08-14 11:03:38 +02:00
committed by GitHub
parent 59123cf0ee
commit fbda18f6dd
+4 -3
View File
@@ -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