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

560 commits

Author SHA1 Message Date
Markus Lehtonen
5528387bc4 gitignore: add bin/ 2020-11-24 21:23:15 +02:00
Kubernetes Prow Robot
a0f59ef22f
Merge pull request #336 from marquiz/devel/122
nfd-master: patch node object instead of rewriting it
2020-11-24 04:51:00 -08:00
Markus Lehtonen
19b8f2cd3d nfd-master: more detailed unit testing of extended resources 2020-11-24 12:45:06 +02:00
Markus Lehtonen
d17743a0b9 nfd-master: handle label annotations in the same func
Handle both creation and parsing of the "feature-labels" and
"extended-resources" annotations in the function. I think this is more
logical to keep them together.
2020-11-24 12:45:06 +02:00
Markus Lehtonen
95ff300d74 nfd-master: patch node object instead of rewriting it
When updating node labels and annotations use JSON patches instead of
doing a read-modify-write on the whole node object. Patching is already
being used in managing extended resources so some of the existing code
was re-usable.

This patch should mitigate the problem of node update failures caused by
race conditions (a change in the node object between our read and write)
resulting e.g. in errors/restarts in nfd worker pods.
2020-11-24 12:45:06 +02:00
Markus Lehtonen
1ea301d272 nfd-master: change statusOp to a more generalized JSON patch
Generalize and rename 'statusOp' type to a more flexible 'JsonPatch'.
Move it to the apihelper package.
2020-11-24 12:45:06 +02:00
Markus Lehtonen
bb1e4c60fb nfd-master: use namespaced label and annotation names internally
For historical reasons the labels in the default nfd namespace have been
internally represented without the namespace part. I.e. instead of
"feature.node.kubernetes.io/foo" we just use "foo". NFD worker uses this
representation, too, both internally and over the gRPC requests. The
same scheme has been used for annotations.

This patch changes NFD master to use fully namespaced label and
annotation names internally. This hopefully makes the code a bit more
understandable. It also addresses some corner cases making the handling
of label names consistent, making it possible to use both "truncated"
and fully namespaced names over the gRPC interface (and in the
annotations).
2020-11-24 12:45:06 +02:00
Kubernetes Prow Robot
7f3f9d7ed8
Merge pull request #403 from marquiz/fixes/e2e
test/e2e: fix e2e-config node matching
2020-11-24 02:09:00 -08:00
Markus Lehtonen
0512b06027 test/e2e: fix e2e-config node matching
Pick the correct rule when multiple node rules are present.
2020-11-24 11:35:35 +02:00
Kubernetes Prow Robot
9b8451209c
Merge pull request #402 from marquiz/fixes/kernel-version-sanitize
kernel: more agressively sanitize full kernel version
2020-11-23 09:57:34 -08:00
Kubernetes Prow Robot
def4b60d65
Merge pull request #386 from marquiz/devel/default-configmap
Add nfd-worker-conf ConfigMap to deployment templates
2020-11-23 09:07:34 -08:00
Markus Lehtonen
ba4ecfe7dc kernel: more agressively sanitize full kernel version
Trim illegal characters from the beginning and end of the kernel version
string. Label values must start and end with an alphanumeric and we want
to have some 'version.full' label, even if a sanitized one.
2020-11-23 19:04:12 +02:00
Markus Lehtonen
979d3b88fe Add nfd-worker-conf ConfigMap to deployment templates
Add a virtually empty ConfigMap that is mounted inside the workers.
Makes it easier to start customizing the worker deployment e.g. with just:

  $ kubectl -n ${NFD_NS} edit configmap nfd-worker-conf

Create a new 'templates' make target for inserting the content of
nfd-worker.conf.example into the configmap spec of the templates. Thus,
'make templates' should be run whenever the example config is update.
Update the verify.sh prow script to check that the templates are up to
date.

This patch also streamlines the documentation about configuration
management, reflecting the changes.
2020-11-23 18:49:52 +02:00
Markus Lehtonen
f72ec8f9b2 Sync nfd-worker-job.template with others
Add TLS placeholders.
2020-11-23 16:04:37 +02:00
Kubernetes Prow Robot
83e2a9defb
Merge pull request #356 from marquiz/devel/sources-flag
nfd-worker: add special handling for --sources=all
2020-11-22 01:53:33 -08:00
Kubernetes Prow Robot
16095ea6bc
Merge pull request #401 from dsb3/version-bump
Container base image version bump
2020-11-21 08:51:33 -08:00
Kubernetes Prow Robot
23286cd60b
Merge pull request #400 from marquiz/fixes/deploy-templates
Sync ClusterRole in deployment templates
2020-11-20 14:28:22 -08:00
Dave Baker
fc3a96928e Container base image version bump:
- update to golang 1.15.5 (was 1.15.4)
- Be more explicit about using the -buster variant for build image
- Update runtime image from -stretch to -buster to pick up security fixes
2020-11-20 16:39:18 -05:00
Kubernetes Prow Robot
64cb0403d5
Merge pull request #399 from marquiz/devel/release-script
docs: specify container image in config
2020-11-20 07:18:51 -08:00
Markus Lehtonen
045e3f2981 Sync ClusterRole in deployment templates 2020-11-20 17:18:26 +02:00
Markus Lehtonen
40be2c7e0c docs: specify container image in config 2020-11-20 17:00:19 +02:00
Kubernetes Prow Robot
c4fa78c8d0
Merge pull request #393 from ArangoGutierrez/minor_e2e_fixes
Fix a thing or two under test
2020-11-20 06:42:51 -08:00
Markus Lehtonen
29cbb2429c nfd-worker: add special handling for --sources=all
A new special value 'all' is a shortcut for enabling all feature
sources. It should be the only name specified -- if any other names are
specified 'all' does not take effect, but, we only enable the listed
feature sources. E.g.
  --sources=all enables all sources, but
  --sources=all,cpu only enables the cpu source

