Commit Graph

21 Commits

Author SHA1 Message Date
Hyeongju Johannes Lee
9ccdbf3e05 e2e: add labels for device, resource, mode, app
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2023-09-21 13:03:50 -07:00
hj-johannes-lee
34742e3bc8 e2e,fpga: divide single It() to have multiple layers
Structure is as follows:
Describe("FPGA plugin")
  Context("af mode")
    BeforeEach("run device plugin")
    It("runs a pod requesting resources")
  Context("region mode")
    BeforeEach("run device plugin")
    It("runs a pod requesting resources")

Signed-off-by: hj-johannes-lee <hyeongju.lee@intel.com>
2023-08-15 12:01:16 +03:00
Hyeongju Johannes Lee
32c7c370ef e2e: use utils.GetFormattedErrorAndLog for logging demo pods
this makes a demo pod's log get printed only when the pod
did not run sucessfully

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2023-08-08 12:52:55 +03:00
Hyeongju Johannes Lee
00c666ac57 e2e: rename err to errFailedToLocateRepoFile to prevent linter error
when err is declared and any parts below that declare again,
linter complains as follows:
shadow: declaration of err shadows declaration at line 51

so, we name the first declaration as errFailedToLocateRepoFile so
that other 'err's do not need to be named all in different names
or can be declared as 'err' without linter error.

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2023-08-07 14:43:16 +03:00
Mikko Ylinen
e428cd6c19 go.mod: update to k8s 1.27.1 and controller runtime 0.15.x
k8s 1.27.x triggers build errors on controller-runtime 0.14.x
so we will need to update to 0.15.x at the same time.

Changes include:

* k8s e2e framework moved to use Ginkgo context so we add
  test context to all our test nodes.
* adapt Ginkgo parameter modifications.
* adapt SGX admissionwebhook to InjectDecoder removal.
* adapt deviceplugins and FPGA CRDs to controller-runtime
  API changes.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-05-09 14:49:24 +03:00
Mikko Ylinen
34d930a567 upgrade to k8s 1.26.0-rc.1 and controller-runtime@master
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-12-07 15:04:33 +02:00
Hyeongju Johannes Lee
3c8fe3adfa e2e: add securityContext check to see if rootfs is read-only
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2022-10-13 15:39:59 +03:00
Tuomas Katila
2fb11eccba e2e: Remove unnecessary namespace arguments from KubectlOrDie calls
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2022-08-31 17:09:47 +03:00
Mikko Ylinen
50b985dde5 bump go mod version to 1.18 and move to k8s.io v1.25.0-rc.0
the e2e framework in v1.25 also reguires us to move to gingko/v2
so make that change too.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-08-15 13:54:02 +03:00
Mikko Ylinen
cbc521e505 move to k8s.io v1.24.0-rc.1
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-04-27 09:26:07 +03:00
Ed Bartosh
cec004c398 lint: enable wsl check
Fixes: #392

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-12-17 11:48:48 +02:00
Ed Bartosh
c4d5fea228 e2e: run FPGA tests in CI environment
- don't delete deployment as it may not exist
- set restart policy to Never to avoid running the same tests many times

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-11-02 11:52:06 +02: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
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 Rozhkov
5f0da56045 Upgrade to k8s v1.19.3 2020-11-10 16:09:20 +02: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
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
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