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

1712 commits

Author SHA1 Message Date
Markus Lehtonen
9bedbccd69 Update references to release v0.13.5 and bump Go to v1.20.8
Generated with:

    hack/prepare-release.sh -g 1.20.8 v0.13.5
2023-09-20 10:51:43 +03:00
Kubernetes Prow Robot
6c9c31de2a
Merge pull request #1369 from k8s-infra-cherrypick-robot/cherry-pick-1364-to-release-0.13
[release-0.13] deployment/helm: fix namespace of nfd-worker role and rolebinding
2023-09-19 05:13:06 -07:00
Markus Lehtonen
e1a6c35596 deployment/helm: fix namespace of nfd-worker role and rolebinding
Put nfd-worker role and rolebinding in the correct namespace if
namespaceOverride parameter is used.
2023-09-19 12:05:50 +00:00
Kubernetes Prow Robot
992d3a1b8a
Merge pull request #1362 from marquiz/release-0.13
[release-0.13] github: separate workflow for helm repo index update
2023-09-18 03:28:32 -07:00
Markus Lehtonen
360a3ad27c github: separate workflow for helm repo index update
No need to (re-)build documentation when a release is published.
Great simplification of the Helm repo index update script: do not scan
all releases but just get the assets from the release that was
published.

This separation should make the maintenance of scripts and workflows
easier.

(cherry picked from commit 72bf84c4fa)
2023-09-18 12:59:01 +03:00
Kubernetes Prow Robot
a640bc294f
Merge pull request #1347 from k8s-infra-cherrypick-robot/cherry-pick-1343-to-release-0.13
[release-0.13] go.mod: bump github.com/cyphar/filepath-securejoin from 0.2.3 to 0.2.4
2023-09-08 00:44:13 -07:00
Kubernetes Prow Robot
2d31932634
Merge pull request #1348 from k8s-infra-cherrypick-robot/cherry-pick-1320-to-release-0.13
[release-0.13] Makefile: increase golangci-lint timeout to 10min
2023-09-07 23:50:13 -07:00
Markus Lehtonen
2755548186 Makefile: increase golangci-lint timeout to 10min 2023-09-08 06:14:44 +00:00
Markus Lehtonen
fa88c6d094 go.mod: bump github.com/cyphar/filepath-securejoin from 0.2.3 to 0.2.4 2023-09-08 05:54:41 +00:00
Kubernetes Prow Robot
082f3fe48e
Merge pull request #1323 from marquiz/release-0.13
[release-0.13] Update references to release v0.13.4
2023-08-31 08:32:49 -07:00
Markus Lehtonen
2820b8c75f Update references to release v0.13.4
Update refs to v0.13.4 and update Go to v1.20.7.

Generated with:

  hack/prepare-release.sh -g 1.20.7 v0.13.4
2023-08-31 17:56:44 +03:00
Kubernetes Prow Robot
9be9259263
Merge pull request #1318 from marquiz/devel/release-0.13-k8s-1.28
[release-0.13] Bump kubernetes to v1.28.1
2023-08-30 09:44:47 -07:00
Markus Lehtonen
713fa91447 test/e2e: align with latest kubernetes code base
(cherry picked from commit 2e79a015f5)
2023-08-29 13:08:43 +03:00
Markus Lehtonen
f64467be78 test/e2e: adapt tests to updates in k8s e2e-framework
Add context to functions that now require it. Also, replace the
deprecated wait.Poll* calls with wait.PollUntilContextTimeout.

(cherry picked from commit 87371e2df0)
2023-08-29 13:07:46 +03:00
Markus Lehtonen
7c08f44ac7 test/e2e: use proper context
Eliminate all context.TODO() from the e2e tests and use ginkgo context
instead. This ensures that calls involving context are properly
cancelled and return fast in case the tests get aborted.