Also, print a warning if unknown sources are specified.
2020-11-20 16:23:53 +02:00
Kubernetes Prow Robot
6cc51e178a
Merge pull request #397 from marquiz/devel/release-script
scripts: add prepare-release.xh
2020-11-20 06:22:51 -08:00
Carlos Eduardo Arango Gutierrez
f18884d6fb
Fix a thing or two under test
This patch fix typo in a file name
Updates default image on e2e tests
Adds an extra file that should be ignored to gitignore

Use master instead of versioned tag for default test image
2020-11-20 09:22:29 -05:00
Markus Lehtonen
2283f29b19 scripts: add prepare-release.xh
A helper script for preparing the release branch.
2020-11-20 16:14:07 +02:00
Kubernetes Prow Robot
b0c02455d6
Merge pull request #396 from marquiz/docs/custom-source
docs: improve documentation of the custom source
2020-11-20 03:02:51 -08:00
Kubernetes Prow Robot
8ca1bdc54d
Merge pull request #395 from marquiz/devel/read-only-mounts
Make all mounts in deployment templates read-only
2020-11-20 02:20:52 -08:00
Markus Lehtonen
417bc6cdcf docs: improve documentation of the custom source
Better explain where the rules configuration is supposed to be
specified.
2020-11-20 12:10:02 +02:00
Markus Lehtonen
9d5dc4da1a Make all mounts in deployment templates read-only
NFD-Worker does not need write access.
2020-11-20 11:32:33 +02:00
Kubernetes Prow Robot
265454c405
Merge pull request #392 from ArangoGutierrez/patch-2
Update SECURITY_CONTACTS
2020-11-19 23:38:50 -08:00
Kubernetes Prow Robot
e850dfce5e
Merge pull request #340 from marquiz/devel/e2e
test/e2e: interpret node names in config as regexps
2020-11-19 13:32:51 -08:00
Carlos Arango Gutierrez
a235444800
Update SECURITY_CONTACTS
Update to active contributors
2020-11-19 15:10:27 -05:00
Kubernetes Prow Robot
d6bbd12b44
Merge pull request #369 from marquiz/devel/release-issue-template
Replace RELEASE.md with an issue template
2020-11-19 11:44:51 -08:00
Kubernetes Prow Robot
1265ceeacb
Merge pull request #391 from marquiz/devel/owners
OWNERS: drop balajismaniam
2020-11-19 11:38:51 -08:00
Markus Lehtonen
8ca38e26e3 Replace RELEASE.md with an issue template
In addition to just moving the content, update release process. Adjust
to the latest prow-based workflow. Capture steps required for
documentation.
2020-11-19 21:31:52 +02:00
Markus Lehtonen
42b4508a6c OWNERS: drop balajismaniam
Inactive for way over two years, now.
2020-11-19 21:28:53 +02:00
Kubernetes Prow Robot
62749bba1d
Merge pull request #389 from ArangoGutierrez/go_115
Go 1.15
2020-11-18 06:56:05 -08:00
Carlos Eduardo Arango Gutierrez
c4515b94ab
Go 1.15
this patch bumps both the Dockerfile and go.mod go version to 1.15

Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
2020-11-18 09:38:13 -05:00
Kubernetes Prow Robot
a8411b1585
Merge pull request #388 from marquiz/fixes/golang115
test/data: update test certs and keys
2020-11-18 06:28:06 -08:00
Markus Lehtonen
0d47a04e3e test/data: update test certs
Make them use SAN (Subject Alternative Name) instead of CN (Common Name)
field. Makes them compatible with golang 1.15 TLS.
2020-11-18 15:54:20 +02:00
Kubernetes Prow Robot
88344f257b
Merge pull request #385 from cynepco3hahue/update_dependencies_master
Update k8s dependencies to 1.19.4
2020-11-18 04:00:05 -08:00
Artyom Lukianov
a8c0b4a0d0 Focus only on NFD tests during the e2e tests run
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2020-11-18 13:09:13 +02:00
Artyom Lukianov
f363ba0e92 Update e2e test to work with updated dependencies
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2020-11-18 13:09:13 +02:00
Artyom Lukianov
6172c648e2 Update k8s dependencies to 1.19.4
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2020-11-18 13:09:13 +02:00
Kubernetes Prow Robot
6c6a682d23
Merge pull request #383 from marquiz/documentation/redirect
scripts/update-gh-pages: redirect to "stable" documentation
2020-11-04 07:52:04 -08:00
Markus Lehtonen
2dc3f0f7ab scripts/update-gh-pages: redirect to "stable" documentation
Update update-gh-pages.sh to manage the index.html in the root of the
main gh-pages site. Make the index page to redirect to the documentation
of the latest stable version.
2020-11-04 17:45:25 +02:00
Kubernetes Prow Robot
aac7722169
Merge pull request #370 from marquiz/devel/gh-pages-versioned
Link to correct Github blobs, use staging images in deployment templates
2020-11-04 07:44:06 -08:00
Markus Lehtonen
880ef462f7 docs: drop broken/outdated reference to kubernetes-incubator 2020-11-02 17:07:12 +02:00
Markus Lehtonen
18d1204251 Change deployment templates to point to staging image
Latest changes on the templates make them unusable with v0.6.0 release.
Going forward, we should keep it this way - templates in the master
branch should use staging image corresponding the template.
2020-11-02 17:05:39 +02:00