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

1295 commits

Author SHA1 Message Date
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
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
Kubernetes Prow Robot
37e21bfd37
Merge pull request #891 from marquiz/fixes/e2e-no-config
test/e2e: fix segfault in case no e2e config file is specified
2022-10-10 04:09:20 -07:00
Markus Lehtonen
edcaf9a3bb nfd-master: refactor gRPC into a separate method
Refactor the code so that the initialization and running of the gRPC
server is done in a separate function. The goal is to make the code more
maintainable in terms of disabling (and eventually removing) the gRPC
functionality in the future.
2022-10-07 14:45:44 +03:00
Kubernetes Prow Robot
3981e12f9f
Merge pull request #909 from marquiz/devel/path-refactor
pkg/utils: move hostpath helpers from source to utils
2022-10-06 09:03:53 -07:00
Markus Lehtonen
a00cdc2b61 pkg/utils: move hostpath helpers from source to utils
Refactor the code, moving the hostpath helper functionality to new
"pkg/utils/hostpath" package. This breaks odd-ish dependency
"pkg/utils" -> "source".
2022-10-06 14:28:24 +03:00
Kubernetes Prow Robot
4097198848
Merge pull request #908 from marquiz/devel/type-rename
pkg/api/feature: rename types
2022-10-06 01:59:51 -07:00
Kubernetes Prow Robot
d488cdcfba
Merge pull request #904 from marquiz/devel/annotation-consts
apis/nfd: move annotation and label consts from nfd-master
2022-10-06 01:41:52 -07:00
Markus Lehtonen
7f806e8c45 pkg/api/feature: update auto-generated code
Complete the previous renaming.
2022-10-06 11:25:01 +03:00
Markus Lehtonen
abdbd420d1 pkg/api/feature: rename types
Sync type names with NFD documentation. Aims at making the codebase
easier to follow.
2022-10-06 11:25:01 +03:00
Markus Lehtonen
c1e6b41e56 apis/nfd: move annotation and label consts from nfd-master
Move consts related to NFD annotations and labels from nfd-master to the
api. Makes them more logically accessible for clients.
2022-10-06 11:23:56 +03:00
Kubernetes Prow Robot
906aad6717
Merge pull request #906 from marquiz/devel/master-controller-rename
nfd-master: rename crd controller
2022-10-06 01:19:52 -07:00
Kubernetes Prow Robot
0ec98a57d2
Merge pull request #905 from marquiz/devel/worker-client-rename
nfd-worker: rename some symbols
2022-10-05 03:24:02 -07:00
Markus Lehtonen
658ffaa6a5 nfd-master: rename crd controller
Prepare for adding support for other nfd api objects. Just rename file
and some symbols, no functional changes.
2022-10-04 20:23:24 +03:00
Markus Lehtonen
11fd19fb7a nfd-worker: rename some symbols
Some renames in preparation for adding support for NFD CRD API client.
I.e. a second client in addition to the existing gRPC client.
2022-10-04 17:18:25 +03:00
Kubernetes Prow Robot
607192796c
Merge pull request #830 from fidencio/topic/discover-intel-tdx
cpu: Discover Intel TDX
2022-10-03 03:34:17 -07:00
Fabiano Fidêncio
d5db1cf907 cpu: Discover Intel TDX
Set `cpu-security.tdx.enable` to `true` when TDX is avialable and has
been enabled. otherwise it'll be set to `false`.

