Markus Lehtonen
86659fb100
scripts: configure docker authentication in push-image.sh
...
As we're trying to push the images directly from the phase job and not
use 'images:' targets in cloudbuild.yaml.
2020-09-03 23:35:07 +03:00
Kubernetes Prow Robot
a6f682d378
Merge pull request #346 from marquiz/devel/prow-e2e
...
cloudbuild.yaml: set _GIT_TAG in env
2020-09-03 09:49:40 -07:00
Markus Lehtonen
19c96ca79b
cloudbuild.yaml: set _GIT_TAG in env
...
Needed by push-image.sh.
2020-09-03 19:40:54 +03:00
Kubernetes Prow Robot
ce407b6c22
Merge pull request #345 from marquiz/devel/prow-e2e
...
scripts: hand-construct a reproducible version
2020-09-03 07:35:41 -07:00
Markus Lehtonen
4899de7e59
scripts: use a reproducible version in push-image.sh
...
We don't have a full git repo in the gcb builds so our version/tag magic
inside the makefile does not work. With this patch we get the version
information from the builder environment - fortunately we can do that by
simply stripping the date prefix from the _GIT_TAG variable. By
stripping the date of we match what our makefile does.
2020-09-03 17:19:10 +03:00
Kubernetes Prow Robot
8dad403a91
Merge pull request #343 from marquiz/devel/prow-e2e
...
cloudbuild.yaml: build using make
2020-09-03 06:17:41 -07:00
Markus Lehtonen
ff5e36be0d
scripts: drop special image name handling from test-e2e.sh
...
Let's just rely on our Makefile everywhere. Plus the previous version
was essentially broken as _PULL_BASE_REF env variable was not available
in testing jobs.
2020-09-03 16:01:36 +03:00
Markus Lehtonen
799da7cbb9
cloudbuild.yaml: build using make
...
Use make for building our container image (through a new push-image.sh
script) instead of building directly with docker. This way we avoid the
container image tag naming hassle where we build and push the image on
"image-pushing" prow job and need to be able to reliably re-create the
same tag on the "testing" side for end-to-end tests. This also has the
advantage that the same mechanism (make) is used everywhere, i.e. in
image-pushing, testing and locally.
2020-09-03 16:01:36 +03:00
Markus Lehtonen
4e5df73747
Makefile: add IMAGE_EXTRA_TAG_NAMES variable
...
Make it possible to create and push multiple container image tags with
single invocation of make.
2020-09-03 16:01:36 +03:00
Kubernetes Prow Robot
265dfae948
Merge pull request #344 from marquiz/devel/prow-fixes
...
scripts: fix verify.sh
2020-09-03 05:53:40 -07:00
Markus Lehtonen
5974b4d905
scripts: fix verify.sh
...
Modify PATH in order to make sure that golangci-lint is found.
2020-09-03 15:02:35 +03:00
Kubernetes Prow Robot
48de708b77
Merge pull request #338 from marquiz/devel/gcb
...
cloudbuild.yaml: fix docker build arguments
2020-08-31 13:27:50 -07:00
Kubernetes Prow Robot
8cb09630d4
Merge pull request #329 from ArangoGutierrez/4.6-CVE-2020-14040
...
Update go dep golang.org/x/text
2020-08-30 23:46:20 -07:00
Kubernetes Prow Robot
27b5ef9680
Merge pull request #341 from marquiz/devel/prow-e2e
...
scripts/test-infra: add script for end-to-end testing
2020-08-28 08:33:49 -07:00
Carlos Eduardo Arango Gutierrez
aa7e0e1dc9
Update go dep golang.org/x/text
...
Update go dep golang.org/x/text
CVE-2020-14040
golang.org/x/text: possibility to trigger an infinite loop in
encoding/unicode could lead to crash
Reported on Bug 1853652
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-08-28 10:27:14 -05:00
Kubernetes Prow Robot
bff88a6335
Merge pull request #342 from ArangoGutierrez/go14
...
Update go to 1.14.2
2020-08-28 06:49:51 -07:00
Carlos Eduardo Arango Gutierrez
b852e5cce5
Update go to 1.14.7
...
Bumb golang version to 1.14.7
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-08-28 08:39:23 -05:00
Markus Lehtonen
05f5d2a88a
scripts/test-infra: add script for end-to-end testing
...
Add a new script for running end-to-end tests. Implement a Makefile rule
for polling the container image. We need this for prow as there is no
other way for syncing the jobs (e2e postsubmit job must wait until the
image-pushing job has built and published the image). This is
implemented in the Makefile as all the image-related variables are also
defined/available there.
Also, adapt the TravisCI config to use the new script.
2020-08-27 14:48:37 +03:00
Markus Lehtonen
0903c02438
cloudbuild.yaml: add image tag for e2e-testing
...
Create a container image tag that is unique for each commit and can be
easily referenced from the e2e testing side.
2020-08-24 12:46:56 +03:00
Markus Lehtonen
09583f1291
cloudbuild.yaml: fix docker build arguments
...
Remove whitespace from the arguments so that they'e interpreted
correctly. Also, use the correct build arg name for NFD version.
2020-08-24 11:20:23 +03:00
Kubernetes Prow Robot
691f13d2c6
Merge pull request #313 from marquiz/devel/build
...
Slight rework of building
2020-08-23 10:55:40 -07:00
Kubernetes Prow Robot
54ba34b7ff
Merge pull request #337 from marquiz/devel/gcb
...
cloudbuild.yaml: use correct tags
2020-08-23 10:45:40 -07:00
Markus Lehtonen
ff088d6033
cloudbuild.yaml: use correct tags
2020-08-21 14:48:46 +03:00
Markus Lehtonen
906b1a075f
README: document new hostmount prefix Makefile variables
2020-08-21 14:32:50 +03:00
Markus Lehtonen
1f873f0dfc
Dockerfile: rename version ARG
...
Use the same naming across Makefile and Dockerfile.
2020-08-21 14:27:39 +03:00
Markus Lehtonen
342c1dfbc6
Dockerfile: use make for building
...
Modify Makefile to have separate hostmount prefix settings for local and
container builds in order to preserve the current behavior.
2020-08-21 14:27:39 +03:00
Markus Lehtonen
2b5488299e
Makefile: add install target
2020-08-21 14:27:39 +03:00
Markus Lehtonen
02dc1ae1e9
Makefile: add build target
2020-08-21 14:27:39 +03:00
Kubernetes Prow Robot
a68a4ec4fb
Merge pull request #325 from marquiz/devel/hardening
...
Container image hardening
2020-08-21 02:51:39 -07:00
Kubernetes Prow Robot
b6e310902a
Merge pull request #331 from marquiz/devel/image-repo-change
...
Change release image repo to k8s.gcr.io
2020-08-21 02:39:39 -07:00
Kubernetes Prow Robot
c24112ba61
Merge pull request #332 from marquiz/devel/gcb
...
Add cloudbuild.yaml
2020-08-21 02:03:39 -07:00
Kubernetes Prow Robot
26c3cf9e4e
Merge pull request #324 from marquiz/devel/e2e-test
...
Small improvements in e2e tests
2020-08-21 01:53:39 -07:00
Kubernetes Prow Robot
f1c8c3aa95
Merge pull request #335 from marquiz/devel/prow
...
scripts: add scripts for kubernetest test-infra jobs
2020-08-21 01:33:39 -07:00
Markus Lehtonen
33eabbdd22
scripts: add scripts for kubernetest test-infra jobs
...
A step towards moving away from TravisCI.
2020-08-11 15:55:31 +03:00
Markus Lehtonen
9e6bef4b71
Add cloudbuild.yaml
...
Basic google cloud build configuration.
2020-08-07 19:15:32 +03:00
Markus Lehtonen
8aa96ac976
Update RELEASE.md
...
Describe the current release process. Contains some transitory steps
involving quay.io that will be removed when the CI has been adapted to
work with the new image repo.
2020-08-07 10:59:06 +03:00
Markus Lehtonen
6ef6cdec65
README: change image registry to k8s.gcr.io
2020-08-07 10:33:14 +03:00
Markus Lehtonen
844c73799e
Makefile: change image registry to k8s.gcr.io/nfd
2020-08-07 10:25:19 +03:00
Markus Lehtonen
bb99b2b627
Use k8s.gcr.io image registry in deployment spec templates
...
Shift from quay.io to the new community managed image registry.
2020-08-07 10:15:22 +03:00
Kubernetes Prow Robot
ee8a087f9f
Merge pull request #330 from kad/golang-update
...
Update builder image to Go 1.13.12
2020-08-05 03:58:28 -07:00
Alexander Kanevskiy
eb8fe6393a
Update builder image to Go 1.13.12
...
Go versions after 1.13.7 contain fix for CVE-2020-7919
2020-07-10 14:24:01 +03:00
Kubernetes Prow Robot
c2503a20ab
Merge pull request #319 from marquiz/devel/v0.6.0
...
Use release v0.6.0 in deployment templates and README
2020-05-28 08:58:03 -07:00
Markus Lehtonen
3cd2d34ea7
Add container security context to the sample deployment specs
...
Run under strict rules. We shouldn't need any special privileges.
2020-05-28 15:49:00 +03:00
Markus Lehtonen
855bf34190
Dockerfile: run as non-root
2020-05-28 15:10:03 +03:00
Markus Lehtonen
5e62ced4d8
Use release v0.6.0 in deployment templates and README
2020-05-26 15:08:31 +03:00
Kubernetes Prow Robot
1b84e19024
Merge pull request #323 from marquiz/devel/docs
...
README: document E2E_TEST_CONFIG Makefile variable
2020-05-26 04:33:11 -07:00
Markus Lehtonen
331f56ecc3
test/e2e: drop hostNetwork from worker pod spec
...
We don't need or use that anymore.
2020-05-25 16:37:38 +03:00
Markus Lehtonen
ff2c30a63c
test/e2e: slightly more informative test output
2020-05-25 16:37:27 +03:00
Markus Lehtonen
00ccbe95bb
test/e2e: fail faster waiting on master pod
...
Reduce timeout from the default 5 minutes to one minute. Error out
faster e.g. if accidentally trying to test a non-existing image.
2020-05-25 13:16:56 +03:00
Markus Lehtonen
32290ea8f8
README: document E2E_TEST_CONFIG Makefile variable
2020-05-25 10:38:54 +03:00