1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 16:27:05 +00:00
Commit graph

1738 commits

Author SHA1 Message Date
Kubernetes Prow Robot
68b728fd34
Merge pull request #1230 from marquiz/devel/golangci-lint
scripts/test-infra: bump golangci-lint to v1.52.2
2023-05-31 00:21:46 -07:00
Markus Lehtonen
9b74e12f60 scripts/test-infra: bump golangci-lint to v1.52.2 2023-05-30 22:27:05 +03:00
Kubernetes Prow Robot
7d715109e3
Merge pull request #1227 from marquiz/devel/master-stop
nfd-master: use close for stop channel
2023-05-26 02:02:53 -07:00
Markus Lehtonen
1809c24314 nfd-master: use close for stop channel
Simpler and more reliable (in case of multiple consumers) to just close
the channel.
2023-05-24 16:51:48 +03:00
Kubernetes Prow Robot
d28a02c5cd
Merge pull request #1222 from vaibhav2107/kustomize-type
Fixed typo in Header under deployment/kustomize.md
2023-05-22 00:42:21 -07:00
Kubernetes Prow Robot
70d5ef477f
Merge pull request #1219 from PiotrProkop/leader-elect
Add leader election for nfd-master
2023-05-22 00:36:21 -07:00
vaibhav2107
9f7854479f Fixed type in Header under deployment/kustomize.md 2023-05-18 14:59:54 +05:30
PiotrProkop
272fd4784f Add new flag enable-leader-election for nfd-master.
It allows NFD-master to be run in active-passive way when running
multiple instances of NFD-master to prevent multiple components
from updating same custom resources.

Signed-off-by: PiotrProkop <pprokop@nvidia.com>
2023-05-15 13:30:07 +02:00
Kubernetes Prow Robot
50caa92232
Merge pull request #1221 from fmuyassarov/crs-cleanup
e2e: delete CRs only if found
2023-05-09 02:24:55 -07:00
Muyassarov, Feruzjon
cfb8530083 e2e: delete CRs only if found
Delete NodeFeatureRule and NodeFeature CRs only if found.
Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
2023-05-08 13:46:29 +03:00
Kubernetes Prow Robot
ef92b2f606
Merge pull request #1218 from marquiz/devel/configz-uri
topology-updater: use node IP in the default configz URI
2023-05-05 04:05:12 -07:00
Markus Lehtonen
1200fd05c5 topology-updater: use node IP in the default configz URI
Use a separate NODE_ADDRESS environment variable in the default value of
-kubelet-config-uri (instead of NODE_NAME that was previously used).
Also change the kustomize and Helm deployments to set this variable to
node IP address. This should make the default deployment more robust,
making it work in scenarios where node name does not resolve to the node
ip, e.g. nodename != hostname.
2023-05-05 13:29:51 +03:00
Kubernetes Prow Robot
cd45baef8d
Merge pull request #1211 from marquiz/devel/helm
deployment/helm: improve handling of topologyUpdater.kubeletStateFiles
2023-05-05 00:17:13 -07:00
Kubernetes Prow Robot
68370f861c
Merge pull request #1213 from marquiz/devel/helm-3
deployment/helm: user dedicated serviceaccount for topology-updater
2023-05-05 00:09:20 -07:00
Kubernetes Prow Robot
ee714fe50c
Merge pull request #1212 from marquiz/devel/helm-2
deployment/helm: avoid overlapping mount paths on topology-updater
2023-05-05 00:09:12 -07:00
Kubernetes Prow Robot
5004574cbc
Merge pull request #1184 from marquiz/devel/e2e
test/e2e: refactor matching of node properties
2023-05-04 23:45:12 -07:00
Markus Lehtonen
526aab87cf deployment/helm: user dedicated serviceaccount for topology-updater
Change the configuration so that, by default, we use a dedicated
serviceaccount for topology-updater (similar to topology-gc, nfd-master
and nfd-worker).

Fix the templates so that the serviceaccount and clusterrolebinding are
only created when topology-updater is enabled (clusterrole was already
handled this way).

