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

1201 commits

Author SHA1 Message Date
Francesco Romani
7d37f72480 e2e: add basic topology updater test
Co-authored-by: Swati Sehgal <swsehgal@redhat.com>
Co-authored-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2022-08-11 08:53:01 +02:00
Francesco Romani
622adf3863 test: e2e: configurable pull policy
In some cases (CI) it is useful to run NFD e2e tests using
ephemeral clusters. To save time and bandwidth, it is also useful
to prime the ephemeral cluster with the images under test.

In these circumstances there is no risk of running a stale image,
and having a `Always` PullPolicy hardcoded actually makes
the whole exercise null.

So we add a new option, disabled by default, to make the e2e
manifest use the `IfNotPresent` pull policy, to effectively
cover this use case.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-08-10 15:06:59 +02:00
Kubernetes Prow Robot
b78f65e9ee
Merge pull request #829 from marquiz/devel/generate-containerized
Containerized auto-generation
2022-08-10 03:38:30 -07:00
Markus Lehtonen
ac3030ce48 Re-generate files
Refresh auto-generated files using the new conainerized approach.
2022-08-10 09:47:23 +03:00
Markus Lehtonen
b7658c25fd generate: update mockery to latest version
In order to be able to run it on Go v1.18.
2022-08-10 09:47:23 +03:00
Markus Lehtonen
676d14688c Containerized auto-generation
Run code auto-generation inside a container instead of the host system.
Our auto-generation depends on specific versions of a multitude of tools
(like k8s code-generator, controller-gen, protoc, mockery etc). This
made it really awkward (and error-prone) to run in the host environment,
especially if/when you needed different versions of those tools for
other projects. Making it even more unwieldy, the required versions of
tools were not neatly documented anywhere (except for git commits,
perhaps).

With this patch we have a "fixed environment", as we build a special
auto-generate-builder container which has correct versions of all the
dependencies. Using the container makes auto-generation easy to run
anywhere, independent of the host system, giving reproducibility and
reliability. Also, the patch moves the auto-generation steps out from
the makefile into a separate script, making the makefile cleaner and the
script easier to maintain.
2022-08-10 09:44:43 +03:00
Kubernetes Prow Robot
07e9d5bfa1
Merge pull request #846 from marquiz/devel/prepare-release-golang-version
Improvements to scripts/prepare-release.sh
2022-08-09 13:54:38 -07:00
Kubernetes Prow Robot
35e41b6b41
Merge pull request #847 from marquiz/devel/e2e-refactor
test/e2e: refactor setup and cleanup
2022-08-09 13:28:39 -07:00
Markus Lehtonen
190e3200b1 test/e2e: refactor setup and cleanup 2022-08-09 20:14:41 +03:00
Kubernetes Prow Robot
d3446b68c3
Merge pull request #854 from k8stopologyawareschedwg/topology-updater-e2e-tests-utils
Move e2e-test helpers to a separate package
2022-08-09 06:18:50 -07:00
Artyom Lukianov
e169edcb9f Move helpers method to the separate package
Co-Authored-By Francesco Romani <fromani@redhat.com>
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2022-08-09 13:47:52 +02:00
Kubernetes Prow Robot
4d0539c404
Merge pull request #851 from mythi/cpuid-v2.1.0
go.mod: update github.com/klauspost/cpuid to v2.1.0
2022-08-09 03:32:52 -07:00
Mikko Ylinen
026fcb2199 go.mod: update github.com/klauspost/cpuid to v2.1.0
The release relaxes detection of features that have non-AVX512
versions etc..

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-08-09 11:25:39 +03:00
Markus Lehtonen
989565de97 scripts/prepare-release: patch golang version in Makefile
Make it mandatory to specify a golang version with "-g" when running the
script (and patching repo content). The given version will be patched
into the Makefile to fix the version used in the release build - it is
meant to use a exact point release (like 1.18.3) to get reproducible
builds.
2022-08-09 08:22:58 +03:00
Markus Lehtonen
e41c5a712f scripts/prepare-release: option -k to specify the signing key
Make the GPG signing an optional argument. It doesn't make much sense to
require that when no assets are being generated (i.e. when "-b" is
used).
2022-08-09 08:22:58 +03:00
Markus Lehtonen
3f084a4307 scripts/prepare-release: option -b to not generate assets
Implement a new command line option "-b" to prevent the script from
creating release assets (Helm chart).
2022-08-09 08:22:58 +03:00
Kubernetes Prow Robot
3638304c10
Merge pull request #838 from marquiz/devel/go-cmp
go.mod: update github.com/google/go-cmp to v0.5.8
2022-08-08 13:56:06 -07:00
Kubernetes Prow Robot
f0ce6ac03e
Merge pull request #836 from marquiz/devel/golang-update
dockerfile: update builder image to golang v1.18
2022-08-08 13:55:59 -07:00
Kubernetes Prow Robot
f247fcab1f
Merge pull request #831 from jasine/master
helm: add namespace override for multi-namespace deployments
2022-08-08 07:50:19 -07:00
Kubernetes Prow Robot
3df81d1ace
Merge pull request #827 from marquiz/devel/drop-iommu
Drop the iommu source
2022-07-08 02:01:47 -07:00
Markus Lehtonen
8d56634761 dockerfile: update builder image to golang v1.18
Switch over to the "non-point-release" version of the image. Now we
always use the latest patch version of golang with latest security
fixes, for example, without the need to manually bump the version after
every point release.

