Move DevicePluginStub implementation into new plugin package

Signed-off-by: Kevin Klues <kklues@nvidia.com>
This commit is contained in:
Kevin Klues 2022-03-25 10:46:25 +00:00
parent db88676c20
commit f6eaa25b71
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package devicemanager
package v1beta1
import (
"context"

View File

@ -1 +1 @@
1.3
1.4

View File

@ -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)