Mikko Ylinen
24c3a98303
pci: add sriov.capable attribute
...
SR-IOV is a PCI attribute and also non-NIC PCI devices can have it. Therefore,
it is useful to label all PCI devices with that capability.
After this commit the following labels for Intel NICs are overlapping:
feature.node.kubernetes.io/pci-0200_8086.sriov.capable=true
feature.node.kubernetes.io/network-sriov.capable=true
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-02-18 20:09:32 +02:00
Kubernetes Prow Robot
267ba6e1b2
Merge pull request #285 from marquiz/devel/docs-hooks
...
README: better document the usage of hooks and feature files
2020-02-15 04:39:28 -08:00
Markus Lehtonen
b7cc69fc80
README: better document the usage of hooks and feature files
...
Mention supported runtimes that the hooks can use and describe how hooks
and feature files can be used for injecting labels from other pods.
2020-02-14 14:05:17 +02:00
Kubernetes Prow Robot
f6d119d85e
Merge pull request #284 from marquiz/devel/readme
...
README: note on avoiding a race condition with hooks
2020-02-11 04:50:01 -08:00
Markus Lehtonen
66bf544ac5
README: note on avoiding a race condition with hooks
2020-02-11 14:31:10 +02:00
Kubernetes Prow Robot
5f781aa72c
Merge pull request #280 from ArangoGutierrez/update_go
...
Update go version in Dockerfile
2020-02-05 13:33:55 -08:00
Carlos Eduardo Arango Gutierrez
3e1e1a944b
Update go version to 1.13.5
...
Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-02-05 16:15:44 -05:00
Kubernetes Prow Robot
e76d85e4eb
Merge pull request #282 from marquiz/devel/k8s-1.17
...
go.mod: update kubernetes and its deps to v1.17.2
2020-02-05 10:55:55 -08:00
Markus Lehtonen
dbaf057525
go.mod: update test dependencies
2020-02-05 19:35:41 +02:00
Markus Lehtonen
974310251c
test/e2e: adapt new wireframe to nfd context
...
Adapt the end-to-end test wireframe (copied from Kubernetes in the
previous commit) to node-feature-discovery.
2020-02-05 19:35:41 +02:00
Markus Lehtonen
e263c95adc
test/e2e: re-copy e2e wireframe from Kubernetes
...
Sync with Kubernetes. Copy a wireframe for end-to-end tests directly
from Kubernetes v1.17.2.
2020-02-05 17:12:11 +02:00
Markus Lehtonen
2ad4ab708c
go.mod: update kubernetes and its deps to v1.17.2
2020-02-05 17:01:53 +02:00
Markus Lehtonen
500a9e9b1a
apihelpers: use Clientset.CoreV1()
...
Instead of the deprecated Clientset.Core().
2020-02-05 16:25:57 +02:00
Kubernetes Prow Robot
9590411085
Merge pull request #279 from askervin/cpuid_v1.2.3
...
vendor: update klauspost/cpuid
2020-01-29 07:08:17 -08:00
Antti Kervinen
d3d13347f8
vendor: update klauspost/cpuid
...
Update cpuid from v1.2.2 to v1.2.3. Brings in SGX improvements and
CPUID leaf 7 feature detection (VBMI2, VPOPCNTDQ, GFNI, VAES,
AVX512BITALG, VPCLMULQDQ, AVX512BF16, AVX512VP2INTERSECT). Blacklist
cpuid-SGX* (issue #130 ).
Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
2020-01-29 14:51:44 +02:00
Kubernetes Prow Robot
59ffd57524
Merge pull request #186 from marquiz/feature/e2e-tests-framework-travis
...
e2e test integration in Travis CI
2019-12-17 08:28:01 -08:00
Kubernetes Prow Robot
e2a80f00ad
Merge pull request #278 from marquiz/devel/makefile
...
Makefile: define go binary in a make variable
2019-12-17 07:49:59 -08:00
Markus Lehtonen
fec55ec335
Makefile: define go binary in a make variable
...
Makes testing with different go versions easier.
2019-12-17 15:41:42 +02:00
Markus Lehtonen
a332f8bae8
travis: run e2e tests on master branch
...
Assumes the test cluster to be hosted in AWS. The following environment
variables need to be properly configured in the CI in order to
successfully run the tests:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
KUBECONFIG_AWS
Also, the following are probably needed in order for the script to be be
able to push the container image to the remote registry:
IMAGE_REPO
IMAGE_REPO_PASSWORD
IMAGE_REPO_USER
2019-12-17 15:39:24 +02:00
Kubernetes Prow Robot
ee6fd9165b
Merge pull request #269 from marquiz/devel/gomod
...
Switch to using go modules
2019-12-16 04:33:37 -08:00
Kubernetes Prow Robot
201aee8bf5
Merge pull request #274 from marquiz/devel/v0.5.0
...
Refer to v0.5.0 release in README and the deployment templates
2019-11-22 06:59:29 -08:00
Markus Lehtonen
789a0073a6
Refer to v0.5.0 release in README and the deployment templates
2019-11-22 11:18:34 +02:00
Kubernetes Prow Robot
1902b77e4d
Merge pull request #273 from marquiz/devel/template-fixes
...
Add nfd namespace to the daemonset-combined deployment template
2019-11-21 06:51:28 -08:00
Markus Lehtonen
611916f807
Add nfd namespace to the daemonset-combined deployment template
...
Without this the nfd namespace is not created and the deployment may
fail.
2019-11-21 11:10:50 +02:00
Markus Lehtonen
f4d55ce040
Dockerfile: store build deps in a separate layer
...
Speeds up local builds considerably as the deps are cached (instead of
downloading them all on every build) - as long as go.mod and go.sum are
not changed.
2019-11-20 18:38:48 +02:00
Markus Lehtonen
67ddd87c41
Switch to using go modules
...
Update go version in Docker build image to v1.12.
2019-11-20 18:38:42 +02:00
Kubernetes Prow Robot
dcc67c502e
Merge pull request #271 from mythi/cpuid
...
vendor: update klauspost/cpuid
2019-11-06 23:54:43 -08:00
Mikko Ylinen
88b55dcc50
vendor: update klauspost/cpuid
...
Due to the constraint, pretty old version is being used. Update
the cpuid package to the latest master to get, e.g., AVX512_VNNI
and VMX detection.
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-11-06 22:55:57 +02:00
Kubernetes Prow Robot
21f85df6eb
Merge pull request #266 from marquiz/devel/cpu-pstate
...
source/cpu: support 'false' status of cpu-pstate.turbo
2019-09-04 09:19:01 -07:00
Kubernetes Prow Robot
b4e1885064
Merge pull request #265 from marquiz/devel/worker
...
nfd-worker: don't connect to master when --no-publish is used
2019-09-03 10:58:59 -07:00
Kubernetes Prow Robot
3d5d13d1ef
Merge pull request #268 from marquiz/devel/fixes
...
nfd-worker: fix typo and wording in log message
2019-09-03 04:30:28 -07:00
Markus Lehtonen
9c7edd24ca
nfd-worker: fix typo and wording in log message
2019-09-03 14:22:52 +03:00
Markus Lehtonen
882bbeea3f
source/cpu: support 'false' status of cpu-pstate.turbo
...
Some workloads may benefit from Intel Turbo Boost technology being
disabled. This patch sets the
'feature.node.kubernetes.io/cpu-pstate.turbo' label to 'false' if we can
detect that it has been disabled. If detection fails no label is
published.
2019-08-29 16:18:12 +03:00
Markus Lehtonen
bd5aaaac78
nfd-worker: don't connect to master when --no-publish is used
...
Prevent worker from trying to connect to the master when the
--no-publish flag is specified.
2019-08-29 15:49:58 +03:00
Kubernetes Prow Robot
7d78d3169f
Merge pull request #262 from multi-arch/master
...
Add CPU support for IBM Power LE & Z
2019-08-28 05:21:12 -07:00
Yaakov Selkowitz
8d97ad9cad
source/cpu: disable intel_pstate detection on non-x86 architectures
2019-08-28 07:53:31 -04:00
Yaakov Selkowitz
fe4421af65
source/cpu: add IBM Z CPU support to cpuid
2019-08-28 07:53:22 -04:00
Yaakov Selkowitz
81494f1883
source/cpu: add IBM Power CPU support to cpuid
2019-08-28 07:53:10 -04:00
Kubernetes Prow Robot
e57077b6c3
Merge pull request #264 from electrocucaracha/fix_readme_typo
...
Fix typo in README.md
2019-08-27 04:58:41 -07:00
Victor Morales
b45d0052e9
Fix typo in README.md
2019-08-22 00:18:04 -07:00
Kubernetes Prow Robot
a858d357c9
Merge pull request #260 from marquiz/devel/dial-retry
...
nfd-worker: try connecting to nfd-master for 60s
2019-07-18 16:51:50 -07:00
Markus Lehtonen
4fb8bd8efc
nfd-worker: try connecting to nfd-master for 60s
...
Instead of erroring out right away, try to connect to nfd-master for 60
seconds until giving up.
2019-07-02 16:42:52 +03:00
Kubernetes Prow Robot
c191f20c30
Merge pull request #181 from marquiz/feature/e2e-tests-framework
...
Add simple e2e test
2019-06-27 11:53:21 -07:00
Markus Lehtonen
f3c74b6534
README: add separate section about testing
2019-06-27 21:27:48 +03:00
Markus Lehtonen
b5d71f421d
Makefile: add 'e2e-test' target
...
For running end-to-end tests it is required to explicitly specify in the
command line the kubeconfig to be used, e.g.:
$ make e2e-test KUBECONFIG=$HOME/.kube/config
2019-06-27 06:29:45 +03:00
Markus Lehtonen
0911de1978
Add simple e2e test
...
Tests that nfd master-worker communication works and that the worker is
able to label the node with the labels from the 'fake' source.
An example of running the test suite with a custom image with user's
kubeconfig:
$ go test ./test/e2e/ -args -nfd.repo=<image-repo> -nfd.tag=<image-tag> \
-kubeconfig=$HOME/.kube/config
Partly based on some previous work done by Balaji Subramaniam.
2019-06-25 09:50:29 +03:00
Markus Lehtonen
df0cfe6d1b
Update deps
...
We now use kubernetes version 1.13.5.
2019-06-25 09:50:29 +03:00
Markus Lehtonen
9065c7adbe
Add empty e2e test stub
...
Patch the (Kubernetes) e2e wireframe introduced in the previous commit with some minor
modifications, dropping some bits in order to simplify the code.
Also adds a dummy test stub for node feature discovery.
2019-06-25 09:50:29 +03:00
Markus Lehtonen
b284b2f42b
Copy e2e wireframe from Kubernetes
...
Copy E2E wireframe directly from Kubernetes v1.13.5.
2019-06-25 09:50:29 +03:00
Kubernetes Prow Robot
5eed3086ae
Merge pull request #259 from marquiz/devel/travis-release-image
...
travis: enable pushing of release images
2019-06-24 10:15:58 -07:00