`/sys/module/kvm_intel/parameters/tdx` presence and content is used to
detect whether a CPU is Intel TDX capable.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
2022-10-03 09:56:24 +02:00
Kubernetes Prow Robot
dcc02b9787
Merge pull request #901 from fmuyassarov/add-shortname
Set shortName for NodeFeatureRule CRD
2022-09-29 03:50:54 -07:00
Feruzjon Muyassarov
60f270d40d Set shortName for NodeFeatureRule CRD
This patch adds a kubebuilder marker to add a short name nfr for
NodeFeatureRule CRD.

Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-09-28 12:18:49 +03:00
Kubernetes Prow Robot
3cc5520dd0
Merge pull request #898 from marquiz/devel/master-log-updates
nfd-master: log if node was modified (or not)
2022-09-27 13:41:50 -07:00
Kubernetes Prow Robot
e3afe7222d
Merge pull request #895 from fmuyassarov/add-netlify.toml
Add Netlify configuration file
2022-09-27 00:49:52 -07:00
Kubernetes Prow Robot
8662d17530
Merge pull request #871 from fmuyassarov/disable-hook
Config option to disable hooks
2022-09-26 10:40:08 -07:00
Markus Lehtonen
8b652ab8ec nfd-master: log if node was modified (or not)
Be a bit more verbose what is happning.
2022-09-21 14:23:37 +03:00
Kubernetes Prow Robot
0abae922fa
Merge pull request #897 from marquiz/devel/drop-incubator
nfd-master: drop cleanup of ancient incubator labels
2022-09-20 10:19:21 -07:00
Markus Lehtonen
389a3d4e2e nfd-master: drop cleanup of ancient incubator labels
Remove the cleanup code that removes ancient NFD labels with the
node.alpha.kubernetes-incubator.io/ prefix. This label namespace was
deprecated/dropped already in v0.4.0 so it should be safe to drop this
code.
2022-09-20 19:56:58 +03:00
Kubernetes Prow Robot
8199cb3f13
Merge pull request #885 from marquiz/devel/hack-scripts
scripts: move hacky scripts to hack directory
2022-09-19 02:16:32 -07:00
Feruzjon Muyassarov
92f862d954 Add netlify configuration file
This patch adds netlify configuration file which includes steps
needed to build the documentation as part of presubmit review
process.

Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-09-16 00:47:49 +03:00
Kubernetes Prow Robot
c491c1dc37
Merge pull request #892 from marquiz/documentation/fixes
docs: fix incorrect shell snippet for removing labels
2022-09-15 06:27:26 -07:00
Markus Lehtonen
db7dd93a64 docs: fix incorrect shell snippet for removing labels 2022-09-15 16:18:09 +03:00
Markus Lehtonen
02955b57c7 test/e2e: fix segfault in case no e2e config file is specified 2022-09-14 11:00:16 +03:00
Kubernetes Prow Robot
15f0cea172
Merge pull request #888 from marquiz/devel/k8s-1.25
Update kubernetes to v1.25.0
2022-09-13 08:17:05 -07:00
Markus Lehtonen
97590e200a scripts: move hacky scripts to hack directory
Move prepare-release.sh and kustomize.sh from scripts/ to hack/.
2022-09-13 17:58:09 +03:00
Kubernetes Prow Robot
9d5d7cfbee
Merge pull request #890 from marquiz/devel/registry
Update registry to registry.k8s.io
2022-09-12 02:47:25 -07:00
Markus Lehtonen
f21315d85f Update kubernetes registry to registry.k8s.io
Update registry location for non-nfd images.
2022-09-12 11:23:04 +03:00
Markus Lehtonen
4f34451db8 Update NFD registry to registry.k8s.io
Kubernetes has moved to a new container image registry:
https://groups.google.com/a/kubernetes.io/g/dev/c/DYZYNQ_A6_c/m/FpHqeVR2BAAJ
2022-09-12 11:21:12 +03:00
Markus Lehtonen
ffa35427cd nfd-client: don't use deprecated grpc.WithInsecure()
Replace deprecated grpc.WithInsecure() with
grpc.WithTransportCredentials and insecure.NewCredentials(). Makes
golangci-lint pass muster.

enter the commit message for your changes. Lines starting
2022-09-09 11:07:22 +03:00
Markus Lehtonen
c09225f75c test/e2e: drop utils/kubeletconfig.go
The required fix is in kubernetes v1.25.0 so we can drop this local
copy.
2022-09-09 10:55:03 +03:00
Markus Lehtonen
449b0b2199 go.mod: update kubernetes to v1.25.0 2022-09-09 10:55:03 +03:00