open-nomad/command/agent/agent_oss.go
Drew Bailey 34871f89be
Oss license support for ent builds (#8054)
* changes necessary to support oss licesning shims

revert nomad fmt changes

update test to work with enterprise changes

update tests to work with new ent enforcements

make check

update cas test to use scheduler algorithm

back out preemption changes

add comments

* remove unused method
2020-05-27 13:46:52 -04:00

24 lines
484 B
Go

// +build !ent
package agent
import (
hclog "github.com/hashicorp/go-hclog"
"github.com/hashicorp/nomad/nomad/structs/config"
)
// EnterpriseAgent holds information and methods for enterprise functionality
// in OSS it is an empty struct.
type EnterpriseAgent struct{}
func (a *Agent) setupEnterpriseAgent(log hclog.Logger) error {
// configure eventer
a.auditor = &noOpAuditor{}
return nil
}
func (a *Agent) entReloadEventer(cfg *config.AuditConfig) error {
return nil
}