This patch also correctly documents the default value of rbac.create
parameter of topology-updater and topology-gc.
2023-05-05 08:30:21 +03:00
Markus Lehtonen
9c2f268fd2 deployment/helm: improve handling of topologyUpdater.kubeletStateFiles
Make it possible to disable kubelet state tracking with
--set topologyUpdater.kubeletStateFiles="" as the documentation
suggests.

Also, fix the documentation regarding the default value of
topologyUpdater.kubeletStateFiles parameter.
2023-05-04 15:01:19 +03:00
Markus Lehtonen
5891df6917 deployment/helm: avoid overlapping mount paths on topology-updater
Mount kubelet podresources socket on an independent path, not under
with the kubelet state directory. Otherwise container creation may fail
on mount creation if topologyUpdater.kubeletPodResourcesSockPath and/or
topologyUpdater.kubeletConfigPath Helm parameters are specified in a
certain way.
2023-05-04 14:17:08 +03:00
Kubernetes Prow Robot
11db6bd37d
Merge pull request #1208 from marquiz/devel/kubelet-mounts
deployment/kustomize: drop pod-resources mount for topology-updater
2023-05-04 02:02:42 -07:00
Kubernetes Prow Robot
bff287eaeb
Merge pull request #1207 from marquiz/devel/helm
deployment/helm: fix default for kubeletStateDir parameter
2023-05-04 01:54:43 -07:00
Markus Lehtonen
efabbe04ae deployment/helm: fix default for kubeletStateDir parameter
This parameter is a path in the host system, not a mount path inside the
container.
2023-05-04 11:48:18 +03:00
Markus Lehtonen
c8a722b7c3 deployment/kustomize: drop pod-resources mount for topology-updater
This mount is redundant as it's already included in the kubelet state
files (/var/lib/kubelet) mount.
2023-05-04 11:06:55 +03:00
Markus Lehtonen
2d9db2ccec test/e2e: rework taints matching
Add new MatchTaints matcher replacing the old waitForNfdNodeTaints
helper function. Also, drop the now-unused simplePoll() helper function.
2023-05-03 08:44:03 +03:00
Markus Lehtonen
f93ab9d423 test/e2e: rework node capacity matching
Add new MatchCapacity matcher replacing the old waitForCapacity helper
function.
2023-05-03 08:44:03 +03:00
Markus Lehtonen
a85e396200 test/e2e: rework annotations matcher
Add new MatchAnnotations Gomega matcher and drop the old
waitForNfdNodeAnnotations helper function.
2023-05-03 08:44:03 +03:00
Markus Lehtonen
2330896620 test/e2e: refactor matching of node properties
Implement a new generic type nodeListPropertyMatcher, a generic Gomega
matcher for matching basically any property of a set of node objects. We
will be using it for verifying labels, annotations, extended resources
and taints for now. This moves the tests in a more Gomega'ish direction,
leveraging code re-use and providing way more informative error messages
in case of test failures.

The patch adds a new eventuallyNonControlPlaneNodes helper assertion for
asserting all (non-control-plane) nodes in the cluster, intended to
replace the ugly simplePoll() helper function.

