1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
Commit graph

503 commits

Author SHA1 Message Date
Markus Lehtonen
49d66aa941 README: drop References and unused links
The references listed have lost relevance in this context.
2020-09-10 09:09:19 +03:00
Kubernetes Prow Robot
8ea80365b5
Merge pull request #355 from marquiz/devel/makefile
Fix up Makefile variable initialization and documentation
2020-09-08 07:03:43 -07:00
Markus Lehtonen
890380892d Fix up Makefile variable initialization and documentation
An attempt to organize the Makefile variables a bit further. The idea is
to only document variables that are really intended for build
customization and initialize all these variables in the Makefile with
'=?' so that they can be specified in the environment (and not just with
variable overrides). Thus, this patch drops some variables from the
README and change the initialization of some variables in the Makefile
so that the two files would be in sync.
2020-09-08 16:24:39 +03:00
Kubernetes Prow Robot
535dd0bb3a
Merge pull request #351 from ArangoGutierrez/image_make
Fix Makefile to take vaules from ENV VAR values
2020-09-08 05:59:43 -07:00
Carlos Eduardo Arango Gutierrez
4bcb0cf851
Fix Makefile to take vaules from ENV VAR values
make image and make push fails when trying to use an ENV VAR value, as
it is now they can only be overrided.

the Var modified are
GO_CMD
GO_FMT
IMAGE_BUILD_EXTRA_OPTS
IMAGE_BUILD_CMD
IMAGE_PUSH_CMD
IMAGE_TAG_NAME
IMAGE_REGISTRY
IMAGE_NAME
IMAGE_EXTRA_TAG_NAMES
K8S_NAMESPACE
HOSTMOUNT_PREFIX

This new behaviour has also been updated on the README.

Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-09-08 07:49:43 -05:00
Kubernetes Prow Robot
cf21e415dd
Merge pull request #349 from marquiz/devel/golangci-lint
scripts: update golangci-lint to v1.30.0 in verify.sh
2020-09-08 04:47:43 -07:00
Kubernetes Prow Robot
4a0c44550f
Merge pull request #354 from marquiz/devel/readme
README: add Community section
2020-09-08 04:33:42 -07:00
Markus Lehtonen
fff8c811f1 README: add Community section 2020-09-08 13:28:43 +03:00
Kubernetes Prow Robot
9df73b8ace
Merge pull request #326 from marquiz/devel/prune
nfd-master: implement --prune flag
2020-09-07 04:51:42 -07:00
Markus Lehtonen
36aa100c8f README: add --prune and --kubeconfig flags
The bare minimum doc update.
2020-09-07 09:01:30 +03:00
Kubernetes Prow Robot
cb8943a377
Merge pull request #352 from ArangoGutierrez/master
Add prow badge
2020-09-06 21:51:42 -07:00
Markus Lehtonen
458dd8dc58 nfd-master: add --kubeconfig flag
Useful with --prune and for development purposes.
2020-09-07 07:51:42 +03:00
Markus Lehtonen
4669770020 nfd-master: implement --prune flag
A new sub-command like flag for cleaning up a cluster. When --prune is
specified nfd-master removes all NFD related labels, annotations and
extended resources from all nodes of the cluster and exits.

This should help undeployment of NFD and be useful for development.
2020-09-07 07:51:42 +03:00
Markus Lehtonen
6869a99ceb nfd-master: fix one docstring 2020-09-07 07:51:42 +03:00
Carlos Eduardo Arango Gutierrez
59f64eba18
prow badge
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-09-06 16:48:58 -05:00
Kubernetes Prow Robot
769c518c3e
Merge pull request #350 from marquiz/devel/owners
OWNERS: add ArangoGutierrez as a reviewer
2020-09-06 13:59:41 -07:00
Markus Lehtonen
06dcd80f55 OWNERS: add ArangoGutierrez as a reviewer 2020-09-04 16:00:05 +03:00
Kubernetes Prow Robot
59704f9146
Merge pull request #339 from marquiz/devel/prow
scripts/test-infra: add build.sh
2020-09-04 05:03:40 -07:00
Markus Lehtonen
d77d76e95d scripts: update golangci-lint to v1.30.0 in verify.sh 2020-09-04 10:45:51 +03:00
Markus Lehtonen
852c817bf6 scripts/test-infra: add build.sh
A script for verifying (non-docker) build.
2020-09-04 10:04:28 +03:00
Kubernetes Prow Robot
6a9c031c40
Merge pull request #348 from marquiz/devel/prow-e2e
cloudbuild.yaml: set correct container image registry
2020-09-03 22:55:40 -07:00
Markus Lehtonen
b91827e4e2 cloudbuild.yaml: use staging container image repo
Use the staging repository for tagging/pushing container images. We
aren't able to (and wouldn't want to) push directly to the production
repository that is the default in the Makefile.
2020-09-04 08:46:03 +03:00
Kubernetes Prow Robot
3342857ff9
Merge pull request #347 from marquiz/devel/prow-e2e
scripts: configure docker authentication in push-image.sh
2020-09-03 13:45:40 -07:00
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