1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
Commit graph

1433 commits

Author SHA1 Message Date
Feruzjon Muyassarov
e7af8d068f Update documentation about hooks depreciation
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-09-01 10:58:35 +03:00
Feruzjon Muyassarov
56d5da2ce0 Add a config option to disable hooks of local feature
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-09-01 10:58:31 +03:00
Feruzjon Muyassarov
a675fd93fd Don't advertise BASE_IMAGE_FULL and BASE_IMAGE_MINIMAL
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-08-30 17:37:01 +03:00
Feruzjon Muyassarov
a30ceb2973 Describe how to develop locally with Tilt
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-08-30 17:36:58 +03:00
Feruzjon Muyassarov
bac1ea1642 add initial tilt configuration
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-08-30 17:29:01 +03:00
Kubernetes Prow Robot
778c897345
Merge pull request #878 from marquiz/devel/readme-e2e-badge
README: reconfigure prow badges
2022-08-26 00:26:25 -07:00
Markus Lehtonen
a308743834 README: add a prow badge for e2e-test status 2022-08-25 22:11:36 +03:00
Markus Lehtonen
e6c0a2dd6a README: change prow badge to display status of image-build
Change the prow badge on top of the readme file to show the status of
image building (push-image job). We're not interested in the status of
the PR builds, merely on how the tip of the master branch (or occasional
releases) are doing.
2022-08-25 22:08:51 +03:00
Kubernetes Prow Robot
2b64baef86
Merge pull request #877 from marquiz/fixes/e2e
scripts/test-e2e: install kubectl
2022-08-25 11:08:07 -07:00
Markus Lehtonen
d61f31076f scripts/test-e2e: install kubectl
Kubectl is required bu the topologu-updater end-to-end tests.
2022-08-25 16:27:59 +03:00
Kubernetes Prow Robot
e24cf7a801
Merge pull request #874 from marquiz/devel/readme
README: update to v0.11.2
2022-08-24 08:30:04 -07:00
Markus Lehtonen
1e8f5a6222 README: update to v0.11.2 2022-08-24 10:43:54 +03:00
Kubernetes Prow Robot
4e6a718dfe
Merge pull request #865 from stek29/fix-864
Fix templates for NodeFeatureRule with MatchAny
2022-08-23 09:55:24 -07:00
Viktor Oreshkin
6fd12a2da7 apis/nfd: fix templates with MatchAny only
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-08-23 18:00:44 +03:00
Kubernetes Prow Robot
a753d11e0b
Merge pull request #867 from stek29/worker-priority-class
helm: add priorityClassName to worker
2022-08-23 07:23:31 -07:00
Kubernetes Prow Robot
c8e52564e5
Merge pull request #862 from marquiz/devel/helm
helm: rename "manifests" subdir to "crds"
2022-08-23 07:23:24 -07:00
Kubernetes Prow Robot
6842ec3457
Merge pull request #868 from marquiz/fixes/klog-errorf
logging: do not use %w with klog.Errorf
2022-08-23 05:39:25 -07:00
Markus Lehtonen
2c92e1dcff logging: do not use %w with klog.Errorf
It is not recognized (and does not work like with fmt.Errorf) so use %v
instead.
2022-08-22 14:39:52 +03:00
Viktor Oreshkin
7498e49ba5 helm: add priorityClassName to worker
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-08-22 06:45:52 +03:00
Viktor Oreshkin
4375e08e39 apis/nfd: add more tests for templates
test that NodeFeatureRule templates work with empty MatchFeatures, but
with MatchAny.

this test would fail, higligting an issue which is fixed in next commit.

see #864.

Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
2022-08-22 02:27:55 +03:00
Markus Lehtonen
acdc632935 helm: rename "manifests" subdir to "crds"
Rename the Helm subdir that contains CRD(s) to match the expected chart
directory structure.
2022-08-19 14:58:01 +03:00
Kubernetes Prow Robot
da3eed5101
Merge pull request #861 from marquiz/fixes/log-msg
nfd-master: more fixes to log messages
2022-08-17 00:24:55 -07:00
Markus Lehtonen
889e4c1351 nfd-master: more fixes to log messages
Use correct name for the CR (NodeFeatureRule) object. Also, the resource
is cluster-scoped so don't print the namespace.
2022-08-17 10:07:26 +03:00
Kubernetes Prow Robot
1ab4bc4be8
Merge pull request #860 from marquiz/fixes/log-msg
nfd-master: fix incorrect log messages in crd controller
2022-08-16 07:07:08 -07:00
Markus Lehtonen
f5ee836bbf nfd-master: fix incorrect log messages in crd controller 2022-08-16 16:39:27 +03:00
Kubernetes Prow Robot
65bdcaaacb
Merge pull request #528 from k8stopologyawareschedwg/topology-updater-e2e-tests
topology updater: add e2e tests
2022-08-11 05:28:58 -07:00
Francesco Romani
d70f8c65af test: utils: borrow fixed GetKubeletConfig from k/k
We need this fix https://github.com/kubernetes/kubernetes/pull/110875
to have reliable tests, but up until we can bump the k/k deps to 1.25+,
we can't consume it.

So borrow it from k/k repo for the time being.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-08-11 08:53:01 +02:00
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
Kubernetes Prow Robot
f26064c54f
Merge pull request #845 from marquiz/devel/nfd-api-cleanup
Revert type hack in api
2022-08-10 06:34:36 -07: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
Markus Lehtonen
38e763e36c Refresh auto-generated files 2022-08-10 14:24:33 +03:00
Markus Lehtonen
345e9bf72c apis/nfd: revert the type hack
Revert the hack that was a workaround for issues with k8s deepcopy-gen.
New deepcopy-gen is able to generate code correctly without issues so
this is not needed anymore.

Also, removing this hack solves issues with object validation when
creating NodeFeatureRules programmatically with nfd go-client. This is
needed later with NodeFeatureRules e2e-tests.

Logically reverts f3cc109f99.
2022-08-10 14:24:33 +03:00
Markus Lehtonen
1cf0fa6cfa generate: update generator deps
Update controller-gen and k8s code-generator to the latest releases.
2022-08-10 14:24:27 +03: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