Commit Graph

51 Commits

Author SHA1 Message Date
Mikko Ylinen
a5b3f0b2c1 ci: fix image base layer test
with docker 23.0.0, the builder defaults to Buildx which changed
how multi-stage builds are done. It looks the images used during
builds are no longer part of "docker images" which make the image
base layer test to fail:

Testing docker.io/intel/intel-deviceplugin-operator:devel base layer
Error: No such object: gcr.io/distroless/static
ERROR: failed to inspect gcr.io/distroless/static

Therefore, we must ensure gcr.io/distroless/static is pulled before
the image base layer is checked.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-04-24 16:30:20 +03:00
Mikko Ylinen
24f1d55404 scripts: drop update-clear-linux-base.sh
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-12-19 10:05:30 +02:00
Ed Bartosh
4a445a1df6 set-version: remove forgotten charts directory
This should fix the following set-version issue:

./scripts/set-version.sh bla
fatal: charts: no such path in the working tree.
Use 'git <command> -- <path>...' to specify paths that do not exist locally.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2022-10-06 14:15:32 +03:00
Ed Bartosh
a3cc2e3c50 set-version: fix exit code issue
set-version exits with 0 even if there are errors in the script.
This makes CI to ignore set-version failures.

Doing some weird sh magic + adding -eu option should fix the issue.
2022-10-06 14:15:32 +03:00
Ed Bartosh
d4025ed64d
Merge pull request #1127 from ozhuraki/e2e-qat
qat: Add e2e tests
2022-09-03 08:11:42 +03:00
Oleg Zhurakivskyy
c142f6864f qat: Add e2e tests
Closes #950

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-09-02 13:11:45 +03:00
Ed Bartosh
f814591a3d add helper script to upgrade k8s
- added helper script
  from https://github.com/kubernetes/kubernetes/issues/79384#issuecomment-521493597
  to scripts/upgrade-k8s.sh

