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

Commit

Permalink
disable leader election (#173) (#1663)
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelvillard authored Nov 9, 2020
1 parent 592d69f commit 1f575c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions kafka/channel/cmd/channel_dispatcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ func main() {
ctx = injection.WithNamespaceScope(ctx, ns)
}

// Do not run the dispatcher in leader-election mode
ctx = sharedmain.WithHADisabled(ctx)

sharedmain.MainWithContext(ctx, component, controller.NewController)
}
11 changes: 0 additions & 11 deletions kafka/channel/config/roles/dispatcher-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,3 @@ rules:
verbs:
- create
- patch
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- list
- watch
- create
- patch
- update

0 comments on commit 1f575c2

Please sign in to comment.