Commit Graph

49 Commits

Author SHA1 Message Date
Ed Bartosh
08c2094329 update to cert-manager v1.3.1
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-04-22 14:45:39 +03:00
Mikko Ylinen
97bcecda04 operator: update usage guidelines
As the operator container image is available from a registry, we should
guide users to use it rather than build and deploy it locally.

Further, drop (un)deploy-operator targets in favor of simply using
kubectl for deployment.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-03-30 15:33:09 +03:00
Oleg Zhurakivskyy
83d4789e5d deployments: Move to v1 API for CRDs
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2021-02-18 10:37:10 +00:00
Mikko Ylinen
f8c20905aa update to cert-manager v1.2.0
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-02-12 15:39:07 +02:00
Mikko Ylinen
aef2e1655e qat: run TestScanPrivate tests in parallel
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-12-23 11:18:21 +02:00
Mikko Ylinen
7ef4372182 Makefile: add explicit image tags to push
Our 'make push' started failing and it looks docker picks :latest tag
for the image it just built but fails because it does not exist:

Using default tag: latest
...

tag does not exist:
cloud-native-image-registry.westus.cloudapp.azure.com/intel-deviceplugin-operator:latest

Fix 'make push' to explicitly use the image tag set by Jenkins.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-12-15 17:40:42 +02:00
Dmitry Rozhkov
f0fa9df292 operator: prepare for publishing at operatorhub.io 2020-11-24 18:35:56 +02:00
Mikko Ylinen
4e5eae62c4 update to cert-manager v1.0.3
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-10-16 22:37:57 +03:00
Mikko Ylinen
e054440a32 webhooks: move to admissionregistration.k8s.io/v1
With controller-gen 0.4.0, admissionregistration defaults to v1 API.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-10-14 14:48:40 +03:00
Kevin Putnam
a918b6c903 Documentation: adds ability to build Read the Docs static site.
Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>
2020-09-25 14:41:35 -07:00
Mikko Ylinen
f0d4754d53 move to cert-manager v1.0.0
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-02 18:07:05 +03:00
Mikko Ylinen
2f5d2342e1 tests: deploy cert-manager for kind tests
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-02 17:10:03 +03:00
Dmitry Rozhkov
200e2f8181 operator: add simple FPGA operator combined with FPGA webhook 2020-08-18 17:32:23 +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
Dmitry Rozhkov
6b2fa0a264 operator: initial version with gpu and qat controllers 2020-06-25 13:48:41 +03:00
Dmitry Rozhkov
3098527f88 Jenkinsfile: drop redundant checks 2020-06-10 14:49:15 +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
Mikko Ylinen
a013595226 build: pass extra builder arguments from users
Users had no options to specify extra builder arguments to $BUILDER.

With this patch it's possible, e.g., to build QAT plugin with kernel
mode support:

make intel-qat-plugin EXTRA_BUILD_ARGS="--build-arg TAGS_KERNELDRV=kernel

Fixes: #234

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-03-16 20:19:16 +02:00
Dmitry Rozhkov
862ba004c6 check that github actions build all the images we've got 2020-03-06 10:47:29 +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
4b256017e8 Make go mod tidy a mandatory check
Closes #276
2020-02-03 12:21:36 +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
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
d3354d0522 travis: Use vendored code for container builds
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-11-01 14:32:26 +02:00
Dmitry Rozhkov
aadcc62dde simplify image push 2019-08-29 16:30:13 +03:00
Rivera Gonzalez, Julio C
b6a740805e Push images to be published
This change, adds a conditional step on Jenkins in order to push images,
built and be published.

Signed-off-by: Rivera Gonzalez, Julio C <julio.c.rivera.gonzalez@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
Mikko Ylinen
d06f98690f images: tag with intel prefix
In preparations to get some of the images to hub.docker.com/intel,
start using intel/ prefix.

