Skip to content

Commit

Permalink
Add vendor files for Implement Cluster for zedkube related functions
Browse files Browse the repository at this point in the history
 - Add vendor files for Implement Cluster for zedkube related functions

Signed-off-by: Naiming Shen <[email protected]>
  • Loading branch information
naiming-zededa committed Oct 31, 2024
1 parent 77d3002 commit 15e7b28
Show file tree
Hide file tree
Showing 10 changed files with 1,326 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pillar/cmd/zedkube/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func handleLeaderElection(ctx *zedkubeContext) {
}
}

// Function to signal the start of leader election
// SignalStartLeaderElection - to signal the start of leader election
func SignalStartLeaderElection(ctx *zedkubeContext) {
ctx.inKubeLeaderElection = true
select {
Expand All @@ -102,7 +102,7 @@ func SignalStartLeaderElection(ctx *zedkubeContext) {
}
}

// Function to signal the stop of leader election
// SignalStopLeaderElection - to signal the stop of leader election
func SignalStopLeaderElection(ctx *zedkubeContext) {
select {
case ctx.electionStopCh <- struct{}{}:
Expand Down
11 changes: 11 additions & 0 deletions pkg/pillar/vendor/k8s.io/client-go/tools/leaderelection/OWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 15e7b28

Please sign in to comment.