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.
1 parent 14347de commit e437f57Copy full SHA for e437f57
common/pkg/server/server.go
@@ -58,6 +58,12 @@ func (s *ServerOptions) AddFlags(fs *pflag.FlagSet) {
58
)
59
}
60
61
+// NeedLeaderElection implements the LeaderElectionRunnable interface, which indicates
62
+// the webhook server doesn't need leader election.
63
+func (*Server) NeedLeaderElection() bool {
64
+ return false
65
+}
66
+
67
func (s *Server) Start(ctx context.Context) error {
68
// Creates a logger to be used during the main func.
69
setupLog := ctrl.Log.WithName("runtimehooks")
0 commit comments