mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Permit use of deprecated dir in device plugin.
This commit is contained in:
parent
aa8244beb5
commit
a7c5582bba
@ -249,10 +249,6 @@ func (m *ManagerImpl) GetWatcherHandler() watcher.PluginHandler {
|
|||||||
func (m *ManagerImpl) ValidatePlugin(pluginName string, endpoint string, versions []string, foundInDeprecatedDir bool) error {
|
func (m *ManagerImpl) ValidatePlugin(pluginName string, endpoint string, versions []string, foundInDeprecatedDir bool) error {
|
||||||
klog.V(2).Infof("Got Plugin %s at endpoint %s with versions %v", pluginName, endpoint, versions)
|
klog.V(2).Infof("Got Plugin %s at endpoint %s with versions %v", pluginName, endpoint, versions)
|
||||||
|
|
||||||
if foundInDeprecatedDir {
|
|
||||||
return fmt.Errorf("device plugin socket was found in a directory that is no longer supported")
|
|
||||||
}
|
|
||||||
|
|
||||||
if !m.isVersionCompatibleWithPlugin(versions) {
|
if !m.isVersionCompatibleWithPlugin(versions) {
|
||||||
return fmt.Errorf("manager version, %s, is not among plugin supported versions %v", pluginapi.Version, versions)
|
return fmt.Errorf("manager version, %s, is not among plugin supported versions %v", pluginapi.Version, versions)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user