diff --git a/agent/consul/enterprise_server_oss.go b/agent/consul/enterprise_server_oss.go index 238cbffde8..b17a7ca0b1 100644 --- a/agent/consul/enterprise_server_oss.go +++ b/agent/consul/enterprise_server_oss.go @@ -41,3 +41,11 @@ func (s *Server) handleEnterpriseLeave() { func (s *Server) enterpriseStats() map[string]map[string]string { return nil } + +func (s *Server) establishEnterpriseLeadership() error { + return nil +} + +func (s *Server) revokeEnterpriseLeadership() error { + return nil +} diff --git a/agent/consul/leader.go b/agent/consul/leader.go index 33efb4fc18..2c961e4315 100644 --- a/agent/consul/leader.go +++ b/agent/consul/leader.go @@ -309,6 +309,10 @@ func (s *Server) establishLeadership() error { return err } + if err := s.establishEnterpriseLeadership(); err != nil { + return err + } + // attempt to bootstrap config entries if err := s.bootstrapConfigEntries(s.config.ConfigEntryBootstrap); err != nil { return err @@ -340,6 +344,8 @@ func (s *Server) revokeLeadership() { // are no longer responsible for session expirations. s.clearAllSessionTimers() + s.revokeEnterpriseLeadership() + s.stopConfigReplication() s.stopConnectLeader()