We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96b67f2 + d850185 commit e381b18Copy full SHA for e381b18
pkg/webhook/server.go
@@ -89,6 +89,12 @@ func (s *Server) setDefaults() {
89
}
90
91
92
+// NeedLeaderElection implements the LeaderElectionRunnable interface, which indicates
93
+// the webhook server doesn't need leader election.
94
+func (*Server) NeedLeaderElection() bool {
95
+ return false
96
+}
97
+
98
// Register marks the given webhook as being served at the given path.
99
// It panics if two hooks are registered on the same path.
100
func (s *Server) Register(path string, hook http.Handler) {
0 commit comments