2023-06-20 14:09:47 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2023-06-19 15:41:46 +00:00
|
|
|
|
|
|
|
//go:build !ent
|
|
|
|
// +build !ent
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
2023-06-20 14:09:47 +00:00
|
|
|
// Validate returns an error if the node pool scheduler configuration is
|
2023-06-19 15:41:46 +00:00
|
|
|
// invalid.
|
|
|
|
func (n *NodePoolSchedulerConfiguration) Validate() error {
|
|
|
|
if n != nil {
|
|
|
|
return errors.New("Node Pools Governance is unlicensed.")
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|