-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for v1beta1 device plugin API. #55
Conversation
c6035a7
to
ee03db1
Compare
Makefile
Outdated
|
||
build: | ||
go install ${REPO}/pkg/gpu/nvidia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to install
Dockerfile
Outdated
@@ -15,6 +15,7 @@ | |||
FROM golang:1.9-alpine as builder | |||
WORKDIR /go/src/github.com/GoogleCloudPlatform/container-engine-accelerators | |||
COPY . . | |||
RUN go install github.com/GoogleCloudPlatform/container-engine-accelerators/pkg/gpu/nvidia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
Fix the |
f24568e
to
7a0fe87
Compare
pkg/gpu/nvidia/manager.go
Outdated
) | ||
|
||
var ( | ||
hostPathPrefix = flag.String("host-path", "/home/kubernetes/bin/nvidia", "Path on the host that contains nvidia libraries. This will be mounted inside the container as '-container-path'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Flags should be in injected to libraries.
LGTM |
Thanks a lot for the quick review! |
Other than unit tests, also ran GPUDevicePlugin e2e test with and without PR kubernetes/kubernetes#58282 to make sure the gke gpu device plugin works with both v1alpha kubelet and v1beta1 kubelet.