github.com/hernad/nomad@v1.6.112/nomad/structs/node_pool_oss.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  //go:build !ent
     5  // +build !ent
     6  
     7  package structs
     8  
     9  import "errors"
    10  
    11  // Validate returns an error if the node pool scheduler configuration is
    12  // invalid.
    13  func (n *NodePoolSchedulerConfiguration) Validate() error {
    14  	if n != nil {
    15  		return errors.New("Node Pools Governance is unlicensed.")
    16  	}
    17  	return nil
    18  }