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

287 commits

Author SHA1 Message Date
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
Markus Lehtonen
d54881b6c8 travis: unify indentation in .travis.yml 2019-06-24 11:09:45 +03:00
Markus Lehtonen
7054e7dd43 travis: enable pushing of release images
This patch enables automatic pushes of release images whenever a new git
tag is created. This works as expected as the $TRAVIS_BRANCH variable is
set to $TRAVIS_TAG when builds are triggered by a new tag.
2019-06-24 11:00:53 +03:00
Kubernetes Prow Robot
7d6049e4d6
Merge pull request #161 from marquiz/feature/job-affinity
Use pod anti-affinity in the worker Job template spec
2019-06-21 09:13:47 -07:00
Markus Lehtonen
dea9406007 Use pod anti-affinity in the worker Job template spec
Use pod anti-affinity to explicitly indicate that pods should be
scheduled on separate nodes. And, remove the obscure and non-obvious
ports definition whose only purpose was to reach the same effect.
2019-06-21 10:29:53 +03:00
Kubernetes Prow Robot
cb2fbba043
Merge pull request #160 from marquiz/feature/travis
travis: add deploy step to automatically push docker image
2019-06-19 17:24:49 -07:00
Markus Lehtonen
3088382772 travis: add deploy step to automatically push the container image
Configure .travis.yml to automatically push builds on the master branch
to the container image registry (quay.io by default). This will
automatically make the latest "experimental" version of NFD, built from
the tip of the master branch, available in the upstream Docker
repository.

IMAGE_REPO_USER and IMAGE_REPO_PASSWORD environment variables must be
defined in the travis repositorys settings in order for the deployment
step to be triggered.
2019-06-18 16:23:25 +03:00
Markus Lehtonen
118146a1ee travis: build image using make
Better to use the same method that developers are supposed to use. Plus,
this creates runnable images (as NFD version is defined).
2019-06-18 16:23:25 +03:00
Markus Lehtonen
2cfb3ade5d Makefile: add IMAGE_BUILD_EXTRA_OPTS variable 2019-06-18 16:23:25 +03:00
Markus Lehtonen
a8e7259bf8 Makefile: add 'push' target
Now 'make push' can be used to push the container image to the remote
registry.
2019-06-18 16:23:25 +03:00
Kubernetes Prow Robot
d234ec12ac
Merge pull request #254 from marquiz/devel/pmem
source/memory: detect NVDIMM DAX mode
2019-06-14 04:08:23 -07:00
Markus Lehtonen
012f7e4946 source/memory: detect NVDIMM DAX mode
Extend NVDIMM (non-volatile DIMM) discovery by adding detection of DAX
mode, i.e. detection of regions in DAX/AppDirect mode.
The new label is:
    feature.node.kubernetes.io/memory-nv.dax: true
2019-06-11 09:58:30 +03:00
Kubernetes Prow Robot
a5d40648c0
Merge pull request #258 from marquiz/feature/fixes
kernel: fix undefined symbol error
2019-06-10 09:33:07 -07:00
Markus Lehtonen
6002a00750 kernel: fix undefined symbol error
Fix a build failure that slipped through when adding support for
non-binary kconfig options in #197,
2019-06-10 15:25:41 +03:00
Kubernetes Prow Robot
8c666cbdc2
Merge pull request #197 from marquiz/devel/kconfig
Support non-binary kconfig options in kernel feature source
2019-06-07 11:44:00 -07:00
Kubernetes Prow Robot
9df0daef99
Merge pull request #256 from askervin/make-yamls
Makefile: create default yamls, configurable namespace, docker-push
2019-06-05 03:55:52 -07:00
Antti Kervinen
9b96407b26 Makefile: create default yamls, configurable namespace
- Create default yamls for deploying master and worker.
- Use kube-system namespace by default.
- Configurable namespace:
  make IMAGE_REGISTRY=myhost:5000 K8S_NAMESPACE=my-nfd-devel
2019-06-05 13:13:53 +03:00
Kubernetes Prow Robot
14f98508ba
Merge pull request #257 from marquiz/devel/owners
Remove inactive approvers from OWNERS
2019-05-31 09:16:29 -07:00
Markus Lehtonen
51034aa8e4 Remove inactive approvers from OWNERS
Remove ConnorDoyle and flyingcougar from the OWNERS file. They haven't
been active in over a year and are not members of the Kubernetes-SIGs
org. We can easily add them back, later, if needed.
2019-05-31 18:38:12 +03:00