Skip to content

Commit

Permalink
Merge pull request hashicorp#7558 from hashicorp/b-ensure-correct-plu…
Browse files Browse the repository at this point in the history
…gin-version-mapping

plugin: ensure plugin loader maps correct API version to type.
  • Loading branch information
jrasell committed Apr 1, 2020
2 parents 6cd6af4 + d29f790 commit 4b1d680
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helper/pluginutils/loader/api_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ 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: {device.ApiVersion010},
base.PluginTypeDriver: {drivers.ApiVersion010},
}
)

0 comments on commit 4b1d680

Please sign in to comment.