Skip to content
This repository was archived by the owner on Jun 4, 2021. It is now read-only.

Commit 1f575c2

Browse files
disable leader election (#173) (#1663)
1 parent 592d69f commit 1f575c2

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

kafka/channel/cmd/channel_dispatcher/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ func main() {
3535
ctx = injection.WithNamespaceScope(ctx, ns)
3636
}
3737

38+
// Do not run the dispatcher in leader-election mode
39+
ctx = sharedmain.WithHADisabled(ctx)
40+
3841
sharedmain.MainWithContext(ctx, component, controller.NewController)
3942
}

kafka/channel/config/roles/dispatcher-clusterrole.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,3 @@ rules:
6868
verbs:
6969
- create
7070
- patch
71-
- apiGroups:
72-
- "coordination.k8s.io"
73-
resources:
74-
- leases
75-
verbs:
76-
- get
77-
- list
78-
- watch
79-
- create
80-
- patch
81-
- update

0 commit comments

Comments
 (0)