Skip to content

feat: add device plugin support to CNS #11711

feat: add device plugin support to CNS

feat: add device plugin support to CNS #11711

Triggered via pull request August 8, 2024 21:05
Status Failure
Total duration 8m 31s
Artifacts

golangci.yaml

on: pull_request
Matrix: Lint
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 2 warnings
Lint (1.21.x, ubuntu-latest): cns/deviceplugin/server.go#L41
cannot use s (variable of type *Server) as v1beta1.DevicePluginServer value in argument to v1beta1.RegisterDevicePluginServer: *Server does not implement v1beta1.DevicePluginServer (wrong type for method Allocate)
Lint (1.21.x, ubuntu-latest): cns/deviceplugin/pluginmanager_test.go#L11
could not import github.com/Azure/azure-container-networking/cns/deviceplugin (-: # github.com/Azure/azure-container-networking/cns/deviceplugin
Lint (1.21.x, ubuntu-latest): cns/deviceplugin/server.go#L41
cannot use s (variable of type *Server) as v1beta1.DevicePluginServer value in argument to v1beta1.RegisterDevicePluginServer: *Server does not implement v1beta1.DevicePluginServer (wrong type for method Allocate)
Lint (1.21.x, ubuntu-latest)
issues found
Lint (1.21.x, windows-latest)
cannot use s (variable of type *Server) as v1beta1.DevicePluginServer value in argument to v1beta1.RegisterDevicePluginServer: *Server does not implement v1beta1.DevicePluginServer (wrong type for method Allocate)\n\t\thave Allocate(*v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error)\n\t\twant Allocate(context.Context, *v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error)"
Lint (1.21.x, windows-latest)
cannot use s (variable of type *Server) as v1beta1.DevicePluginServer value in argument to v1beta1.RegisterDevicePluginServer: *Server does not implement v1beta1.DevicePluginServer (wrong type for method Allocate)\n\t\thave Allocate(*v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error)\n\t\twant Allocate(context.Context, *v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error))"
Lint (1.21.x, windows-latest)
golangci-lint exit with code 7
Lint (1.21.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/azure-container-networking/azure-container-networking. Supported file pattern: go.sum
Lint (1.21.x, windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\azure-container-networking\azure-container-networking. Supported file pattern: go.sum