sys-cluster/rocm-k8s-device-plugin - 0.5.0 (gentoo)

Search

Package Information

Description:
AMD GPU device plugin for kubernetes
Homepage:
https://github.com/RadeonOpenCompute/k8s-device-plugin
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.5.0 8 ~amd64 0
View Raw Ebuild
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module
# update these on every bump
VERSION=v1.18.1-12-g939a8a0
TAG="amd-gpu-helm-${PV}"

DESCRIPTION="AMD GPU device plugin for kubernetes"
HOMEPAGE="https://github.com/RadeonOpenCompute/k8s-device-plugin"
SRC_URI="https://github.com/RadeonOpenCompute/k8s-device-plugin/archive/${TAG}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="sys-apps/hwloc
	x11-libs/libdrm[video_cards_amdgpu]"
RDEPEND="${DEPEND}
	sys-cluster/kubelet"

S="${WORKDIR}/k8s-device-plugin-${TAG}"

src_compile() {
	GOBIN="${S}/bin" \
		ego install \
		-ldflags="-X main.gitDescribe=${VERSION}" \
		./cmd/k8s-device-plugin
}

src_install() {
	exeinto /var/lib/kubelet/device-plugins
	doexe bin/k8s-device-plugin
	einstalldocs
}

Dependencies

DEPEND

sys-apps/hwloc
	x11-libs/libdrm[video_cards_amdgpu]

RDEPEND

sys-apps/hwloc
	x11-libs/libdrm[video_cards_amdgpu]
	sys-cluster/kubelet

Manifest for 0.5.0

Type File Size Source URLs
DIST rocm-k8s-device-plugin-0.5.0.tar.gz 6297528 bytes https://github.com/RadeonOpenCompute/k8s-device-plugin/archive/amd-gpu-helm-0.5.0.tar.gz