Moreover, set the Makefile variables so that the images built
by make [images|demos] can easily be pushed to any registry/org
by 'docker push' (e.g., by Jenkins).

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-08-29 13:21:19 +03:00
Mikko Ylinen
959f7e602b CI: move to Golang 1.12.x
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-08-19 15:19:49 +03:00
Dmitry Rozhkov
cda77f57e7 use BUILDTAGS=kerneldrv in CI 2019-08-19 09:56:57 +03:00
Dmitry Rozhkov
8390388f89 qat: make users explicitly opt in to have kernel mode compiled in 2019-08-14 13:41:44 +03:00
Dmitry Rozhkov
d7360c9e4c drop the internal folder from checks 2019-01-23 14:40:10 +02:00
Ed Bartosh
9f961419fc Makefile: enable crypto-perf build
This build was excluded from the 'make demos' targets as
it was failing. Now the build is fixed, adding the build back.
2018-11-26 11:22:33 +02:00
Ed Bartosh
891d69de83 Use buildah to build images
Added alternative builder for project images: buildah
https://github.com/containers/buildah

Considering that some of our plugins use CRI-O runtime it could be
a good idea to get rid of docker as a builder. It should allow us
not to run docker daemon at all, even for build purposes.

Kubernetes also goes this way encouraging users to switch to CRI
runtimes (CRI-O and containerd), so having non-docker builds supported
looks good from this perspective too.
2018-09-28 17:21:12 +03:00
Ed Bartosh
7593b67446 Makefile: get rid of using --build-arg to pass proxy to the Docker
Docker documentation recommends configuring proxy in
a Docker client configuration file ~/.docker/config.json for Docker
version >= 17.07: https://docs.docker.com/network/proxy/

Using --build-arg for this purpose is not recommended, hence
removing.
2018-09-11 15:49:40 +03:00
Dmitry Rozhkov
eccd70c600 replace glog with simpler home-grown debug logging 2018-08-16 17:40:16 +03:00
Ed Bartosh
91318bc825 add 'clean' target to the Makefile 2018-08-14 16:38:59 +03:00
Ed Bartosh
6f82168f29 CI: check if demos can be built
Added 'demos' and <demo image name> targets to the Makefile
Added 'make demos' to the TravisCI configuration file
2018-08-10 11:54:26 +03:00
Ed Bartosh
b864ec01da makefile: fix format target
Used gofmt instead of go fmt to show the changes and simplify the code.

Made 'make format' to exit with error when formatting is not correct.

Fixes: #57
2018-07-26 12:44:26 +03:00
Ed Bartosh
1875a65889 fix 'make images' failure
'make images' command fails with this error output:
...
docker build -f build/docker/intel-fpga-crihook.Dockerfile --build-arg
HTTP_PROXY --build-arg HTTPS_PROXY --build-arg NO_PROXY --build-arg
http_proxy --build-arg https_proxy --build-arg no_proxy --pull -t
intel-fpga-crihook:4ec2c4acb63ce677684c42d2eb986227182e0742 .
unable to prepare context: unable to evaluate symlinks in Dockerfile
path: lstat
build/docker/intel-fpga-crihook.Dockerfile:
no such file or directory
Makefile:46: recipe for target 'intel-fpga-crihook' failed
make: *** [intel-fpga-crihook] Error 1

This is caused by incorrect assumption that there is a Docker file for
every item in cmd/

Reimplemented 'make images' to build only images that have Docker
files in build/docker directory.
2018-07-20 14:27:18 +03:00
Dmitry Rozhkov
ba3ec2d6f9 tag latest image build as 'devel' 2018-06-20 09:13:11 +03:00
Dmitry Rozhkov
8c1d84863c enable cyclomatic check in TravisCI 2018-06-18 11:10:13 +03:00
Dmitry Rozhkov
5bc577f203 Makefile: fail test target correctly upon errors in unit tests 2018-06-15 11:15:09 +03:00
Dmitry Rozhkov
bf82dadeac add conditional generating coverage in HTML format 2018-06-07 16:00:31 +03:00
Dmitry Rozhkov
6a34355da3 simplify Makefile 2018-06-07 15:42:39 +03:00
Dmitry Rozhkov
263147f206
Merge pull request #17 from bart0sh/PR0012-add-codecov.io
enable codecov.io in Travis-CI
2018-05-29 12:01:43 +03:00
Ed Bartosh
a67c2b3923 enable codecov.io in Travis-CI
Fixes #9
2018-05-29 11:38:58 +03:00
Ed Bartosh
9cd5ce2fa3 fix make lint
make lint always returs 0 even if there were errors found by golint
Fixed it by using golint command line option -set_exit_status and
checking golint return code
2018-05-29 11:24:12 +03:00
Alexander Kanevskiy
d4d77a71e4 Initial public code release 2018-05-18 18:30:54 +03:00