1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-06 08:47:04 +00:00
Commit graph

1631 commits

Author SHA1 Message Date
Kubernetes Prow Robot
34781af9e5
Merge pull request #917 from fmuyassarov/ephemeral-e2e
add ephemeral environment for e2e test execution
2022-11-02 10:35:15 -07:00
Kubernetes Prow Robot
601d6943dc
Merge pull request #948 from marquiz/fixes/docs
docs: update the name of the base image
2022-11-02 10:05:16 -07:00
Feruzjon Muyassarov
0118215826 Add ephemeral E2E test environment
This patch adds a script to run E2E test on kind ephemeral cluster
that gets deleted by the end of each test. Eventually, we will use
this script on pull requests as a presubmit test.

Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-11-02 15:30:56 +02:00
Markus Lehtonen
3a279ce751 docs: update the name of the base image 2022-11-02 15:10:46 +02:00
Kubernetes Prow Robot
8bbccee970
Merge pull request #946 from marquiz/devel/readme
README: update deployment instructions to use v0.11.3
2022-11-01 04:08:45 -07:00
Markus Lehtonen
b81fc42cd3 README: update deployment instructions to use v0.11.3 2022-11-01 11:31:36 +02:00
Kubernetes Prow Robot
f454e74bba
Merge pull request #938 from fmuyassarov/increase-timeout
Increase image waiting timeout
2022-10-28 06:46:31 -07:00
Feruzjon Muyassarov
ea8906203a Increase image waiting timeout
We recently increase timeout for image building and pushing to GCR
due to some failures with timeout. This commit extends timeout for
waiting that image to be published.
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-10-27 23:26:26 +03:00
Kubernetes Prow Robot
671b35667a
Merge pull request #936 from fmuyassarov/increase-build-timeout
Increase allowed image build timeout for 500s
2022-10-27 05:54:32 -07:00
Kubernetes Prow Robot
e5c8180558
Merge pull request #937 from pacoxu/master
Stop using the beta.kubernetes.io/os and arch labels
2022-10-27 05:36:32 -07:00
Paco Xu
4e12ed8aac Stop using the beta.kubernetes.io/os and arch labels 2022-10-27 11:03:14 +08:00
Feruzjon Muyassarov
3f33bd94ef Increase allowed image build timeout
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-10-27 01:03:25 +03:00
Kubernetes Prow Robot
0a95533fe3
Merge pull request #935 from marquiz/fixes/rule-templating
apis/nfd: fix NodeFeatureRule templating
2022-10-26 01:08:36 -07:00
Markus Lehtonen
7c24b50f74 apis/nfd: fix NodeFeatureRule templating
Fix handling of templates that got broken in
b907d07d7e when "flattening" the internal
data structure of features. That happened because the golang
text/template format uses dots to reference fields of a struct /
elements of a map (i.e. 'foo.bar' means that 'bar' must be a sub-element
of foo). Thus, using dots in our feature names (e.g. 'cpu.cpuid') means
that that hierarchy must be reflected in the data structure that is fed
to the templating engine. Thus, for templates we're now stuck stuck with
two level hierarchy. It doesn't really matter for now as all our
features follow that naming patter. We might be able to overcome this
limitation e.g.  by using reflect but that's left as a future exercise.
2022-10-25 23:37:27 +03:00
Kubernetes Prow Robot
1911abe9f4
Merge pull request #933 from marquiz/devel/sysfs-usb
source/usb: scan host sysfs
2022-10-24 11:52:23 -07:00
Markus Lehtonen
bdbf96d7d4 source/usb: scan host sysfs
Scan the mounted host sysfs instead of hard coded /sys mount point.
Currently, sysfs devices subdir is not namespaced in Linux (containers
have the same view as the host) so this wasn't an issue in practice.
However, this change should make the code more future proof and align
usb with other sysfs detection in nfd.
2022-10-24 20:53:10 +03:00
Kubernetes Prow Robot
a65ee959b9
Merge pull request #925 from marquiz/devel/feature-api-flatten
apis/nfd: flatten the structure of features data type
2022-10-24 01:14:26 -07:00
Kubernetes Prow Robot
32d507103f
Merge pull request #930 from fmuyassarov/bump-gomega
Bump Kubernetes to v1.25.3
2022-10-21 05:55:51 -07:00
Feruzjon Muyassarov
bb7e6d7d47 Bump Kubernetes to v1.25.3
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-10-21 15:35:30 +03:00
Yaakov Selkowitz
223205595b cpu: fix 32-bit ARMv8 CPU flags
32-bit ARMv8 Crypto Extensions are exposed through AT_HWCAP2.

IDIV is not an individual flag, but indicates both IDIVA and IDIVT are
present.
2022-10-20 10:33:36 -04:00
Kubernetes Prow Robot
d8890a6ffe
Merge pull request #929 from k8stopologyawareschedwg/nfd-rearm-on-error
topology-updater: continue looping on scan error
2022-10-20 04:54:57 -07:00
Francesco Romani
700d9e215c topology-updater: continue looping on scan error
Scanning podresources can temporarily fail; the previous code was
mistakenly not rearming the loop condition when this occurred,
effectively stopping the monitoring.

Rather, we should always pool and bail out on unrecoverable
error or when asked to stop.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-10-20 10:08:13 +02:00
Kubernetes Prow Robot
4d153ae0c3
Merge pull request #914 from marquiz/fixes/cpuid-ppc
cpu: ignore unknown cpuid flags on non-x86
2022-10-20 00:40:57 -07:00
Markus Lehtonen
9ea787bc99 apis/nfd: update auto-generated code
Re-generate after the latest API change. Involves renaming the crd spec
files.
2022-10-18 18:41:53 +03:00
Markus Lehtonen
b907d07d7e apis/nfd: flatten the structure of features data type
Flatten the data structure that stores features, dropping the "domain"
level from the data model. That extra level of hierarchy brought little
benefit but just caused some extra complexity, instead. The new
structure nicely matches what we have in the NodeFeatureRule object (the
matchFeatures field of uses the same flat structure with the "feature"
field having a value <domain>.<feature>, e.g. "kernel.version").

