5dd4130a47
The plugin loader supplies a version map to ensure the Nomad agent can support the plugins at the version they specify. The map was incorrectly mapping the driver type to the device API supported version identifier. This currently does not cause a bug as both device and driver versions are the same string. This could cause problems in the future, however, if either plugin interface were to change and require version updates.
17 lines
428 B
Go
17 lines
428 B
Go
package loader
|
|
|
|
import (
|
|
"github.com/hashicorp/nomad/plugins/base"
|
|
"github.com/hashicorp/nomad/plugins/device"
|
|
"github.com/hashicorp/nomad/plugins/drivers"
|
|
)
|
|
|
|
var (
|
|
// AgentSupportedApiVersions is the set of API versions supported by the
|
|
// Nomad agent by plugin type.
|
|
AgentSupportedApiVersions = map[string][]string{
|
|
base.PluginTypeDevice: {device.ApiVersion010},
|
|
base.PluginTypeDriver: {drivers.ApiVersion010},
|
|
}
|
|
)
|