Skip to content

Commit 0e8bea8

Browse files
authored
Merge pull request #417 from mythi/r18
Prepare for release-0.18
2 parents a9dbd72 + fdc4703 commit 0e8bea8

26 files changed

+55
-58
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pipeline {
1111
RUNC_VERSION="v1.0.0-rc90"
1212
CRIO_VERSION="v1.18.2"
1313
GOLANGCI_LINT_VERSION="v1.27.0"
14-
BUILDAH_VERSION="v1.15.0"
14+
BUILDAH_VERSION="v1.14.9"
1515
GO_VERSION="1.13.12"
1616
GO_TAR="go${GO_VERSION}.linux-amd64.tar.gz"
1717
GOROOT="/usr/local/go"

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ endif
4141

4242
test-with-kind:
4343
@build/docker/build-image.sh intel/intel-fpga-admissionwebhook buildah
44-
@$(PODMAN) tag localhost/intel/intel-fpga-admissionwebhook:devel docker.io/intel/intel-fpga-admissionwebhook:devel
44+
@$(PODMAN) tag localhost/intel/intel-fpga-admissionwebhook:0.18.0 docker.io/intel/intel-fpga-admissionwebhook:0.18.0
4545
@mkdir -p $(e2e_tmp_dir)
46-
@$(PODMAN) save "docker.io/intel/intel-fpga-admissionwebhook:devel" -o $(e2e_tmp_dir)/$(WEBHOOK_IMAGE_FILE)
46+
@$(PODMAN) save "docker.io/intel/intel-fpga-admissionwebhook:0.18.0" -o $(e2e_tmp_dir)/$(WEBHOOK_IMAGE_FILE)
4747
@$(KIND) create cluster --name "intel-device-plugins" --kubeconfig $(e2e_tmp_dir)/kubeconfig --image "kindest/node:v1.17.0"
4848
@$(KIND) load image-archive --name "intel-device-plugins" $(e2e_tmp_dir)/$(WEBHOOK_IMAGE_FILE)
4949
@$(GO) test -v ./test/e2e -args -kubeconfig $(e2e_tmp_dir)/kubeconfig -kubectl-path $(KUBECTL) -ginkgo.focus "Webhook" || rc=1; \
@@ -88,7 +88,7 @@ clean:
8888

8989
ORG?=intel
9090
REG?=$(ORG)/
91-
TAG?=devel
91+
TAG?=0.18.0
9292
export TAG
9393

9494
pre-pull:

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ matching Kubernetes versions are listed below:
217217

218218
| Branch | Kubernetes branch/version |
219219
|:------------------|:-------------------------------|
220+
| release-0.18 | Kubernetes 1.18 branch v1.18.x |
220221
| release-0.17 | Kubernetes 1.17 branch v1.17.x |
221222
| release-0.15 | Kubernetes 1.15 branch v1.15.x |
222223
| release-0.11 | Kubernetes 1.11 branch v1.11.x |

build/docker/intel-deviceplugin-operator.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux/golang:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux/golang@sha256:9f04d3cc0ca3f6951ab3646639b43eb73e963a7cee7322d619a02c7eeecce711
1010

1111
FROM ${CLEAR_LINUX_BASE} as builder
1212

13-
ARG CLEAR_LINUX_VERSION=
13+
ARG CLEAR_LINUX_VERSION="--version=33450"
1414

1515
RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION}
1616

build/docker/intel-fpga-admissionwebhook.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux/golang:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux/golang@sha256:9f04d3cc0ca3f6951ab3646639b43eb73e963a7cee7322d619a02c7eeecce711
1010

1111
FROM ${CLEAR_LINUX_BASE} as builder
1212

13-
ARG CLEAR_LINUX_VERSION=
13+
ARG CLEAR_LINUX_VERSION="--version=33450"
1414

1515
RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION}
1616

build/docker/intel-fpga-initcontainer.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux/golang:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux/golang@sha256:9f04d3cc0ca3f6951ab3646639b43eb73e963a7cee7322d619a02c7eeecce711
1010

1111
FROM ${CLEAR_LINUX_BASE} as builder
1212

13-
ARG CLEAR_LINUX_VERSION=
13+
ARG CLEAR_LINUX_VERSION="--version=33450"
1414

1515
RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION}
1616

build/docker/intel-fpga-plugin.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux/golang:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux/golang@sha256:9f04d3cc0ca3f6951ab3646639b43eb73e963a7cee7322d619a02c7eeecce711
1010

1111
FROM ${CLEAR_LINUX_BASE} as builder
1212

13-
ARG CLEAR_LINUX_VERSION=
13+
ARG CLEAR_LINUX_VERSION="--version=33450"
1414

1515
RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION}
1616

