mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Move DevicePluginStub implementation into new plugin package
Signed-off-by: Kevin Klues <kklues@nvidia.com>
This commit is contained in:
parent
db88676c20
commit
f6eaa25b71
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package devicemanager
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
"context"
|
@ -1 +1 @@
|
||||
1.3
|
||||
1.4
|
||||
|
@ -24,7 +24,7 @@ import (
|
||||
|
||||
"k8s.io/klog/v2"
|
||||
pluginapi "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1"
|
||||
dm "k8s.io/kubernetes/pkg/kubelet/cm/devicemanager"
|
||||
plugin "k8s.io/kubernetes/pkg/kubelet/cm/devicemanager/plugin/v1beta1"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -86,7 +86,7 @@ func main() {
|
||||
}
|
||||
socketPath := pluginSocksDir + "/dp." + fmt.Sprintf("%d", time.Now().Unix())
|
||||
|
||||
dp1 := dm.NewDevicePluginStub(devs, socketPath, resourceName, false, false)
|
||||
dp1 := plugin.NewDevicePluginStub(devs, socketPath, resourceName, false, false)
|
||||
if err := dp1.Start(); err != nil {
|
||||
panic(err)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user