Skip to content

Commit 4aa0e0f

Browse files
committed
Update dependencies to latest libraries
1 parent 9fb65b2 commit 4aa0e0f

File tree

2,594 files changed

+279091
-59268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,594 files changed

+279091
-59268
lines changed

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 Advanced Micro Devices, Inc. All rights reserved.
1+
# Copyright 2022 Advanced Micro Devices, Inc. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -11,17 +11,21 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM golang:1.15.7-alpine3.13
14+
FROM docker.io/golang:1.19.2-alpine3.16
1515
RUN apk --no-cache add git pkgconfig build-base libdrm-dev
1616
RUN apk --no-cache add hwloc-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
1717
RUN mkdir -p /go/src/github.com/RadeonOpenCompute/k8s-device-plugin
1818
ADD . /go/src/github.com/RadeonOpenCompute/k8s-device-plugin
19+
WORKDIR /go/src/github.com/RadeonOpenCompute/k8s-device-plugin/cmd/k8s-device-plugin
1920
RUN go install \
20-
-ldflags="-X main.gitDescribe=$(git -C /go/src/github.com/RadeonOpenCompute/k8s-device-plugin/ describe --always --long --dirty)" \
21-
github.com/RadeonOpenCompute/k8s-device-plugin/cmd/k8s-device-plugin
21+
-ldflags="-X main.gitDescribe=$(git -C /go/src/github.com/RadeonOpenCompute/k8s-device-plugin/ describe --always --long --dirty)"
2222

23-
FROM alpine:3.13
24-
MAINTAINER Kenny Ho <[email protected]>
23+
FROM alpine:3.16
24+
LABEL \
25+
org.opencontainers.image.source="https://github.com/RadeonOpenCompute/k8s-device-plugin" \
26+
org.opencontainers.image.authors="Kenny Ho <[email protected]>" \
27+
org.opencontainers.image.vendor="Advanced Micro Devices, Inc." \
28+
org.opencontainers.image.licenses="Apache-2.0"
2529
RUN apk --no-cache add ca-certificates libdrm
2630
RUN apk --no-cache add hwloc --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
2731
WORKDIR /root/

cmd/k8s-device-plugin/main.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,15 @@ func (p *Plugin) ListAndWatch(e *pluginapi.Empty, s pluginapi.DevicePlugin_ListA
192192
// returning a value with this function will unregister the plugin from k8s
193193
}
194194

195+
// GetPreferredAllocation returns a preferred set of devices to allocate
196+
// from a list of available ones. The resulting preferred allocation is not
197+
// guaranteed to be the allocation ultimately performed by the
198+
// devicemanager. It is only designed to help the devicemanager make a more
199+
// informed allocation decision when possible.
200+
func (p *Plugin) GetPreferredAllocation(context.Context, *pluginapi.PreferredAllocationRequest) (*pluginapi.PreferredAllocationResponse, error) {
201+
return &pluginapi.PreferredAllocationResponse{}, nil
202+
}
203+
195204
// Allocate is called during container creation so that the Device
196205
// Plugin can run device specific operations and instruct Kubelet
197206
// of the steps to make the Device available in the container

go.mod

Lines changed: 69 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,74 @@
11
module github.com/RadeonOpenCompute/k8s-device-plugin
22

3-
go 1.15
3+
go 1.19
44

55
require (
6-
github.com/go-logr/logr v0.3.0
7-
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
8-
github.com/kubevirt/device-plugin-manager v1.18.8
9-
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
10-
google.golang.org/grpc v1.35.0 // indirect
11-
k8s.io/api v0.20.2
12-
k8s.io/apimachinery v0.20.2
13-
k8s.io/kubelet v0.18.8
14-
sigs.k8s.io/controller-runtime v0.8.1
6+
github.com/go-logr/logr v1.2.3
7+
github.com/golang/glog v1.0.0
8+
github.com/kubevirt/device-plugin-manager v1.19.3
9+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b
10+
k8s.io/api v0.25.2
11+
k8s.io/apimachinery v0.25.2
12+
k8s.io/kubelet v0.25.2
13+
sigs.k8s.io/controller-runtime v0.13.0
14+
)
15+
16+
require (
17+
github.com/PuerkitoBio/purell v1.1.1 // indirect
18+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
19+
github.com/beorn7/perks v1.0.1 // indirect
20+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
21+
github.com/davecgh/go-spew v1.1.1 // indirect
22+
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
23+
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
24+
github.com/fsnotify/fsnotify v1.5.4 // indirect
25+
github.com/go-logr/zapr v1.2.3 // indirect
26+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
27+
github.com/go-openapi/jsonreference v0.19.5 // indirect
28+
github.com/go-openapi/swag v0.19.14 // indirect
29+
github.com/gogo/protobuf v1.3.2 // indirect
30+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
31+
github.com/golang/protobuf v1.5.2 // indirect
32+
github.com/google/gnostic v0.5.7-v3refs // indirect
33+
github.com/google/go-cmp v0.5.8 // indirect
34+
github.com/google/gofuzz v1.1.0 // indirect
35+
github.com/google/uuid v1.1.2 // indirect
36+
github.com/imdario/mergo v0.3.12 // indirect
37+
github.com/josharian/intern v1.0.0 // indirect
38+
github.com/json-iterator/go v1.1.12 // indirect
39+
github.com/mailru/easyjson v0.7.6 // indirect
40+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
41+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
42+
github.com/modern-go/reflect2 v1.0.2 // indirect
43+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
44+
github.com/pkg/errors v0.9.1 // indirect
45+
github.com/prometheus/client_golang v1.12.2 // indirect
46+
github.com/prometheus/client_model v0.2.0 // indirect
47+
github.com/prometheus/common v0.32.1 // indirect
48+
github.com/prometheus/procfs v0.7.3 // indirect
49+
github.com/spf13/pflag v1.0.5 // indirect
50+
go.uber.org/atomic v1.7.0 // indirect
51+
go.uber.org/multierr v1.6.0 // indirect
52+
go.uber.org/zap v1.21.0 // indirect
53+
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
54+
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
55+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
56+
golang.org/x/text v0.3.7 // indirect
57+
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect
58+
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
59+
google.golang.org/appengine v1.6.7 // indirect
60+
google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21 // indirect
61+
google.golang.org/grpc v1.47.0 // indirect
62+
google.golang.org/protobuf v1.28.0 // indirect
63+
gopkg.in/inf.v0 v0.9.1 // indirect
64+
gopkg.in/yaml.v2 v2.4.0 // indirect
65+
gopkg.in/yaml.v3 v3.0.1 // indirect
66+
k8s.io/client-go v0.25.2 // indirect
67+
k8s.io/component-base v0.25.2 // indirect
68+
k8s.io/klog/v2 v2.70.1 // indirect
69+
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect
70+
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed // indirect
71+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
72+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
73+
sigs.k8s.io/yaml v1.3.0 // indirect
1574
)

0 commit comments

Comments
 (0)