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>
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>
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>
- 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>
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>