Commit Graph

29 Commits

Author SHA1 Message Date
Ed Bartosh
9360745ae5 e2e: increase WaitForSuccess timeout
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-10-20 11:48:47 +03:00
Ed Bartosh
a6078aa65d e2e: increase WaitForPodsWithLabelRunningReady timeout
Current timeout is too small and causes test failures
in CI environment.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-10-20 11:46:58 +03:00
Mikko Ylinen
caa6f260dd e2e: qat: use sriov_numvfs overlay in tests
To simplify the e2e node setup, change the QAT tests to deploy with
the sriov_numvfs overlay.

Moreover, as we are seeing the vfio-pci driver becoming built-in and
requiring opt-in parameters depending on the kernel version, it's
better to move the vfio-pci initcontainer step(s) to kernel cmdline/
modules-load.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-10-19 14:32:06 +03:00
Mikko Ylinen
e5c15e4004 e2e: fix securityContext checks
Unset fields are not 'false' but a nil pointer. Fix the
securityContext checks to take this into account.

Fixes: "e2e: add a test to check that plugins ReadOnlyRootfs is enabled"

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-10-19 14:30:27 +03:00
Dmitry Rozhkov
941b19b4aa e2e: fix linter warnings 2021-09-06 10:17:31 +03:00
Dmitry Rozhkov
155ad68801
Merge pull request #682 from mythi/PR-2021-041
e2e improvements
2021-09-03 14:38:00 +03:00
Hyeongju Johannes Lee
4bc70ac544 Add goerr113 linter check
Add goerr113 lintercheck
Fix the usage of fmt.Errorf() by wrapping errors
Fix the usage of errors.New()
2021-09-03 11:02:14 +03:00
Mikko Ylinen
8c6b8ceb69 e2e: add a test to check that plugins ReadOnlyRootfs is enabled
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-08-31 15:20:23 +03:00
Mikko Ylinen
9b687401b8 e2e: add tests for SGX Admission Webhook
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-08-31 15:20:23 +03:00
Mikko Ylinen
facb4214a2 tree-wide: drop deprecated io/ioutil
Go 1.16 release notes announced the deprecation of io/ioutil [1]. It's easy
for us to move to use what is was recommended so just do it.

[1] https://golang.org/doc/go1.16#ioutil

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-06-02 13:41:15 +03:00
Dmitry Shmulevich
3c3a3d1145 added implementation of EPC extended resource advertiser
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-02-04 17:35:17 -08:00
Mikko Ylinen
0892a34705 move to k8s.io v1.20.x and klog/v2 v2.4.0
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-01-21 15:34:39 +02:00
Dmitry Rozhkov
5f0da56045 Upgrade to k8s v1.19.3 2020-11-10 16:09:20 +02:00
Mikko Ylinen
161298190f sgx: make SGX NFD kustomization overlay independent
With the addition of SGX webhook in the operator, full SGX stack
depends on having the operator deployed first. SgxDevicePlugin CRD
is set to get intel-sgx-plugin and intel-sgx-initcontainer deployed
by the operator.

As a pre-requisite, node-feature-discovery must be deployed but it
is currently deployed via sgx_plugin kustomization overlay only.

It's better to allow NFD with the SGX specific settings deployed with
a kustomization of its own.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-10-23 12:44:36 +03:00
Mikko Ylinen
883775c973 SGX: add basic e2e tests
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-21 13:19:52 +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
Ed Bartosh
49d3514e46 e2e: fix FPGA tests
Fixes: #419
2020-07-02 23:12:34 +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
70f862f2aa add golangci linter
In this initial commit the following checks are disabled due to
excessive amount of changes required:
- dupl (duplicate code)
- funlen (function length)
- goerr113 (errors handling expressions)
- gomnd (magic numbers)
- gosec (security)
- nakedret (naked returns)
- wsl (forces to use empty lines)
- errcheck (checking for unchecked errors)
- staticcheck (static analysis)
2020-06-08 14:01:13 +03:00
Ed Bartosh
8d6afae23d fpga: update e2e tests to work with mode-less webhook
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2020-04-29 11:59:50 +03:00
Dmitry Rozhkov
99fcb69d33 fpga: compress fpga AF resource names 2020-04-29 11:59:50 +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
Dmitry Rozhkov
8fc187f4d8 move to k8s v1.18.2 release
Also fix the plugins and e2e tests
2020-04-17 12:40:18 +03:00
Ed Bartosh
3cb9bd228f implement e2e tests for FPGA plugin
implemented e2e tests for preprogrammed(af) and
orchestrated(region) plugin modes.
2020-04-09 17:04:13 +03:00
Dmitry Rozhkov
e1ccdf5ae7 e2e: add enable-experimental feature gate enabling QAT out-of-tree driver test 2020-02-13 14:51:44 +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
Dmitry Rozhkov
0d538383bf add e2e tests for fpga_admissionwebhook
The tests can be run with

  $ make test-e2e

Closes #158
2020-01-17 14:23:47 +02:00