This is pre-work for introducing a new "node feature" CRD that contains
the raw feature data. It makes the life of both users and developers
easier when both CRDs, plus our internal code, handle feature data in a
similar flat structure.
2022-10-18 18:37:28 +03:00
Kubernetes Prow Robot
cab617c42e
Merge pull request #912 from marquiz/devel/feature-api
apis/nfd: migrate pkg/api/feature
2022-10-18 01:15:18 -07:00
Markus Lehtonen
98fd07b117 cpu: ignore unknown cpuid flags on non-x86
Avoid trying to create empty "cpu-cpuid." labels for cpuid flags that we
don't have a description for.
2022-10-17 17:09:36 +03:00
Kubernetes Prow Robot
796403aa85
Merge pull request #919 from yselkowitz/cpuid
Update CPU flags for ARM, POWER, and Z
2022-10-17 07:09:09 -07:00
Markus Lehtonen
c3caf687c8 apis/nfd: update autogenerated code
Update and migrate auto-generated code after removing pkg/api/feature.
2022-10-15 07:42:20 +03:00
Markus Lehtonen
0e1d4a9046 apis/nfd: migrate pkg/api/feature
Move the previously-protobuf-only internal "feature api" over to the
public "nfd api" package. This is in preparation for introducing a new
CRD API for communicating features.

This patch carries no functional changes. Just moving code around.
2022-10-15 07:42:20 +03:00
Kubernetes Prow Robot
0e1a48fdb2
Merge pull request #920 from fmuyassarov/package-cleanup
Standardize "k8s.io/api/core/v1" package short name
2022-10-14 21:41:05 -07:00
Feruzjon Muyassarov
71434a1392 Standardize "k8s.io/api/core/v1" package short name
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-10-15 02:22:41 +03:00
Yaakov Selkowitz
cba7ad6552 cpu: document canonical sources of supported CPU flags 2022-10-14 14:07:02 -04:00
Yaakov Selkowitz
dc117105ec cpu: update S390 CPU flags 2022-10-14 14:07:02 -04:00
Yaakov Selkowitz
ebebea55c3 cpu: add POWER10 CPU flags 2022-10-14 14:07:02 -04:00
Yaakov Selkowitz
70883df5f6 cpu: update ARM CPU flags through v9.2 2022-10-14 14:07:02 -04:00
Yaakov Selkowitz
ddfccb4907 cpu: update ARM CPU flags through v8.3 2022-10-14 14:07:02 -04:00
Kubernetes Prow Robot
3b4f55b543
Merge pull request #921 from fmuyassarov/cleanup
Error strings should not be capitalized
2022-10-14 06:06:47 -07:00
Feruzjon Muyassarov
e79f09deb2 Error strings should not be capitalized
Error strings should not be capitalized (ST1005) & remove the
redundancy from array, slice or map composite literals.
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-10-14 15:43:18 +03:00
Kubernetes Prow Robot
14ad323e11
Merge pull request #916 from marquiz/devel/baseimage
Update base image to Debian bullseye
2022-10-14 00:52:46 -07:00
Markus Lehtonen
a798b4517d Update base image to Debian bullseye
Update the base used for our "full" image to debian:bullseye-slim. Will
ensure we get the latest and greatest updates and fixes.
2022-10-14 10:04:04 +03:00
Kubernetes Prow Robot
1bd63c7a38
Merge pull request #915 from marquiz/devel/tilt
Tiltfile: update builder image to golang:1.19-bullseye
2022-10-13 15:21:01 -07:00
Kubernetes Prow Robot
9657580631
Merge pull request #918 from marquiz/devel/owners
OWNERS: add fmuyassarov as a reviewer
2022-10-13 10:53:02 -07:00
Markus Lehtonen
b9d80ed19f OWNERS: add fmuyassarov as a reviewer 2022-10-13 16:39:59 +03:00
Markus Lehtonen
07fc280f96 Tiltfile: update builder image to golang:1.19-bullseye
Sync with the Makefile.
2022-10-13 15:13:05 +03:00
Kubernetes Prow Robot
0cae49eda1
Merge pull request #848 from marquiz/devel/e2e-nodefeaturerule
test/e2e: add tests for NodeFeatureRules
2022-10-13 01:47:00 -07:00
Kubernetes Prow Robot
b06f2f7c8b
Merge pull request #911 from marquiz/devel/master-grpc-refactor
nfd-master: refactor gRPC into a separate method
2022-10-12 03:23:00 -07:00
Kubernetes Prow Robot
75151c9974
Merge pull request #907 from marquiz/devel/worker-nopublish-refactor
nfd-worker: refactor gRPC connection logic
2022-10-12 03:01:00 -07:00
Markus Lehtonen
6ef6112d58 test/e2e: add tests for NodeFeatureRules
Add tests covering the basic functionality of NodeFeatureRule objects,
covering different feature types ("flag features", "attribute features"
and "instance features") as well as backreferencing (using the output of
previously run rules) and templating. The test relies on the "fake"
feature source and its default configuration.
2022-10-11 17:23:52 +03:00
Markus Lehtonen
06bd6c0609 nfd-worker: refactor gRPC connection logic
Make the NoPublish config flag a more direct control point for
whether to publishing features. This patch is pre-work for adding
support for other clients (upcoming new CRD API) in nfd-worker.
2022-10-11 17:02:33 +03:00