(cherry picked from commit ad8bd057b7)
2023-08-29 13:07:18 +03:00
Markus Lehtonen
7d1b0bc359 pkg/podres: update mocked PodResourcesListerClient
Update mocked implementation of
k8s.io/kubelet/pkg/apis/podresources/v1.PodResourcesListerClient. The
mocked implementation is moved to a separate "mocks" subpackage as it's
for an external interface.

This patch also adds code for auto-generation for the mocked interface.

(cherry picked from commit e2d5ba1a2b)
2023-08-29 13:05:50 +03:00
Markus Lehtonen
5593a490cd go.mod: update kubernetes to v1.28.1
Also sync (update) other dependencies with what kubernetes v1.28 has.

(cherry picked from commit 5d5f133eff)
(cherry picked from commit 4d9259d6cb)
2023-08-29 13:01:37 +03:00
Kubernetes Prow Robot
5fda05226a
Merge pull request #1298 from k8s-infra-cherrypick-robot/cherry-pick-1287-to-release-0.13
[release-0.13] fix empty hugepages in some numa nodes caused no such file or directory errors
2023-08-08 03:12:15 -07:00
lizhun
fe16345376 fix empty hugepages in some numa nodes caused no such file or directory error
Signed-off-by: lizhun <lizhun@kylinos.cn>
2023-08-08 09:50:58 +00:00
Kubernetes Prow Robot
3a4282277d
Merge pull request #1272 from marquiz/release-0.13
[release-0.13] Update references to release v0.13.3
2023-07-20 07:40:09 -07:00
Markus Lehtonen
0de8df6b20 Update references to release v0.13.3
Update links for new release and update golang to v1.20.6.

Generated with:

  hack/prepare-release.sh -g 1.20.6 v0.13.3
2023-07-20 17:14:53 +03:00
Kubernetes Prow Robot
0646cee2d6
Merge pull request #1269 from marquiz/release-0.13
[release-0.13] go.mod: update kubernetes to v1.26.7
2023-07-20 07:08:10 -07:00
Markus Lehtonen
390b801b49 go.mod: update kubernetes to v1.26.7 2023-07-20 15:17:25 +03:00
Kubernetes Prow Robot
145002a561
Merge pull request #1266 from k8s-infra-cherrypick-robot/cherry-pick-1265-to-release-0.13
[release-0.13] cpu: Take cgroupsv1 into account when reading misc.capacity
2023-07-19 06:34:04 -07:00
Fabiano Fidêncio
9b8e7d7424 cpu: Add retrieveCgroupMiscCapacityValue() for legibility
Let's refactor part of the getCgroupMiscCapacity() out to its own
retrieveCgroupMiscCapacityValue(), for the legibility sake.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
2023-07-19 13:12:47 +00:00
Fabiano Fidêncio
45bb2a2345 cpu: Take cgroupsv1 into account when reading misc.capacity
We've been only considering cgroupsv2 when trying to read misc.capacity.
However, there are still a bunch of systems out there relying on
cgroupsv1.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
2023-07-19 13:12:47 +00:00
Kubernetes Prow Robot
455255aaa0
Merge pull request #1264 from k8s-infra-cherrypick-robot/cherry-pick-1258-to-release-0.13
[release-0.13] nfd-master: check for nil references in nfdAPIUpdateAllNodes
2023-07-18 05:49:10 -07:00
Markus Lehtonen
f0026a9a5e nfd-master: check for nil references in nfdAPIUpdateAllNodes
Just a safeguard.
2023-07-18 12:23:57 +00:00
Kubernetes Prow Robot
d22e871d40
Merge pull request #1259 from marquiz/release-0.13
[release-0.13] nfd-master: fix node updates on config change
2023-07-18 01:39:09 -07:00
Kubernetes Prow Robot
1ae940ad3d
Merge pull request #1260 from marquiz/devel/deps-0.13
[release-0.13] go.mod: update kubernetes to v1.26.6
2023-07-18 01:13:08 -07:00
Markus Lehtonen
fe2bb4eb04 go.mod: update kubernetes to v1.26.6 2023-07-17 21:21:30 +03:00
Markus Lehtonen
542eb6f9be nfd-master: fix node updates on config change
Don't try to update all nodes on config change when the NodeFeature API
is disabled. In this case we rely on gRPC and only act on gRPC requests
from the worker.
2023-07-17 17:55:14 +03:00
Kubernetes Prow Robot
09bc42e1ea
Merge pull request #1236 from marquiz/release-0.13
[release-0.13] Prepare for release 0.13.2
2023-06-01 01:45:47 -07:00
Markus Lehtonen
69f1bf9815 Prepare for release 0.13.2
Update references and bump golang to v1.20.4.