build/docker/intel-gpu-plugin.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux/golang:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux/golang@sha256:9f04d3cc0ca3f6951ab3646639b43eb73e963a7cee7322d619a02c7eeecce711
1010

1111
FROM ${CLEAR_LINUX_BASE} as builder
1212

13-
ARG CLEAR_LINUX_VERSION=
13+
ARG CLEAR_LINUX_VERSION="--version=33450"
1414

1515
RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION}
1616

build/docker/intel-qat-plugin.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux/golang:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux/golang@sha256:9f04d3cc0ca3f6951ab3646639b43eb73e963a7cee7322d619a02c7eeecce711
1010

1111
FROM ${CLEAR_LINUX_BASE} as builder
1212

13-
ARG CLEAR_LINUX_VERSION=
13+
ARG CLEAR_LINUX_VERSION="--version=33450"
1414

1515
RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION}
1616

build/docker/intel-vpu-plugin.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux/golang:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux/golang@sha256:9f04d3cc0ca3f6951ab3646639b43eb73e963a7cee7322d619a02c7eeecce711
1010
FROM ${CLEAR_LINUX_BASE} as builder
11-
ARG CLEAR_LINUX_VERSION=
11+
ARG CLEAR_LINUX_VERSION="--version=33450"
1212

1313
RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION}
1414
RUN swupd bundle-add devpkg-libusb

cmd/fpga_admissionwebhook/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
To deploy the webhook, run
9191

