open-nomad/nomad/node_pool_endpoint_oss.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
394 B
Go
Raw Permalink Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//go:build !ent
// +build !ent
package nomad
import (
"errors"
"github.com/hashicorp/nomad/nomad/structs"
)
func (n *NodePool) validateLicense(pool *structs.NodePool) error {
if pool != nil && pool.SchedulerConfiguration != nil {
return errors.New(`Feature "Node Pools Governance" is unlicensed`)
}
return nil
}