This patch also makes the builder image configurable through a Makefile
variable.

For reproducible builds we should used fixed point-release versions in
release-brances.
2022-07-08 10:04:04 +03:00
Kubernetes Prow Robot
3b4ff622a0
Merge pull request #843 from marquiz/fixes/fake-source
source/fake: fix name of fake flag feature
2022-07-06 08:52:50 -07:00
Markus Lehtonen
d167ecfa05 source/fake: fix name of fake flag feature 2022-07-06 18:14:07 +03:00
Kubernetes Prow Robot
2ceb99bfce
Merge pull request #841 from marquiz/devel/e2e-config-format
test/e2e: change node-specific config to a list
2022-06-30 23:59:22 -07:00
Markus Lehtonen
380936e417 test/e2e: change node-specific config to a list
Change the part of the e2e-test configuration that contains
node-specific expected labels and annotations to a list, instead of a
map. This makes the parsing order deterministic and makes it possible to
e.g. have a default at the end of the list that captures "all the rest".
2022-06-30 23:34:22 +03:00
Kubernetes Prow Robot
9b87c925a6
Merge pull request #840 from marquiz/devel/e2e-test-config-sample
test/e2e: update e2e-test example config
2022-06-30 09:22:07 -07:00
Markus Lehtonen
b8ab0d8a9e test/e2e: update e2e-test example config
Add feature labels that have been added lately.
2022-06-30 14:21:38 +03:00
Kubernetes Prow Robot
db72f3be22
Merge pull request #839 from marquiz/fixes/e2e
test/e2e: fix checking of nfd-master annotation
2022-06-29 11:08:06 -07:00
Markus Lehtonen
60fdad684b test/e2e: fix checking of nfd-master annotation
The test was broken twofold: Firstly, the annotation was not checked at
all because the name of the node where nfd-master is running was not
set. Secondly, the annotation prefix was used incorrectly.
2022-06-29 20:51:26 +03:00
Kubernetes Prow Robot
71093ef55d
Merge pull request #837 from marquiz/devel/cpuid
go.mod: update github.com/klauspost/cpuid to v2.0.14
2022-06-29 03:30:06 -07:00
Markus Lehtonen
22ad55bf4c go.mod: update github.com/google/go-cmp to v0.5.8 2022-06-29 10:41:30 +03:00
Markus Lehtonen
33f0df4ec4 go.mod: update github.com/klauspost/cpuid to v2.0.14
Adds e.g. detection of Intel TME.
2022-06-29 10:27:20 +03:00
Kubernetes Prow Robot
0ed43c75b0
Merge pull request #835 from marquiz/devel/k8s-1.24
go.mod: update kubernetes to v1.24.2
2022-06-28 15:21:34 -07:00
Kubernetes Prow Robot
52da291de2
Merge pull request #834 from marquiz/devel/aws-iam-auth
scripts/test-e2e: update aws-iam-authenticator to v0.5.7
2022-06-28 10:35:59 -07:00
Markus Lehtonen
a7835a060f scripts/test-e2e: update aws-iam-authenticator to v0.5.7
We need the latest version to support client.authentication.k8s.io/v1.
The previous version we used only supported v1alpha1 which was dropped
in K8s v1.24.
2022-06-28 16:56:43 +03:00
Markus Lehtonen
735285e3ef go.mod: update kubernetes to v1.24.2 2022-06-28 15:34:22 +03:00
jasine
76df597c19
helm: add namespace override for multi-namespace deployments
When used as other charts' dependency, helm will install manifests of this chart to parent chart's namespace, if subchart needs to install to another namespace, helm recommend to use namespaceOverride (helm/charts#15202)
2022-06-28 00:08:29 +08:00
Markus Lehtonen
136c036d4d Drop the iommu source
It was deprecated in v0.10.0.
2022-06-14 15:00:29 +03:00
Kubernetes Prow Robot
3b4c1b1793
Merge pull request #822 from marquiz/fixes/github
github: small fix in new-release issue template
2022-06-08 04:36:22 -07:00
Kubernetes Prow Robot
46fb357762
Merge pull request #825 from marquiz/devel/readme
README: update to v0.11.1
2022-06-08 00:23:49 -07:00
Kubernetes Prow Robot
da27b1b3fe
Merge pull request #824 from marquiz/fixes/docs
docs: small typo fix in cpuid feature list
2022-06-08 00:03:49 -07:00
Markus Lehtonen
7fb9d870f0 README: update to v0.11.1 2022-06-08 09:18:48 +03:00
Markus Lehtonen
b480f5b0ba docs: small typo fix in cpuid feature list 2022-06-08 09:16:37 +03:00
Kubernetes Prow Robot
5669576240
Merge pull request #818 from marquiz/documentation/cpuid
docs: update x86 cpuid feature list
2022-06-07 13:22:26 -07:00
Markus Lehtonen
760cc87345 github: small fix in new-release issue template 2022-06-07 18:43:19 +03:00
Kubernetes Prow Robot
7c4a74f55b
Merge pull request #814 from marquiz/devel/network
source/network: ignore interface operational state
2022-06-07 05:25:49 -07:00
Markus Lehtonen
cc1da2efe3 docs: update x86 cpuid feature list
Update the partial list of x86 cpuid features that are presented in the
NFD documentation. In particular, the following instructions were left
out of the list: AVXSLOW, CETIBT, CETSS, CLDEMOTE, HLE, MPX, RTM,
RTM_ALWAYS_ABORT, SERIALIZE, SHA, TSXLDTRK.
2022-06-07 11:56:12 +03:00
Markus Lehtonen
94d105e913 source/network: ignore interface operational state
Ignore the operational state of network interface when creating the
network SR-IOV labels. Previously NFD only considered interfaces which
were "up".

Pre v0.9 we used to check the "administrative state" of interfaces
(managed by the sysadmin with e.g. with ip link set dev <dev> down/up).
In v0.10 we changed to checking the "operational state" of interfaces,
reflecting whether the it is actually able to transfer data. Both these
checks have caused confusion among users and it is more understandable
and more aligned with other HW discovery functions in NFD to just drop
the state check. Also, the documentation is aligned with this behavior.
2022-05-13 12:40:33 +03:00
Kubernetes Prow Robot
869c7cd5c6
Merge pull request #808 from marquiz/devel/darwin
cpu: add cpuid stub for non-linux platforms
2022-05-11 09:01:03 -07:00
Kubernetes Prow Robot
02d984d23a
Merge pull request #811 from marquiz/documentation/deployment
docs: fix operator deployment instructions
2022-05-11 05:11:01 -07:00