Markus Lehtonen
bf14487e8a
helm: fix topology-updater rbac clusterrole
...
Access to nodes/proxy resource was accidentally given to nfd-master
(which really doesn't need it), not topology-updater.
2023-03-31 16:14:27 +00:00
Kubernetes Prow Robot
9d41250cf1
Merge pull request #1041 from marquiz/backports/helm
...
[release-0.12] docs: Fix link for Helm docs
2023-01-17 07:36:37 -08:00
Carlos Eduardo Arango Gutierrez
bfa0d1eca7
docs: Fix link for Helm docs
...
(cherry picked from commit 1c095f5e8e
)
2023-01-17 17:08:08 +02:00
Kubernetes Prow Robot
5aa9f2cfe7
Merge pull request #1038 from marquiz/devel/release-0.12
...
[release-0.12] Update references to release v0.12.1
2023-01-17 01:50:35 -08:00
Markus Lehtonen
8aafe1f071
Update references to release v0.12.1
...
Created with:
hack/prepare-release.sh -g 1.19.5 v0.12.1
2023-01-17 11:20:49 +02:00
Kubernetes Prow Robot
3260eb3a25
Merge pull request #1039 from marquiz/backports/e2e
...
[release-0.12] e2e: init docker image
2023-01-17 00:54:33 -08:00
Kubernetes Prow Robot
3612b61b46
Merge pull request #1037 from k8s-infra-cherrypick-robot/cherry-pick-1034-to-release-0.12
...
[release-0.12] nfd-master: always start gRPC server
2023-01-16 22:20:33 -08:00
Talor Itzhak
1375fab9c6
e2e: init docker image
...
The docker image that used during e2e test
composed of repo and tag flags that are
passed to the test itself.
The problem is that the docker image initialized
before the flags are parsed. Hence, it will always contains
the default flags value.
Moving the variable into a separate function, fixing the issue.
Also, moving the global variables to `e2e_test.go` since
it commonly used by all tests.
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
2023-01-17 08:18:56 +02:00
Kubernetes Prow Robot
165a12340a
Merge pull request #1036 from marquiz/devel/release-0.12
...
[release-0.12] Update docker builder image to golang v19.5
2023-01-16 13:18:09 -08:00
Carlos Eduardo Arango Gutierrez
aca19e49b2
nfd-master: always start gRPC server
...
Don't register gRPC LabelServer when using the NodeFeature option, only
turn the gRPC server on for Health and Readiness probes.
2023-01-16 21:10:50 +00:00
Markus Lehtonen
c149ef716b
Update docker builder image to golang v19.5
...
Update to the latest patch release of golang.
2023-01-16 22:53:51 +02:00
Kubernetes Prow Robot
d614a3fc39
Merge pull request #1012 from k8s-infra-cherrypick-robot/cherry-pick-1011-to-release-0.12
...
[release-0.12] docs: fix typo in CRD name
2022-12-21 04:49:26 -08:00
Markus Lehtonen
771362fca0
docs: fix typo in CRD name
2022-12-21 11:54:27 +00:00
Kubernetes Prow Robot
590e8c88b0
Merge pull request #1010 from k8s-infra-cherrypick-robot/cherry-pick-1009-to-release-0.12
...
[release-0.12] docs: mention NodeFeature as an extension point
2022-12-21 03:49:24 -08:00
Kubernetes Prow Robot
23f4102b0a
Merge pull request #1007 from marquiz/release-0.12
...
[release-0.12] Update references to release v0.12.0
2022-12-21 03:37:25 -08:00
Markus Lehtonen
aa156c5162
docs: mention NodeFeature as an extension point
...
In the CRD intro, mention that NodeFeature can be used as an integration
point for 3rd party extensions.
2022-12-21 11:36:08 +00:00
Markus Lehtonen
0c22245022
Update references to release v0.12.0
...
Generated with:
hack/prepare-release.sh -g 1.19.4 v0.12.0
2022-12-21 09:48:21 +02:00
Kubernetes Prow Robot
921316a4c2
Merge pull request #1006 from marquiz/documentation/deployment
...
docs: better document differences between deployment methods
2022-12-20 11:17:20 -08:00
Markus Lehtonen
27c47bd088
docs: better document differences between deployment methods
2022-12-20 16:29:48 +02:00
Kubernetes Prow Robot
c551a9a89b
Merge pull request #1005 from marquiz/devel/e2e-lint
...
Simplify usage of ObjectMeta fields
2022-12-19 08:01:45 -08:00
Markus Lehtonen
f5ae3fe2c7
Simplify usage of ObjectMeta fields
...
No need to explicitly spell out ObjectMeta as it's embedded in the
object types.
2022-12-19 17:40:10 +02:00
Kubernetes Prow Robot
e2296998d6
Merge pull request #1001 from marquiz/devel/e2e-nodefeature
...
test/e2e: add basic e2e-tests for NodeFeature API
2022-12-19 07:19:44 -08:00
Markus Lehtonen
b67d6d7282
test/e2e: add basic e2e-tests for NodeFeature API
...
Add an initial test set for the NodeFeature API. This is done simply by
running a second pass of the tests but with -enable-nodefeature-api
(i.e. NodeFeature API enabled and gRPC disabled). This should give basic
confidence that the API actually works and form a basis for further
imporovements on testing the new CRD API.
2022-12-19 16:58:21 +02:00
Markus Lehtonen
958db56680
test/e2e: isolate tests into a separate function
...
Preparation for running the same tests with NodeFeature API enabled
(instead of gRPC).
2022-12-19 14:08:05 +02:00
Kubernetes Prow Robot
e684197634
Merge pull request #932 from fmuyassarov/e2e-taints
...
Add E2E test for NFD tainting feature
2022-12-19 03:59:45 -08:00
Feruzjon Muyassarov
3e29f5c5df
Add nfd E2E tests for tainting feature
...
Extend current E2E tests to check tainting feature of nfd implemented
in https://github.com/kubernetes-sigs/node-feature-discovery/pull/910
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-12-19 13:39:03 +02:00
Kubernetes Prow Robot
4635b99832
Merge pull request #1003 from marquiz/devel/e2e-host-usr-src
...
test/e2e: drop host-usr-src mount
2022-12-19 02:35:45 -08:00
Kubernetes Prow Robot
28a5daa338
Merge pull request #999 from marquiz/fixes/nodefeature-missing
...
nfd-master: update node if no NodeFeature objects are present
2022-12-19 00:39:44 -08:00
Markus Lehtonen
4c955ad72c
nfd-master: update node if no NodeFeature objects are present
...
Correctly handle the case where no NodeFeature objects exist for certain
node (and NodeFeature API has been enabled with
-enable-nodefeature-api). In this case all the labels should be removed.
2022-12-19 10:22:04 +02:00
Kubernetes Prow Robot
c250a8bea8
Merge pull request #1004 from marquiz/fixes/e2e
...
test/e2e: don't expect control-plane nodes to be labeled
2022-12-17 00:11:41 -08:00
Markus Lehtonen
51f4c5447b
test/e2e: don't expect control-plane nodes to be labeled
...
Without this e2e tests may fail in clusters with control-plane-only
nodes.
2022-12-16 22:56:19 +02:00
Kubernetes Prow Robot
941a55ae0b
Merge pull request #998 from marquiz/fixes/nodefeature-crd-startup
...
nfd-master: update all nodes at startup when NodeFeature API enabled
2022-12-16 05:06:20 -08:00
Kubernetes Prow Robot
87c1a3d47d
Merge pull request #1002 from marquiz/devel/e2e-podsecurity
...
test/e2e: drop pod security enforcement label from the test namespace
2022-12-15 23:01:37 -08:00
Kubernetes Prow Robot
8d2adfd1f5
Merge pull request #996 from fmuyassarov/parametirize-image
...
E2E: parameterize container image and tag
2022-12-15 08:35:37 -08:00
Markus Lehtonen
7b2add434c
test/e2e: drop pod security enforcement label from the test namespace
...
Drop the pod-security.kubernetes.io/enforce label from the test
namespace, i.e. remove pod security admission enforcement. NFD-worker
uses restricted host mounts (/sys) etc so pod creation fails even in
privileged mode if pod security admission enforcement is enabled.
2022-12-15 17:43:44 +02:00
Markus Lehtonen
fd0b812433
test/e2e: drop host-usr-src mount
...
Allows running e2e-tests in some more restricted environments.
2022-12-15 16:49:27 +02:00
Kubernetes Prow Robot
a193098513
Merge pull request #903 from marquiz/devel/nodefeature-crd
...
docs: document NodeFeature API
2022-12-14 13:05:36 -08:00
Kubernetes Prow Robot
323fd5c6ec
Merge pull request #995 from fmuyassarov/seccomp-profile-nfd-worker
...
E2E: default seccompProfile to runtimeDefault for nfd worker
2022-12-14 12:45:34 -08:00
Markus Lehtonen
3209c14bea
docs: document NodeFeature API
...
Document the usage of the NodeFeature CRD API. Also re-organize the
documentation a bit, moving the description of NodeFeatureRule
controller from customization guide to nfd-master usage page.
2022-12-14 22:33:12 +02:00
Kubernetes Prow Robot
33e44d53b9
Merge pull request #1000 from marquiz/fixes/e2e
...
test/e2e: fix mistake in ginkgo focus
2022-12-14 12:19:34 -08:00
Markus Lehtonen
f04e1a9404
test/e2e: fix mistake in ginkgo focus
...
Leftover from development that got accidentally merged in
43910e6925
2022-12-14 21:59:15 +02:00
Markus Lehtonen
b9c09e6674
nfd-master: update all nodes at startup when NodeFeature API enabled
...
We want to always update all nodes at startup. Without this patch we
don't get any update event from the controller if no NodeFeature or
NodeFeatureRule objects exist in the cluster. Thus all nodes would stay
untouched whereas we really want to remove all labels from all nodes in
this case.
2022-12-14 21:49:50 +02:00
Kubernetes Prow Robot
a36f6a6409
Merge pull request #997 from marquiz/devel/e2e-crd-creation
...
test/e2e: create CRDs once in the beginning of the tests
2022-12-14 11:49:35 -08:00
Markus Lehtonen
43910e6925
test/e2e: create CRDs once in the beginning of the tests
...
Only generate CRDs once in the beginning of the test run. Use the "Ordered"
option for the test container so that we can utilize ginkgo.BeforeAll to
only do stuff once before the first test. Changing from unordered to
ordered shouldn't make a big difference here.
Add a cleanup function to remove stale NodeFeatureRule objects that are
cluster-scoped and not deleted with the test namespace.
2022-12-14 18:42:00 +02:00
Kubernetes Prow Robot
d1b314842c
Merge pull request #989 from marquiz/devel/nodefeature-multi-object
...
nfd-master: handle multiple NodeFeature objects
2022-12-14 07:51:34 -08:00
Kubernetes Prow Robot
586bf7eefe
Merge pull request #994 from fmuyassarov/config-defaulting
...
E2E: default kubeconfig location to ${HOME}/.kube/config
2022-12-14 07:29:35 -08:00
Feruzjon Muyassarov
5d08f1cd7c
E2E:parameterize container image and tag
...
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-12-14 17:16:03 +02:00
Feruzjon Muyassarov
39813e7a73
E2E: default kubeconfig location to ${HOME}/.kube/config
...
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-12-14 17:09:08 +02:00
Feruzjon Muyassarov
ae8ba01c2c
E2E: default seccompProfile to runtimeDefault for nfd worker
...
Use RuntimeDefault seccomp profile in nfd worker and topology
updater pod spec similar to nfd master.
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-12-14 17:04:38 +02:00
Kubernetes Prow Robot
019383848e
Merge pull request #990 from marquiz/devel/nodefeature-ratelimit
...
nfd-master: implement ratelimiter for nfd api updates
2022-12-14 06:07:34 -08:00