Markus Lehtonen
3b448ae623
apis/nfd: allow different types of features of the same name
...
This patch changes the handling of NodeFeatureRules so that one feature
name (say "cpu.cpuid") can hold different types of features (flags,
attributes and/or instances). Requiring features to choose one single
type has not been a limitation of the API itself (and there has been no
validation on this) but an implementation decision.
The new evalutation logic of match expressions is such that "flags" and
"attributes" are basically evaluated as an union - they are both maps
but "flags" just don't have any value associated with the key. However,
"instances" are handled separately as that is basically an array of
maps and needs to be evaluated in a different way (loop over the array
of instances and evaluate expressions against the attributes of each).
Because of this difference care must be taken if mixing "instance"
features with "flag" and/or "attribute" features.
Note that the API types or their validation is not changed - just the
implementation of how the NodeFeatureRules are evaluated.
2024-05-24 13:18:31 +03:00
Kubernetes Prow Robot
5fe3433e35
Merge pull request #1713 from marquiz/devel/worker-log-fix
...
nfd-worker: improved log when creating NodeFeature object
2024-05-24 02:15:30 -07:00
Kubernetes Prow Robot
80d74cd24d
Merge pull request #1714 from marquiz/devel/api-document-fields
...
api/nfd: document all undocumented fields in the types
2024-05-24 01:52:11 -07:00
Markus Lehtonen
b3d6282d2c
api/nfd: document all undocumented fields in the types
2024-05-23 23:49:49 +03:00
Kubernetes Prow Robot
f3051f2601
Merge pull request #1487 from ArangoGutierrez/clusterfeature
...
Add NodeFeatureGroup API
2024-05-23 11:39:11 -07:00
Carlos Eduardo Arango Gutierrez
47c054e1db
Add NodeFeatureGroup CRD
...
The NodeFeatureGroup is an NFD-specific custom resource that is designed for
grouping nodes based on their features. NFD-Master watches for NodeFeatureGroup
objects in the cluster and updates the status of the NodeFeatureGroup object
with the list of nodes that match the feature group rules. The NodeFeatureGroup
rules follow the same syntax as the NodeFeatureRule rules.
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-05-23 16:34:08 +02:00
Markus Lehtonen
649036977e
nfd-worker: improved log when creating NodeFeature object
...
Don't log an empty NodeFeature object.
2024-05-23 14:37:26 +03:00
Kubernetes Prow Robot
6644b6a7f6
Merge pull request #1711 from kubernetes-sigs/dependabot/go_modules/master/github.com/onsi/ginkgo/v2-2.17.3
...
build(deps): bump github.com/onsi/ginkgo/v2 from 2.17.2 to 2.17.3
2024-05-19 23:41:26 -07:00
Kubernetes Prow Robot
5dfe1c86c7
Merge pull request #1709 from kubernetes-sigs/dependabot/bundler/docs/rexml-3.2.8
...
build(deps): bump rexml from 3.2.6 to 3.2.8 in /docs
2024-05-19 23:23:27 -07:00
dependabot[bot]
902d374a88
build(deps): bump github.com/onsi/ginkgo/v2 from 2.17.2 to 2.17.3
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.17.2 to 2.17.3.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.17.2...v2.17.3 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-19 09:42:17 +00:00
dependabot[bot]
2943be2cf4
build(deps): bump rexml from 3.2.6 to 3.2.8 in /docs
...
Bumps [rexml](https://github.com/ruby/rexml ) from 3.2.6 to 3.2.8.
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.2.6...v3.2.8 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 21:34:05 +00:00
Kubernetes Prow Robot
eda85439fa
Merge pull request #1708 from marquiz/devel/nf-feature-gate
...
Re-add -enable-nodefeature-api cmdline flag
2024-05-16 01:11:57 -07:00
Markus Lehtonen
560bd11d85
Re-add -enable-nodefeature-api cmdline flag
...
Bring back the -enable-nodefeature-api command line flag and the
corresponding enableNodeFeatureApi helm config value that were
removed without deprecation when the NodeFeatureAPI feature gate was
introduced. The thinking behind this change is to not break existing
users (without warning) unless totally unavoidable. Now the
-enable-nodefeature-api flag is marked as deprecated and slated for
removal in NFD v0.17.
The NodeFeatureAPI feature gate and the -enable-nodefeature-api flag
work together so that the NodeFeature API is disabled (gRPC is enabled,
instead) if either of them is set to false.
This patch selectively reverts parts of
06c4733bc5
.
2024-05-16 10:53:49 +03:00
Kubernetes Prow Robot
fc382947aa
Merge pull request #1707 from marquiz/devel/ns-feature-gate
...
nfd-master: add DisableAutoPrefix feature gate
2024-05-15 10:31:54 -07:00
Markus Lehtonen
121345472d
nfd-master: add DisableAutoPrefix feature gate
...
Now that we have support for feature gates deprecate the autoDefaultNs
config option of nfd-master and replace it with a new alpha feature gate
DisableAutoPrefix (defaults to false). Using a feature gate to handle
and communicate these kind of changes, where the default behavior is
intended to be changed in a future release, feels much more natural than
using random flags/options.
The combined logic of the feature gate and the config option is a
logical OR over disabling auto-prefixing. That is, auto-prefixing is
disabled if either the feature gate or the config options is used set to
disable it:
| DisableAutoPrefix (feature gate)
| false | true
-------------------- | --------------------------------
autoDefaultNs true | ON | OFF
(config opt) false | OFF | OFF
2024-05-15 17:01:16 +03:00
Markus Lehtonen
eb7a0ada5c
nfd-master: import features package as nfdfeatures
...
Refactoring to prevent naming clash in future changes.
2024-05-15 11:27:46 +03:00
Kubernetes Prow Robot
5d9266bd6c
Merge pull request #1705 from kubernetes-sigs/dependabot/go_modules/master/github.com/k8stopologyawareschedwg/podfingerprint-0.2.2
...
build(deps): bump github.com/k8stopologyawareschedwg/podfingerprint from 0.1.2 to 0.2.2
2024-05-14 05:45:11 -07:00
Kubernetes Prow Robot
f2a94c6559
Merge pull request #1703 from kubernetes-sigs/dependabot/go_modules/master/google.golang.org/protobuf-1.34.1
...
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.1
2024-05-14 05:17:11 -07:00
dependabot[bot]
125532d859
build(deps): bump google.golang.org/protobuf from 1.33.0 to 1.34.1
...
Bumps google.golang.org/protobuf from 1.33.0 to 1.34.1.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 09:53:15 +00:00
Kubernetes Prow Robot
77fdaaf3fe
Merge pull request #1706 from kubernetes-sigs/dependabot/bundler/docs/nokogiri-1.16.5
...
build(deps-dev): bump nokogiri from 1.16.2 to 1.16.5 in /docs
2024-05-14 00:39:11 -07:00
Kubernetes Prow Robot
d7ef8b6705
Merge pull request #1702 from kubernetes-sigs/dependabot/go_modules/master/google.golang.org/grpc-1.63.2
...
build(deps): bump google.golang.org/grpc from 1.60.1 to 1.63.2
2024-05-14 00:25:11 -07:00
dependabot[bot]
4863c022e9
build(deps-dev): bump nokogiri from 1.16.2 to 1.16.5 in /docs
...
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri ) from 1.16.2 to 1.16.5.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases )
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.16.2...v1.16.5 )
---
updated-dependencies:
- dependency-name: nokogiri
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 23:37:53 +00:00
dependabot[bot]
2f77ef8cbe
build(deps): bump google.golang.org/grpc from 1.60.1 to 1.63.2
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.60.1 to 1.63.2.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.60.1...v1.63.2 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-12 16:35:58 +00:00
Kubernetes Prow Robot
eef9912bab
Merge pull request #1701 from kubernetes-sigs/dependabot/go_modules/master/golang.org/x/net-0.25.0
...
build(deps): bump golang.org/x/net from 0.24.0 to 0.25.0
2024-05-12 09:35:03 -07:00
dependabot[bot]
8f3bf22cc0
build(deps): bump github.com/k8stopologyawareschedwg/podfingerprint
...
Bumps [github.com/k8stopologyawareschedwg/podfingerprint](https://github.com/k8stopologyawareschedwg/podfingerprint ) from 0.1.2 to 0.2.2.
- [Commits](https://github.com/k8stopologyawareschedwg/podfingerprint/compare/v0.1.2...v0.2.2 )
---
updated-dependencies:
- dependency-name: github.com/k8stopologyawareschedwg/podfingerprint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-12 09:06:27 +00:00
dependabot[bot]
4d92da8037
build(deps): bump golang.org/x/net from 0.24.0 to 0.25.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/net/compare/v0.24.0...v0.25.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-05-12 09:06:11 +00:00
Kubernetes Prow Robot
ff1b3f4520
Merge pull request #1697 from kubernetes-sigs/dependabot/go_modules/master/github.com/k8stopologyawareschedwg/noderesourcetopology-api-0.1.2
...
build(deps): bump github.com/k8stopologyawareschedwg/noderesourcetopology-api from 0.1.0 to 0.1.2
2024-05-06 02:08:38 -07:00
dependabot[bot]
b277c9d397
build(deps): bump github.com/k8stopologyawareschedwg/noderesourcetopology-api
...
Bumps [github.com/k8stopologyawareschedwg/noderesourcetopology-api](https://github.com/k8stopologyawareschedwg/noderesourcetopology-api ) from 0.1.0 to 0.1.2.
- [Release notes](https://github.com/k8stopologyawareschedwg/noderesourcetopology-api/releases )
- [Commits](https://github.com/k8stopologyawareschedwg/noderesourcetopology-api/compare/v0.1.0...v0.1.2 )
---
updated-dependencies:
- dependency-name: github.com/k8stopologyawareschedwg/noderesourcetopology-api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 08:18:35 +00:00
Kubernetes Prow Robot
0fbde6bf65
Merge pull request #1699 from kubernetes-sigs/dependabot/go_modules/master/github.com/onsi/gomega-1.33.1
...
build(deps): bump github.com/onsi/gomega from 1.33.0 to 1.33.1
2024-05-06 01:16:41 -07:00
Kubernetes Prow Robot
d10d57e492
Merge pull request #1698 from kubernetes-sigs/dependabot/go_modules/master/github.com/google/uuid-1.6.0
...
build(deps): bump github.com/google/uuid from 1.5.0 to 1.6.0
2024-05-06 01:16:35 -07:00
Kubernetes Prow Robot
c89deea6f0
Merge pull request #1696 from kubernetes-sigs/dependabot/go_modules/master/github.com/stretchr/testify-1.9.0
...
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0
2024-05-06 01:16:26 -07:00
Kubernetes Prow Robot
2993115999
Merge pull request #1695 from kubernetes-sigs/dependabot/go_modules/master/github.com/klauspost/cpuid/v2-2.2.7
...
build(deps): bump github.com/klauspost/cpuid/v2 from 2.2.6 to 2.2.7
2024-05-06 01:16:17 -07:00
Kubernetes Prow Robot
b6084511d2
Merge pull request #1694 from marquiz/devel/selinux
...
source/kernel: silence misleading error on selinux detection
2024-05-06 00:47:56 -07:00
dependabot[bot]
811eb90a9f
build(deps): bump github.com/onsi/gomega from 1.33.0 to 1.33.1
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.33.0 to 1.33.1.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.33.0...v1.33.1 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-05 09:20:26 +00:00
dependabot[bot]
c622633ff2
build(deps): bump github.com/google/uuid from 1.5.0 to 1.6.0
...
Bumps [github.com/google/uuid](https://github.com/google/uuid ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/google/uuid/releases )
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md )
- [Commits](https://github.com/google/uuid/compare/v1.5.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/google/uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-05 09:20:21 +00:00
dependabot[bot]
1737bc8666
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-05 09:20:14 +00:00
dependabot[bot]
63f0192c6c
build(deps): bump github.com/klauspost/cpuid/v2 from 2.2.6 to 2.2.7
...
Bumps [github.com/klauspost/cpuid/v2](https://github.com/klauspost/cpuid ) from 2.2.6 to 2.2.7.
- [Release notes](https://github.com/klauspost/cpuid/releases )
- [Changelog](https://github.com/klauspost/cpuid/blob/master/.goreleaser.yml )
- [Commits](https://github.com/klauspost/cpuid/compare/v2.2.6...v2.2.7 )
---
updated-dependencies:
- dependency-name: github.com/klauspost/cpuid/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-05 09:20:10 +00:00
Kubernetes Prow Robot
b9770b1704
Merge pull request #1684 from marquiz/devel/buildx-builder-name
...
build: specify buildx builder name everywhere
2024-05-02 05:31:23 -07:00
Markus Lehtonen
ce66121d3c
source/kernel: silence misleading error on selinux detection
...
Silence a irrelevant error that was printed in case /sys/fs/selinux/
directory exists but selinuxfs is not mounted (i.e. the dir is empty).
2024-05-02 11:07:23 +03:00
Kubernetes Prow Robot
c2e3de68f6
Merge pull request #1693 from marquiz/devel/nfd-api-tests
...
apis/nfd: increase unit test coverage
2024-04-30 06:22:39 -07:00
Markus Lehtonen
bad7d1fcb1
apis/nfd: increase unit test coverage
...
Cover error cases of the "match name" functions.
2024-04-30 16:02:13 +03:00
Kubernetes Prow Robot
18980d8d59
Merge pull request #1688 from kubernetes-sigs/dependabot/go_modules/master/github.com/jaypipes/ghw-0.12.0
...
build(deps): bump github.com/jaypipes/ghw from 0.8.1-0.20210827132705-c7224150a17e to 0.12.0
2024-04-30 01:04:30 -07:00
Kubernetes Prow Robot
e2a66e6d71
Merge pull request #1690 from kubernetes-sigs/dependabot/go_modules/master/github.com/onsi/ginkgo/v2-2.17.2
...
build(deps): bump github.com/onsi/ginkgo/v2 from 2.15.0 to 2.17.2
2024-04-29 12:46:35 -07:00
dependabot[bot]
003dfdfe0d
build(deps): bump github.com/onsi/ginkgo/v2 from 2.15.0 to 2.17.2
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.15.0 to 2.17.2.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.15.0...v2.17.2 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 17:15:35 +00:00
Kubernetes Prow Robot
0c4d1f405f
Merge pull request #1692 from kubernetes-sigs/dependabot/go_modules/master/github.com/onsi/gomega-1.33.0
...
build(deps): bump github.com/onsi/gomega from 1.31.0 to 1.33.0
2024-04-29 10:10:12 -07:00
Kubernetes Prow Robot
d3efe28839
Merge pull request #1691 from kubernetes-sigs/dependabot/go_modules/master/sigs.k8s.io/yaml-1.4.0
...
build(deps): bump sigs.k8s.io/yaml from 1.3.0 to 1.4.0
2024-04-29 09:44:56 -07:00
Kubernetes Prow Robot
193921d5d4
Merge pull request #1689 from kubernetes-sigs/dependabot/go_modules/master/golang.org/x/net-0.24.0
...
build(deps): bump golang.org/x/net from 0.23.0 to 0.24.0
2024-04-29 09:44:42 -07:00
Kubernetes Prow Robot
c763ea99db
Merge pull request #1687 from kubernetes-sigs/dependabot/github_actions/master/actions/checkout-4
...
build(deps): bump actions/checkout from 1 to 4
2024-04-29 09:22:21 -07:00
Kubernetes Prow Robot
80ad416a54
Merge pull request #1686 from kubernetes-sigs/dependabot/github_actions/master/azure/setup-helm-4
...
build(deps): bump azure/setup-helm from 3 to 4
2024-04-29 09:19:39 -07:00
dependabot[bot]
2f50f17c8e
build(deps): bump github.com/onsi/gomega from 1.31.0 to 1.33.0
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.31.0 to 1.33.0.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.31.0...v1.33.0 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 16:05:36 +00:00