9292
```bash
93-
$ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/fpga_admissionwebhook/default?ref=master
93+
$ kubectl apply -k https://github.com/intel/intel-device-plugins-for-kubernetes/deployments/fpga_admissionwebhook/default?ref=<target branch, e.g, release-xyz>
9494
namespace/intelfpgawebhook-system created
9595
customresourcedefinition.apiextensions.k8s.io/acceleratorfunctions.fpga.intel.com created
9696
customresourcedefinition.apiextensions.k8s.io/fpgaregions.fpga.intel.com created

demo/crypto-perf/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux@sha256:fc47d67eaa0f22c0a6c96250b485ae59e65b1b863ec91941935907c9e7210ae1
1010

1111
FROM ${CLEAR_LINUX_BASE} as builder
1212

13-
ARG CLEAR_LINUX_VERSION=
13+
ARG CLEAR_LINUX_VERSION="--version=33450"
1414

1515
RUN mkdir /install_root && \
1616
swupd os-install \

demo/intelfpga-job.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
restartPolicy: Never
1414
containers:
1515
- name: intelfpga-demo-job-1
16-
image: intel/opae-nlb-demo:devel
16+
image: intel/opae-nlb-demo:0.18.0
1717
imagePullPolicy: IfNotPresent
1818
securityContext:
1919
capabilities:

demo/opae-nlb-demo/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# This is used on release branches before tagging a stable version.
88
# The master branch defaults to using the latest Clear Linux.
9-
ARG CLEAR_LINUX_BASE=clearlinux:latest
9+
ARG CLEAR_LINUX_BASE=clearlinux@sha256:fc47d67eaa0f22c0a6c96250b485ae59e65b1b863ec91941935907c9e7210ae1
1010

1111
FROM ${CLEAR_LINUX_BASE} as builder
1212

13-
ARG CLEAR_LINUX_VERSION=
13+
ARG CLEAR_LINUX_VERSION="--version=33450"
1414

1515
RUN swupd update --no-boot-update ${CLEAR_LINUX_VERSION} && \
1616
swupd bundle-add wget c-basic devpkg-json-c devpkg-util-linux devpkg-hwloc doxygen patch

demo/test-fpga-orchestrated.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
containers:
77
- name: test-container
8-
image: intel/opae-nlb-demo:devel
8+
image: intel/opae-nlb-demo:0.18.0
99
imagePullPolicy: IfNotPresent
1010
securityContext:
1111
capabilities:

demo/test-fpga-preprogrammed.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
containers:
77
- name: test-container
8-
image: intel/opae-nlb-demo:devel
8+
image: intel/opae-nlb-demo:0.18.0
99
imagePullPolicy: IfNotPresent
1010
securityContext:
1111
capabilities:

deployments/fpga_admissionwebhook/manager/manager.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
control-plane: controller-manager
1717
spec:
1818
containers:
19-
- image: intel/intel-fpga-admissionwebhook:devel
19+
- image: intel/intel-fpga-admissionwebhook:0.18.0
2020
imagePullPolicy: IfNotPresent
2121
name: manager
2222
securityContext:

deployments/fpga_plugin/base/intel-fpga-plugin-daemonset.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
spec:
2222
initContainers:
2323
- name: intel-fpga-initcontainer
24-
image: intel/intel-fpga-initcontainer:devel
24+
image: intel/intel-fpga-initcontainer:0.18.0
2525
imagePullPolicy: IfNotPresent
2626
securityContext:
2727
readOnlyRootFilesystem: true
@@ -37,7 +37,7 @@ spec:
3737
valueFrom:
3838
fieldRef:
3939
fieldPath: spec.nodeName
40-
image: intel/intel-fpga-plugin:devel
40+
image: intel/intel-fpga-plugin:0.18.0
4141
imagePullPolicy: IfNotPresent
4242
args:
4343
- -mode=af

deployments/gpu_plugin/base/intel-gpu-plugin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
valueFrom:
2121
fieldRef:
2222
fieldPath: spec.nodeName
23-
image: intel/intel-gpu-plugin:devel
23+
image: intel/intel-gpu-plugin:0.18.0
2424
imagePullPolicy: IfNotPresent
2525
securityContext:
2626
readOnlyRootFilesystem: true

deployments/operator/manager/manager.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
control-plane: controller-manager
2424
spec:
2525
containers:
26-
- image: intel/intel-deviceplugin-operator:devel
26+
- image: intel/intel-deviceplugin-operator:0.18.0
2727
name: manager
2828
resources:
2929
limits:

deployments/qat_dpdk_app/base/crypto-perf-dpdk-pod-requesting-qat.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
containers:
77
- name: crypto-perf
8-
image: intel/crypto-perf:devel
8+
image: intel/crypto-perf:0.18.0
99
imagePullPolicy: IfNotPresent
1010
command: [ "/bin/bash", "-c", "--" ]
1111
args: [ "while true; do sleep 300000; done;" ]

deployments/qat_plugin/base/intel-qat-kernel-plugin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
securityContext:
1919
readOnlyRootFilesystem: true
2020
privileged: true
21-
image: intel/intel-qat-plugin:devel
21+
image: intel/intel-qat-plugin:0.18.0
2222
imagePullPolicy: IfNotPresent
2323
args: ["-mode", "kernel"]
2424
volumeMounts:

deployments/qat_plugin/base/intel-qat-plugin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: intel-qat-plugin
18-
image: intel/intel-qat-plugin:devel
18+
image: intel/intel-qat-plugin:0.18.0
1919
securityContext:
2020
readOnlyRootFilesystem: true
2121
env:

deployments/vpu_plugin/base/intel-vpu-plugin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
valueFrom:
2121
fieldRef:
2222
fieldPath: spec.nodeName
23-
image: intel/intel-vpu-plugin:devel
23+
image: intel/intel-vpu-plugin:0.18.0
2424
imagePullPolicy: IfNotPresent
2525
securityContext:
2626
readOnlyRootFilesystem: true

scripts/set-version.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ if [ $# != 1 ] || [ "$1" = "?" ] || [ "$1" = "--help" ]; then
1515
exit 1
1616
fi
1717

18-
sed -i -e "s;\(^TAG?*=\|intel/crypto-perf:\|intel/opae-nlb-demo:\|intel/intel-[^ ]*:\)[^ ]*;\1$1;g" $(git grep -l '^TAG?*=\|intel/crypto-perf:\|intel/opae-nlb-demo:\|intel/intel-[^ ]*:' Makefile deployments demo/*fpga*.yaml)
18+
sed -i -e "s;\(^TAG?*=\|intel/crypto-perf:\|intel/opae-nlb-demo:\|intel/intel-[^ ]*:\)[^ \"]*;\1$1;g" $(git grep -l '^TAG?*=\|intel/crypto-perf:\|intel/opae-nlb-demo:\|intel/intel-[^ ]*:' Makefile deployments demo/*fpga*.yaml)

test/e2e/fpga/fpga.go

+18-22
Original file line numberDiff line numberDiff line change
@@ -35,49 +35,42 @@ import (
3535
)
3636

3737
const (
38-
pluginKustomizationYaml = "deployments/fpga_plugin/base/kustomization.yaml"
39-
webhookKustomizationYaml = "deployments/fpga_admissionwebhook/default/kustomization.yaml"
40-
nlb0NodeResource = "fpga.intel.com/af-695.d84.aVKNtusxV3qMNmj5-qCB9thCTcSko8QT-J5DNoP5BAs"
41-
nlb0PodResource = "fpga.intel.com/arria10.dcp1.2-nlb0-orchestrated"
42-
nlb3PodResource = "fpga.intel.com/arria10.dcp1.2-nlb3-orchestrated"
43-
nlb0PodResourceAF = "fpga.intel.com/arria10.dcp1.2-nlb0-preprogrammed"
44-
arria10NodeResource = "fpga.intel.com/region-69528db6eb31577a8c3668f9faa081f6"
38+
pluginKustomizationYaml = "deployments/fpga_plugin/base/kustomization.yaml"
39+
mappingsCollectionYaml = "deployments/fpga_admissionwebhook/mappings-collection.yaml"
40+
nlb0NodeResource = "fpga.intel.com/af-695.d84.aVKNtusxV3qMNmj5-qCB9thCTcSko8QT-J5DNoP5BAs"
41+
nlb0PodResource = "fpga.intel.com/arria10.dcp1.2-nlb0-orchestrated"
42+
nlb3PodResource = "fpga.intel.com/arria10.dcp1.2-nlb3-orchestrated"
43+
nlb0PodResourceAF = "fpga.intel.com/arria10.dcp1.2-nlb0-preprogrammed"
44+
arria10NodeResource = "fpga.intel.com/region-69528db6eb31577a8c3668f9faa081f6"
4545
)
4646

4747
func init() {
4848
ginkgo.Describe("FPGA Plugin E2E tests", describe)
4949
}
5050

5151
func describe() {
52-
webhookKustomizationPath, err := utils.LocateRepoFile(webhookKustomizationYaml)
52+
pluginKustomizationPath, err := utils.LocateRepoFile(pluginKustomizationYaml)
5353
if err != nil {
54-
framework.Failf("unable to locate %q: %v", webhookKustomizationYaml, err)
54+
framework.Failf("unable to locate %q: %v", pluginKustomizationYaml, err)
5555
}
5656

57-
pluginKustomizationPath, err := utils.LocateRepoFile(pluginKustomizationYaml)
57+
mappingsCollectionPath, err := utils.LocateRepoFile(mappingsCollectionYaml)
5858
if err != nil {
59-
framework.Failf("unable to locate %q: %v", pluginKustomizationYaml, err)
59+
framework.Failf("unable to locate %q: %v", mappingsCollectionYaml, err)
6060
}
6161

6262
fmw := framework.NewDefaultFramework("fpgaplugin-e2e")
6363

6464
ginkgo.It("Run FPGA plugin tests", func() {
65-
// Deploy webhook
66-
ginkgo.By(fmt.Sprintf("namespace %s: deploying webhook", fmw.Namespace.Name))
67-
utils.DeployFpgaWebhook(fmw, webhookKustomizationPath)
68-
69-
ginkgo.By("deploying mappings")
70-
framework.RunKubectlOrDie(fmw.Namespace.Name, "apply", "-n", fmw.Namespace.Name, "-f", filepath.Dir(webhookKustomizationPath)+"/../mappings-collection.yaml")
71-
7265
// Run region test case twice to ensure that device is reprogrammed at least once
73-
runTestCase(fmw, pluginKustomizationPath, "region", arria10NodeResource, nlb3PodResource, "nlb3", "nlb0")
74-
runTestCase(fmw, pluginKustomizationPath, "region", arria10NodeResource, nlb0PodResource, "nlb0", "nlb3")
66+
runTestCase(fmw, pluginKustomizationPath, mappingsCollectionPath, "region", arria10NodeResource, nlb3PodResource, "nlb3", "nlb0")
67+
runTestCase(fmw, pluginKustomizationPath, mappingsCollectionPath, "region", arria10NodeResource, nlb0PodResource, "nlb0", "nlb3")
7568
// Run af test case
76-
runTestCase(fmw, pluginKustomizationPath, "af", nlb0NodeResource, nlb0PodResourceAF, "nlb0", "nlb3")
69+
runTestCase(fmw, pluginKustomizationPath, mappingsCollectionPath, "af", nlb0NodeResource, nlb0PodResourceAF, "nlb0", "nlb3")
7770
})
7871
}
7972

80-
func runTestCase(fmw *framework.Framework, pluginKustomizationPath, pluginMode, nodeResource, podResource, cmd1, cmd2 string) {
73+
func runTestCase(fmw *framework.Framework, pluginKustomizationPath, mappingsCollectionPath, pluginMode, nodeResource, podResource, cmd1, cmd2 string) {
8174
tmpDir, err := ioutil.TempDir("", "fpgaplugine2etest-"+fmw.Namespace.Name)
8275
if err != nil {
8376
framework.Failf("unable to create temp directory: %v", err)
@@ -93,6 +86,9 @@ func runTestCase(fmw *framework.Framework, pluginKustomizationPath, pluginMode,
9386
_, _ = framework.RunKubectl(fmw.Namespace.Name, "delete", "-k", tmpDir)
9487
framework.RunKubectlOrDie(fmw.Namespace.Name, "apply", "-k", tmpDir)
9588

89+
ginkgo.By("deploying mappings")
90+
framework.RunKubectlOrDie(fmw.Namespace.Name, "apply", "-n", fmw.Namespace.Name, "-f", mappingsCollectionPath)
91+
9692
waitForPod(fmw, "intel-fpga-plugin")
9793

9894
resource := v1.ResourceName(nodeResource)

0 commit comments

Comments
 (0)