Generated with:

    hack/prepare-release.sh -g 1.20.4 v0.13.2
2023-05-31 16:19:59 +03:00
Kubernetes Prow Robot
4f4cd46f13
Merge pull request #1233 from marquiz/release-0.13
[release-0.13] nfd-master: add validation of label names and values
2023-05-31 05:19:45 -07:00
Markus Lehtonen
5b58574100 nfd-master: add validation of label names and values
Validate labels before trying to update the node. Makes us fail early
nad prevent useless retries in case invalid labels are tried.

(backported from commit 2a3c7e4c93)
2023-05-31 14:30:44 +03:00
Kubernetes Prow Robot
22916e62ab
Merge pull request #1224 from marquiz/release-0.13
[release-0.13] go.mod: bump kubernetes to v1.26.5
2023-05-22 18:38:20 -07:00
Markus Lehtonen
ca10c119c8 go.mod: bump kubernetes to v1.26.5 2023-05-22 19:14:09 +03:00
Kubernetes Prow Robot
3c8d575e79
Merge pull request #1215 from k8s-infra-cherrypick-robot/cherry-pick-1213-to-release-0.13
[release-0.13] deployment/helm: user dedicated serviceaccount for topology-updater
2023-05-05 00:57:19 -07:00
Kubernetes Prow Robot
82eb21ac5f
Merge pull request #1214 from k8s-infra-cherrypick-robot/cherry-pick-1212-to-release-0.13
[release-0.13] deployment/helm: avoid overlapping mount paths on topology-updater
2023-05-05 00:57:13 -07:00
Kubernetes Prow Robot
62715b2856
Merge pull request #1217 from k8s-infra-cherrypick-robot/cherry-pick-1211-to-release-0.13
[release-0.13] deployment/helm: improve handling of topologyUpdater.kubeletStateFiles
2023-05-05 00:47:13 -07:00
Markus Lehtonen
1080d00026 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-05 07:17:48 +00:00
Markus Lehtonen
408ab15e05 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 07:09:55 +00:00
Markus Lehtonen
e0ad8e5055 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-05 07:09:54 +00:00
Kubernetes Prow Robot
a443406f4f
Merge pull request #1209 from k8s-infra-cherrypick-robot/cherry-pick-1207-to-release-0.13
[release-0.13] deployment/helm: fix default for kubeletStateDir parameter
2023-05-04 05:16:42 -07:00
Kubernetes Prow Robot
0eae8d4812
Merge pull request #1210 from k8s-infra-cherrypick-robot/cherry-pick-1208-to-release-0.13
[release-0.13] deployment/kustomize: drop pod-resources mount for topology-updater
2023-05-04 05:06:42 -07:00
Markus Lehtonen
94b4198e67 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 09:03:18 +00:00
Markus Lehtonen
a46a0fec7e 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 08:55:25 +00:00
Kubernetes Prow Robot
aab588fcac
Merge pull request #1205 from marquiz/release-0.13
[release-0.13] helm: fix mount for nfd-master config
2023-05-02 01:12:12 -07:00
Markus Lehtonen
2ca698a8d1 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.

(cherry picked from commit b016def8a3)
2023-05-02 10:55:43 +03:00