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

2609 commits

Author SHA1 Message Date
dependabot[bot]
a6d42da7c4
build(deps): bump golang.org/x/net from 0.23.0 to 0.24.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 16:05:22 +00:00
dependabot[bot]
4b15b4aa85
build(deps): bump github.com/jaypipes/ghw
Bumps [github.com/jaypipes/ghw](https://github.com/jaypipes/ghw) from 0.8.1-0.20210827132705-c7224150a17e to 0.12.0.
- [Release notes](https://github.com/jaypipes/ghw/releases)
- [Commits](https://github.com/jaypipes/ghw/commits/v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/jaypipes/ghw
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 16:05:17 +00:00
dependabot[bot]
130ef1070d
build(deps): bump actions/checkout from 1 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v1...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 16:04:57 +00:00
dependabot[bot]
2cf73f39a3
build(deps): bump azure/setup-helm from 3 to 4
Bumps [azure/setup-helm](https://github.com/azure/setup-helm) from 3 to 4.
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md)
- [Commits](https://github.com/azure/setup-helm/compare/v3...v4)

---
updated-dependencies:
- dependency-name: azure/setup-helm
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 16:04:54 +00:00
Kubernetes Prow Robot
99b240112c
Merge pull request #1679 from ArangoGutierrez/dependabot2
Dependabot: Add proper dependabot config file
2024-04-29 09:04:35 -07:00
Carlos Eduardo Arango Gutierrez
3017d2e9ba
Dependabot: Add proper dependabot config file
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-29 16:00:37 +02:00
Kubernetes Prow Robot
bb36c21e15
Merge pull request #1681 from ArangoGutierrez/codegenv1.30
Update update_codegen.sh for v0.30 version of codegen tools
2024-04-26 10:40:30 -07:00
Kubernetes Prow Robot
122373c36a
Merge pull request #1685 from marquiz/devel/cloud-build
cloudbuild.yaml: downgrade machine type to e2-highcpu-8
2024-04-26 09:35:56 -07:00
Markus Lehtonen
cf6f0f70bf cloudbuild.yaml: downgrade machine type to e2-highcpu-8
The higher tier builder didn't give any advantage, especially after
armv7 builds were disabled. Let's revert back to highcpu-8.
2024-04-26 18:39:18 +03:00
Kubernetes Prow Robot
f2c74684b4
Merge pull request #1677 from ArangoGutierrez/fix_cloudbuild
Disable armv7 builds
2024-04-26 08:13:57 -07:00
Kubernetes Prow Robot
f9ebb362a3
Merge pull request #1683 from marquiz/devel/hack
hack/init-buildx.sh: fix broken patter matching
2024-04-26 07:22:12 -07:00
Markus Lehtonen
a31fa3ac12 build: specify buildx builder name everywhere
Fixes scenarios where there are other builders, too.
2024-04-26 17:02:02 +03:00
Markus Lehtonen
38a38e57aa hack/init-buildx.sh: fix broken patter matching 2024-04-26 16:04:37 +03:00
Carlos Eduardo Arango Gutierrez
bd554e75d2
Disable armv7 builds
This patch sets IMAGE_ALL_PLATFORMS=linux/amd64,linux/arm64 at
scripts/test-infra/push-image.sh to explicity set the archs to build
images during cloudbuild post prow steps

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-26 12:32:30 +02:00
Carlos Eduardo Arango Gutierrez
9931a2a529
Fix kube::codegen::gen_client for v0.30
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-26 12:30:36 +02:00
Kubernetes Prow Robot
21b624b494
Merge pull request #1680 from marquiz/devel/e2e-runner
test/e2e: stop importing kubernetes test/e2e
2024-04-26 03:15:27 -07:00
Carlos Eduardo Arango Gutierrez
52445432d5
Fix kube::codegen::gen_helpers for v0.30
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-26 10:57:52 +02:00
Markus Lehtonen
d2652cebb7 test/e2e: stop importing kubernetes test/e2e
Don't import the kubernetes tests/e2e "root" package (we still use the
test/e2e/framework). We only used the simple e2e runner function from
there so copy that over to the nfd test/e2e package. This change removes
a lot of dependencies speeding up builds.
2024-04-26 09:34:34 +03:00
Kubernetes Prow Robot
abb31ae41c
Merge pull request #1678 from marquiz/devel/cloudbuild
cloudbuild.yaml: change machine type to e1-highcpu-32
2024-04-25 08:11:51 -07:00
Markus Lehtonen
aa6969c09f cloudbuild.yaml: change machine type to e1-highcpu-32
Mitigate the big increase of build time after enabling armv7 builds.
2024-04-25 17:50:18 +03:00
Kubernetes Prow Robot
4746c33915
Merge pull request #1675 from marquiz/devel/deps
go.mod: bump kubernetes to v1.30
2024-04-25 06:41:42 -07:00
Kubernetes Prow Robot
391865bbb2
Merge pull request #1651 from cmontemuino/doc-resource-limits
docs: document trade-offs in memory configuration
2024-04-25 06:41:29 -07:00
Kubernetes Prow Robot
688e3ce0ad
Merge pull request #1659 from Links2004/arm-support
add ARMv7 support
2024-04-25 06:21:22 -07:00
Kubernetes Prow Robot
cc9cb87516
Merge pull request #1674 from marquiz/devel/golangci-lint
scripts/test-infra: bump golangci-lint to v1.57.2
2024-04-24 06:47:57 -07:00
Markus Lehtonen
079db984bf go.mod: bump kubernetes to v1.30 2024-04-24 15:39:00 +03:00
Markus Lehtonen
4ffc63b25f scripts/test-infra: bump golangci-lint to v1.57.2 2024-04-24 15:17:47 +03:00
Kubernetes Prow Robot
ca13b4903d
Merge pull request #1669 from marquiz/devel/nfd-api-helpers-refactor
api/nfd: use varargs in the NewInstanceFeatures helper
2024-04-23 06:33:46 -07:00
Kubernetes Prow Robot
be44447dc0
Merge pull request #1670 from marquiz/devel/flag-feature-errors
apis/nfd: no error on ops that never match
2024-04-23 06:09:06 -07:00
Kubernetes Prow Robot
828acaa8cc
Merge pull request #1667 from marquiz/devel/api-tests
apis/nfd: add unit tests for match name functions
2024-04-23 06:08:48 -07:00
Kubernetes Prow Robot
8a2def761f
Merge pull request #1666 from kubernetes-sigs/dependabot/go_modules/api/nfd/golang.org/x/net-0.23.0
build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in api/nfd
2024-04-23 04:42:19 -07:00
Markus Lehtonen
fbb7303562 apis/nfd: no error on ops that never match
Return false (i.e. "did not match") but no error when evaluating a match
expression against a "flag" type feature (which don't have any
associated value, just the name) if a MatchOp that never matches is
used.

This is preparation for supporting multi-type features, i.e. one
feature, like "cpu.cpuid", having e.g. "flag" and "attribute" type
features.
2024-04-23 11:07:49 +03:00
Markus Lehtonen
719c5186f6 api/nfd: use varargs in the NewInstanceFeatures helper
Make usage of this helper function more flexible.
2024-04-23 10:29:24 +03:00
Kubernetes Prow Robot
81bdf1dadb
Merge pull request #1668 from TessaIO/chore-remove-nfd-master-test-code-warnings
chore/nfd-master: remove warnings in nfd-master unit tests file
2024-04-23 00:20:39 -07:00
TessaIO
de50ac8800 chore/nfd-master: remove warnings in nfd-master unit tests file
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
2024-04-22 22:27:15 +02:00
Markus Lehtonen
6b1e9c7860 apis/nfd: add unit tests for match name functions 2024-04-22 17:20:33 +03:00
dependabot[bot]
a8bb9152f3 build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 in api/nfd
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 14:09:10 +03:00
Kubernetes Prow Robot
7dd3034362
Merge pull request #1665 from kubernetes-sigs/dependabot/go_modules/golang.org/x/net-0.23.0
build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0
2024-04-19 06:35:12 -07:00
dependabot[bot]
864f52883d
build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 12:58:39 +00:00
Kubernetes Prow Robot
a7c58b121c
Merge pull request #1660 from marquiz/devel/master-reconfigure-change
nfd-master: stop node-updater pool before reconfiguring api-controller
2024-04-15 11:10:32 -07:00
Kubernetes Prow Robot
91d3d5a7b0
Merge pull request #1653 from marquiz/devel/master-multiple-k8sclients
nfd-master: use separate k8s api clients for each updater
2024-04-15 09:18:51 -07:00
Markus Lehtonen
8ad6210d5c nfd-master: use separate k8s api clients for each updater
Sharing the same client between updater threads virtually serializes
access, in practice making the effective parallelism close to 1.

With this patch, in my bench cluster of 300 nodes, the time taken by
updating all nodes drops from ~2 minutes to ~12 seconds (with the
default parallelism of 10 node updater threads). This demonstrates the
10-fold increased parallelism from ~1 to 10.

There might be other solutions that could be explored, e.g. caching
nodes with an indexer/lister but otoh nfd doesn't necessarily need/want
to watch every little change in each node. We only need to get the node
when something in our own CRDs change (we don't react to any changes in
the node object itself). Using multiple clients was the most obvious
choice to solve the problem for now.
2024-04-15 19:00:30 +03:00
Links2004
8acff5ede6
Add armv7 support
This allows the nfd to run on arm devices like the Raspberry Pi > 2
with armv7 core or armv8 in 32Bit mode.

The build tests will only be run for linux/amd64 and linux/arm64.
Releases will be made for all Platforms.
2024-04-15 16:42:44 +02:00
Kubernetes Prow Robot
624c02e1e2
Merge pull request #1633 from marquiz/devel/validate-tests
apis/nfd/validate: loosen validation of feature annotations
2024-04-11 07:26:17 -07:00
Markus Lehtonen
7fbada8b86 apis/nfd/validate: more comprehensive unit tests
Also add license header to the test.go file and fix one bug in
MatchFeature validation.
2024-04-11 14:57:31 +03:00
Kubernetes Prow Robot
86a3817f31
Merge pull request #1662 from ArangoGutierrez/fixgenerated
Fix Make generate
2024-04-09 10:44:16 -07:00
Carlos Eduardo Arango Gutierrez
50d9874e72
Fix update_codegen
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-09 18:28:04 +02:00
Kubernetes Prow Robot
da7ca56a99
Merge pull request #1661 from kubernetes-sigs/dependabot/go_modules/api/nfd/google.golang.org/protobuf-1.33.0
api/nfd: run go mod tidy
2024-04-09 03:50:12 -07:00
Markus Lehtonen
a9167e6875 apis/nfd/validate: loosen validation of feature annotations
Don't require that the annotation value must conform to the (strict)
requirements of label values. In the Kubernetes API annotation values do
not have other restrictions than that the total size (keys and values)
of _all_ annotations combined of an object must not exceed 256kB.

This patch sets a maximum size limit of 1kB for the value of a single
feature annotation created by NFD. This limit is rather arbitrary but
should be enough for the NFD usage scenarios (until proven wrong).
2024-04-09 13:30:22 +03:00
dependabot[bot]
2f6a06df07 api/nfd: run go mod tidy
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2024-04-09 13:26:42 +03:00
Kubernetes Prow Robot
6b80f654d4
Merge pull request #1600 from ArangoGutierrez/e2e-not-k8s
Move NFD api to a separate go mod
2024-04-09 02:06:06 -07:00