Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 93566cb

Browse files
authored
use current namespace for leader election resources (#74)
1 parent cecf0e4 commit 93566cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ func main() {
226226
Scheme: scheme,
227227
LeaderElectionID: "storageos-portal-manager-leader",
228228
LeaderElectionResourceLock: resourcelock.LeasesResourceLock,
229+
LeaderElectionNamespace: currentNS,
229230
RenewDeadline: &renewDeadline,
230231
LeaseDuration: &leaseDuration,
231232
RetryPeriod: &leaderRetryDuration,

0 commit comments

Comments
 (0)