2023-04-10 15:36:59 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-09-01 18:27:10 +00:00
|
|
|
//go:build !ent
|
|
|
|
// +build !ent
|
|
|
|
|
|
|
|
package nomad
|
|
|
|
|
|
|
|
import (
|
|
|
|
autopilot "github.com/hashicorp/raft-autopilot"
|
|
|
|
|
|
|
|
"github.com/hashicorp/nomad/nomad/structs"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (s *Server) autopilotPromoter() autopilot.Promoter {
|
|
|
|
return autopilot.DefaultPromoter()
|
|
|
|
}
|
|
|
|
|
|
|
|
// autopilotServerExt returns the autopilot-enterprise.Server extensions needed
|
|
|
|
// for ENT feature support, but this is the empty OSS implementation.
|
|
|
|
func (s *Server) autopilotServerExt(_ *serverParts) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// autopilotConfigExt returns the autopilot-enterprise.Config extensions needed
|
|
|
|
// for ENT feature support, but this is the empty OSS implementation.
|
|
|
|
func autopilotConfigExt(_ *structs.AutopilotConfig) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|