- removed bashisms from the script

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2022-09-02 00:04:17 +03:00
Ed Bartosh
7f415f54a1 e2e-dlb: make tests working in Simics
- used different pods for PF and VF workloads
- increased waiting timeout to 200s
- used 'epoll' waiting mode for test apps
- decreased amount of packets from 128 to 8 for test apps
- output pod logs
- done small code optimisations

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2022-06-17 14:22:33 +03:00
Oleg Zhurakivskyy
f1ec14d106 iaa: Add e2e tests
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2022-06-09 15:00:25 +03:00
Ed Bartosh
3df93cf04f rename image dsa-accel-config-demo -> accel-config-demo 2022-06-08 21:00:54 +03:00
Oleg Zhurakivskyy
710aaaee23 dsa: Add e2e tests
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2022-06-01 11:25:12 +03:00
Ed Bartosh
7cc399ddfd set-version: update list of images and target files 2022-04-25 00:17:51 +03:00
Ruslan Mstoi
7b94fefcc9 scripts: set-version: update values tag of charts
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
2022-04-11 14:39:45 +03:00
Ruslan Mstoi
22507602ee Add helm charts
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
2022-04-11 14:39:13 +03:00
Mikko Ylinen
b7d0e7e168
ci: test image base layer before push (#902)
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-02-25 13:08:49 +02:00
Chaitanya Kulkarni
8c078f58e1
Images/Script - Added LABELs to all plugins (#894)
Added LABELs (name, vendor, version, release, summary, description) to all plugins and updated
scripts/set-version.sh script to include the LABEL version='<image-tag>' by passing TAG parameter
to make set-version TAG=<image-tag>

Signed-off-by: chaitanya1731 <chaitanya.kulkarni@intel.com>
2022-02-18 10:18:33 +02:00
Mikko Ylinen
00633107d7 images: move to use go-licenses
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-01-26 13:38:13 +02:00
Mikko Ylinen
7de376d539 scripts: fix shellcheck errors
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-01-12 15:49:04 +02:00
Mikko Ylinen
ab24c1e177 ci: drop old BMAAS
Jenkinsfile had a disabled stage that connected to a
BMAAS CI to run scripts/jenkins/* to do QAT validation.

These are no longer used so drop them.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-01-10 13:22:28 +02:00
Ukri Niemimuukko
a8f66c6d9f move topology testdata to ttar archive
This adds ttar and moves topology testdata to a ttar archive.

Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com>
2021-11-26 16:06:34 +02:00
Mikko Ylinen
c3cf958c85 images: move most plugin images to distroless/static
All but one (VPU) of the published container images can be built with
static binaries which allows us to use distroless/static as the
base image. Moreover, when combined with stripping the plugin binaries,
we can get both build time and image size savings.

This is the part 1 (out of 2) of the rework. Part 2 will finish the
change by making some adjustments to VPU plugin image and moving the
FPGA/SGX/GPU initcontainers to distroless/static too.

Partial: #516

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-05-19 09:44:47 +03:00
Oleg Zhurakivskyy
f9b368103a scripts: Add set-image-pull-policy.sh script 2020-11-12 14:46:30 +00:00
Mikko Ylinen
ae28b1c788 images: distribute copyleft sources
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-21 17:07:06 +03:00
Ed Bartosh
4794072273
Merge pull request #422 from rojkov/fpga-kubebuilder
fpga webhook: reimplement to use kubebuilder framework
2020-08-18 13:31:31 +03:00
Dmitry Rozhkov
a62c6f7d5e fpga webhook: reimplement to use kubebuilder framework
Simplify upgrade procedure to newer versions of kubernetes by relying on the
kubebuilder framework rather than using codegen directly.

Closes #377
2020-08-17 12:09:03 +03:00
Mikko Ylinen
b5b1f4f113 add release 0.18 to the supported releases table
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-07-02 11:04:28 +03:00
Dmitry Rozhkov
e87d94d4fb fpga: finalize plugin kustomization
closes #318
2020-07-01 11:57:45 +03:00
Dmitry Rozhkov
7177409f19 fpga webhook: rework deployment to use kustomize
Contributes to #318
2020-06-23 15:53:36 +03:00
Dmitry Rozhkov
c63dbf61b8 fpgawebhook: move to v2 API of fpga.intel.com group 2020-05-04 15:43:20 +03:00
Dmitry Rozhkov
6c2eacfae5 webhook: remove mode of operation
fpga: make AFU resource name 63 char long

webhook: drop mode from README

webhook: extend mappings description

webhook: tighten CRD definitions

webhook: drop mapping to non-existing afuId

explicitly state mappings names can be in any format

use consistent terminology across fpga webhook and plugin
2020-04-22 13:55:43 +03:00
Ed Bartosh
182601bdf7 run fpga plugin in arbitrary namespace 2020-04-09 17:01:56 +03:00
Antti Kervinen
7e2044b8a2 FPGA kustomization: fix signing certificate
The certificate got signed for wrong service name (fallback default
"webhook-svc") due to incorrectly passed parameter. This showed as
    "http: TLS handshake error from ... tls: bad certificate"
error in webhook pod logs.

Fixes: #303

Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
2020-02-26 12:41:21 +02:00
Antti Kervinen
5fe8174077 fpga_plugin: add kustomization files
- Add script/fpga-plugin-prepare-for-kustomization.sh, creates contents
  for the secret needed by the fpga plugin webhook.
- Single-command fpga plugin + webhook deployment for both modes:
  - `kubectl create -k deployments/fpga_plugin/overlays/af`
  - `kubectl create -k deployments/fpga_plugin/overlays/region`
- Change intel-fpga-plugin image CMD to ENTRYPOINT.
2020-02-24 16:32:26 +02:00
Antti Kervinen
0ab12861d7 fpga_plugin: add --output-dir to webhook-create-signed-cert
Setting --output-dir DIR enables writing contents of the secret to DIR
instead of creating the secret in the cluster. This allows creating
the secret later, for instance during fpga_plugin kustomization.

Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
2020-02-19 14:58:11 +02:00
Dmitry Rozhkov
43af3a054b e2e test: reimplement with K8s testing framework
Also add a test for the QAT device plugin in kernel mode.

Contributes to #253
2020-02-13 14:51:44 +02:00
Ed Bartosh
368f34c76b fpga: run webhook container with user privileges
Modified deployment template and script to run admission controller
webhook with user credentials.
2020-01-14 16:31:32 +02:00
Dmitry Rozhkov
263fb8aa31
Merge pull request #243 from bart0sh/PR0067-nitpicking
nitpicking
2020-01-09 10:13:43 +02:00
Ed Bartosh
a7be852af6 fpga: get rid of extra call of sed 2019-12-19 13:33:08 +02:00
Rivera Gonzalez, Julio C
a0ba1b38fe Add CI Jenkins stage with test case for intel-device-plugin: QAT
This commit adds bash scripts with the proper granularity for each sub-stage,
needed for QAT device main stage validation.

Signed-off-by: Rivera Gonzalez, Julio C <julio.c.rivera.gonzalez@intel.com>
2019-12-03 11:59:15 -06:00
Mikko Ylinen
27783e7b94 images: add LICENSEs
This commit adds a script that is (primarily) used in Dockerfiles
to install runtime Go dependencies' LICENSE/NOTICE files into the
image and modifies the Dockerfiles to use the script.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-11-13 10:50:57 +02:00
Mikko Ylinen
f596fc593f demo: rename clearlinux-demo-opae to opae-nlb-demo
opae-nlb-demo name is more descriptive about the content and becomes
base image agnostic.

Also, set ENTRYPOINT similar to what we did with other images
and deployment files.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-09-06 21:28:59 +03:00
Mikko Ylinen
ce6b47b1fd scripts: add a helper script to set image version tag
This is useful in release branches and CI where custom image
for test deployments must be set.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-08-29 13:21:42 +03:00
Mikko Ylinen
8363525eda Makefile: add lock-images to lock Clear Linux version
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-08-29 13:21:42 +03:00
Dmitry Rozhkov
5de8d18638 webhook: add --namespace option to deployment script 2018-08-10 15:57:55 +03:00
Dmitry Rozhkov
64e8485735 parameterize path to kubectl in webhook deployment script 2018-08-08 17:58:18 +03:00
Dmitry Rozhkov
763d229f65 webhook: adjust deployment script to accommodate CRDs 2018-08-08 17:58:18 +03:00
Dmitry Rozhkov
271bc0d29a webhook: add dynamically configured mappings
Currently we have hardcoded mapping from human readable names of
AFs and FPGA regions like arria10-nlb0 to the resource names
produced by the FPGA device plugin. This is not sustainable
long term solution.

Implement CRD based mappings so that a new mapping can be added or
removed dynamically by cluster admins with CRD resources.
2018-08-08 17:58:18 +03:00
Dmitry Rozhkov
eaff6f7f6f webhook-deploy.sh: error upon unknown option 2018-07-19 12:40:28 +03:00
Dmitry Rozhkov
a211d321d4 Make webhook-deploy.sh idempotent 2018-06-29 16:30:36 +03:00
Dmitry Rozhkov
3082d453ad extend webhook-deploy.sh to accept --mode
Since the webhook can operate in two modes, either `preprogrammed`
or `orchestrated`, extend the deploying script to support these
modes.
2018-06-29 16:30:36 +03:00