mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
move variable out of oss-only build into shared file, fixes ent compile error introduced by #8834
This commit is contained in:
@@ -34,6 +34,9 @@ const (
|
||||
DispatchPayloadSizeLimit = 16 * 1024
|
||||
)
|
||||
|
||||
// ErrMultipleNamespaces is send when multiple namespaces are used in the OSS setup
|
||||
var ErrMultipleNamespaces = errors.New("multiple vault namespaces requires Nomad Enterprise")
|
||||
|
||||
var (
|
||||
// allowRescheduleTransition is the transition that allows failed
|
||||
// allocations to be force rescheduled. We create a one off
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
package nomad
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
@@ -11,9 +10,6 @@ import (
|
||||
vapi "github.com/hashicorp/vault/api"
|
||||
)
|
||||
|
||||
// ErrMultipleNamespaces is send when multiple namespaces are used in the OSS setup
|
||||
var ErrMultipleNamespaces = errors.New("multiple vault namespaces requires Nomad Enterprise")
|
||||
|
||||
// enforceSubmitJob is used to check any Sentinel policies for the submit-job scope
|
||||
func (j *Job) enforceSubmitJob(override bool, job *structs.Job) (error, error) {
|
||||
return nil, nil
|
||||
|
||||
Reference in New Issue
Block a user