diff --git a/pkg/kubelet/cm/devicemanager/device_plugin_stub.go b/pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go similarity index 99% rename from pkg/kubelet/cm/devicemanager/device_plugin_stub.go rename to pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go index ef1ca4569e6..dee1a9414aa 100644 --- a/pkg/kubelet/cm/devicemanager/device_plugin_stub.go +++ b/pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package devicemanager +package v1beta1 import ( "context" diff --git a/test/images/sample-device-plugin/VERSION b/test/images/sample-device-plugin/VERSION index 7e32cd56983..c068b2447cc 100644 --- a/test/images/sample-device-plugin/VERSION +++ b/test/images/sample-device-plugin/VERSION @@ -1 +1 @@ -1.3 +1.4 diff --git a/test/images/sample-device-plugin/sampledeviceplugin.go b/test/images/sample-device-plugin/sampledeviceplugin.go index c3750488561..824b19788cf 100644 --- a/test/images/sample-device-plugin/sampledeviceplugin.go +++ b/test/images/sample-device-plugin/sampledeviceplugin.go @@ -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)