This patch implements a matcher for node labels and converts tests to
use it instead of the old checkForNodeLabels helper function.
2023-05-03 08:44:03 +03:00
Kubernetes Prow Robot
85073525c3
Merge pull request #1185 from AhmedGrati/fix-resync-period-functionality
nfd-master: fix resync period config option
2023-05-02 11:14:16 -07:00
AhmedGrati
87c2d7e184 nfd-master: fix resync period config option
This PR fixes the resync-period configuration option of the nfd-master.
In fact, previously, changes were not reflected in the nfd-master at
runtime. e2e tests are also implemented to make sure that the fix is
already working as expected.

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-05-02 13:17:01 +02:00
Kubernetes Prow Robot
0685769469
Merge pull request #1204 from marquiz/devel/helm
helm: fix mount for nfd-master config
2023-05-02 00:22:12 -07:00
Markus Lehtonen
b016def8a3 helm: fix mount for nfd-master config
Volume/mount setup for the ConfigMap was erroneously inside conditionals
so it was not mounted unless TLS was enabled.
2023-05-02 10:06:21 +03:00
Kubernetes Prow Robot
62cd9b3926
Merge pull request #1202 from marquiz/devel/nfd-master-refactor
nfd-master: refactor filtering of labels, taints and ERs
2023-04-30 20:16:17 -07:00
Markus Lehtonen
fb20388028 nfd-master: refactor filtering of taints 2023-04-28 18:13:54 +03:00
Markus Lehtonen
43ced0c1a1 nfd-master: refactor filtering of feature labels
More consistent error messages. Also preparation for dynamic labels
values (that '@' notation currently supported for extended resources).
2023-04-28 18:13:54 +03:00
Markus Lehtonen
6ca687fbef nfd-master: refactor filtering of extended resources
Simplify code a bit and get more consistent error messages (in addition
to fixing some of those).
2023-04-28 18:13:54 +03:00
Kubernetes Prow Robot
e4dfa2d916
Merge pull request #1198 from marquiz/devel/nfd-api-controller
nfd-master: refactor api-controller object handling
2023-04-28 07:56:16 -07:00
Markus Lehtonen
131325fb2c nfd-master: refactor api-controller object handling
Split out resolving of node name (of the node to be updated) into a
separate function. Makes it possible to add unit tests. Also. do
unconditional type casting in the handler functions – that shouldn't
fail unless there is a really serious internal inconsistency in the
codebase so it should be ok to panic.
2023-04-28 17:33:33 +03:00
Kubernetes Prow Robot
60998b5fb3
Merge pull request #1201 from fmuyassarov/codecov-target-patch
codecov: drop required minimum coverage ratio at patch level
2023-04-28 07:22:17 -07:00
Muyassarov, Feruzjon
6e423169d5 codecov: drop required minimum coverage ratio of at patch level
Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
2023-04-28 17:00:14 +03:00
Kubernetes Prow Robot
64c1188928
Merge pull request #1200 from fmuyassarov/codecov-target-ratio
codecov: drop required minimum coverage ratio of a commit to 0%
2023-04-28 06:38:16 -07:00
Muyassarov, Feruzjon
013830184c codecov: drop required minimum coverage ratio of commit to 0%
Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
2023-04-28 15:55:39 +03:00
Kubernetes Prow Robot
1405290f19
Merge pull request #1199 from marquiz/devel/codecov
scripts/test-infra: provide PR base SHA to codecov
2023-04-28 04:18:16 -07:00
Markus Lehtonen
32072dddf1 scripts/test-infra: provide PR base SHA to codecov
In the hopes that codecov will be properly showing and calculating the
diff. Also quote the args for proper handling of empty values.
2023-04-28 13:47:41 +03:00
Kubernetes Prow Robot
9c1912cc7b
Merge pull request #1197 from ArangoGutierrez/notifyv0131
Update README to v0.13.1
2023-04-27 04:04:15 -07:00
Carlos Eduardo Arango Gutierrez
aabc698052
Update README to v0.13.1
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2023-04-27 10:42:19 +02:00
Kubernetes Prow Robot
d84248bc7d
Merge pull request #1190 from marquiz/devel/api-unit-tests
apis/nfd: add unit tests for Feature type
2023-04-26 23:32:15 -07:00
Kubernetes Prow Robot
9dd1806403
Merge pull request #1196 from ArangoGutierrez/fix_prepare-release
Match usage and example for prepare-release.sh
2023-04-26 02:58:16 -07:00
Kubernetes Prow Robot
7c3d29b9e8
Merge pull request #1194 from marquiz/devel/codecov
scripts/test-infra: provide PR info to codecov
2023-04-26 02:20:16 -07:00
Carlos Eduardo Arango Gutierrez
f5d04fca6b
Fix Usage example for prepare-release.sh
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2023-04-26 11:15:18 +02:00
Markus Lehtonen
611ed65e43 scripts/test-infra: provide PR info to codecov
Provide the commit SHA repo slug, PR number, prow build id and base
branch  to the codecov tool so that it is able to do its job.
2023-04-26 11:55:13 +03:00