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

2692 commits

Author SHA1 Message Date
Kubernetes Prow Robot
0418e7ddf3
Merge pull request #1746 from tariq1890/prune-svc-account-name
ensure post-delete-job's service account matches ref in job spec
2024-06-27 08:57:17 -07:00
Tariq Ibrahim
8e1907f53f
ensure post-delete-job's service account matches ref in job spec
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
2024-06-17 14:09:26 -07:00
dependabot[bot]
bb27dae2c2
build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 10:47:51 +00:00
dependabot[bot]
bef78d64b8
build(deps): bump github.com/klauspost/cpuid/v2 from 2.2.7 to 2.2.8
Bumps [github.com/klauspost/cpuid/v2](https://github.com/klauspost/cpuid) from 2.2.7 to 2.2.8.
- [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.7...v2.2.8)

---
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-06-17 10:47:47 +00:00
Kubernetes Prow Robot
b384c2e125
Merge pull request #1742 from kubernetes-sigs/dependabot/go_modules/master/github.com/opencontainers/runc-1.1.13
build(deps): bump github.com/opencontainers/runc from 1.1.12 to 1.1.13
2024-06-17 03:46:52 -07:00
dependabot[bot]
10f546a865
build(deps): bump google.golang.org/protobuf from 1.34.1 to 1.34.2
Bumps google.golang.org/protobuf from 1.34.1 to 1.34.2.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-16 09:35:59 +00:00
dependabot[bot]
086d2f9d74
build(deps): bump github.com/opencontainers/runc from 1.1.12 to 1.1.13
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.12 to 1.1.13.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.12...v1.1.13)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-16 09:35:56 +00:00
Kubernetes Prow Robot
1179c115c1
Merge pull request #1739 from IbirbyZh/patch-1
Fix the problem with starting the master with empty cache
2024-06-10 11:42:26 -07:00
IbirbyZh
2f9801b554
Fix the problem with starting the master with empty cache
We faced the problem when master deleted some of labels on start. Sometimes he doesn't gets NodeFeatures when they are present in cluster because of empty cache in informer
2024-06-10 18:06:14 +02:00
Kubernetes Prow Robot
4628ea8ca1
Merge pull request #1738 from kubernetes-sigs/dependabot/go_modules/master/golang.org/x/net-0.26.0
build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0
2024-06-10 00:03:08 -07:00
dependabot[bot]
9b6200085c
build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.25.0 to 0.26.0.
- [Commits](https://github.com/golang/net/compare/v0.25.0...v0.26.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-06-09 09:23:24 +00:00
Kubernetes Prow Robot
fcced3ab4f
Merge pull request #1728 from budimanjojo/master
helm: remove defaults CPU limits
2024-06-07 01:13:11 -07:00
Kubernetes Prow Robot
72c0bdb4c2
Merge pull request #1729 from marquiz/devel/topology-ipv6
topology-updater: properly handle IPv6 from NODE_ADDRESS
2024-06-04 04:41:23 -07:00
Markus Lehtonen
dfbd63b728 topology-updater: properly handle IPv6 from NODE_ADDRESS
Fix the usage of IPv6 addresses for default kubelet configz endpoint.

The default host:port we use for kubelet configz endpoint is
${NODE_ADDRESS}:10250. Previously we errored out if NODE_ADDRESS was an
IPv6 address because we used an incorrect notation (without brackets).
The (IPv6) needs to be enclosed in brackets if specifying the port.
2024-06-04 14:19:57 +03:00
budimanjojo
3d62382cd1
helm: remove defaults CPU limits
Signed-off-by: budimanjojo <budimanjojo@gmail.com>
2024-05-30 11:55:34 +07:00
Markus Lehtonen
a088de7333 deployment/helm: enable specifying additional cmdline args 2024-05-28 20:09:08 +03:00
Kubernetes Prow Robot
560905fbee
Merge pull request #1722 from marquiz/devel/readme
Update readme to v0.16.0 release
2024-05-27 12:44:44 -07:00
Markus Lehtonen
9e20c681dc Update readme to v0.16.0 release 2024-05-27 21:35:40 +03:00
Kubernetes Prow Robot
ed09269cca
Merge pull request #1720 from marquiz/devel/gh-actions
Revert "build(deps): bump actions/checkout from 1 to 4"
2024-05-27 11:07:15 -07:00
Markus Lehtonen
3c47b4f32f Revert "build(deps): bump actions/checkout from 1 to 4"
Checkout v4 does some strange mangling of tags, basically overwrites our
signed/annotated tag with something like:

  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune \
    --no-recurse-submodules origin \
    +2e93c3fd478b6631dd7bda9c6ec66a9f99cafaa8:refs/tags/v0.16.0

Which breaks our gh-pages build on release branches/tags.

This reverts commit 130ef1070d.
2024-05-27 20:59:56 +03:00
Kubernetes Prow Robot
cdf94eb599
Merge pull request #1718 from marquiz/devel/nfg-docs
docs: add more cross-references to NodeFeatureGroup API
2024-05-27 03:56:06 -07:00
Markus Lehtonen
bec9297fe7 docs: add more cross-references to NodeFeatureGroup API 2024-05-27 13:41:15 +03:00
Kubernetes Prow Robot
dc52c507e7
Merge pull request #1717 from kubernetes-sigs/dependabot/go_modules/master/github.com/onsi/ginkgo/v2-2.19.0
build(deps): bump github.com/onsi/ginkgo/v2 from 2.17.3 to 2.19.0
2024-05-27 00:20:50 -07:00
dependabot[bot]
00a0552b14
build(deps): bump github.com/onsi/ginkgo/v2 from 2.17.3 to 2.19.0
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.17.3 to 2.19.0.
- [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.3...v2.19.0)

---
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-05-26 09:39:17 +00:00
Kubernetes Prow Robot
28079efacb
Merge pull request #1716 from marquiz/devel/docs-helm-feature-gates
docs/helm: document all feature gates
2024-05-24 06:17:10 -07:00
Markus Lehtonen
28c852c9bd docs/helm: document all feature gates
Also, small correction to the description of the
featureGates.NodeFeatureAPI parameter.
2024-05-24 16:02:31 +03:00
Kubernetes Prow Robot
4136a69545
Merge pull request #1715 from marquiz/devel/avx10-deprecate
source/cpu: disable AVX10 label
2024-05-24 04:53:59 -07:00
Kubernetes Prow Robot
891d163990
Merge pull request #1673 from marquiz/devel/avx10
cpu: advertise AVX10 version
2024-05-24 04:20:14 -07:00
Markus Lehtonen
ece6076dd4 source/cpu: disable AVX10 label
Disable AVX10 as unnecessary as AVX10_LEVEL is better suited for
checking AVX10 compatibility. There is not yet any hardware with the
feature so disabling it shouldn't cause problems for users.
2024-05-24 13:50:46 +03:00
Markus Lehtonen
fa2f008d18 cpu: advertise AVX10 version
Add new cpuid label "feature.node.kubernetes.io/cpu-cpuid.AVX10_VERSION"
that advertises the supported version of AVX10 vector ISA.
Correspondingly, the patch adds AVX10_VERSION to the "cpu.cpuid" feature
for NodeFeatureRules to consume.

This makes cpu.cpuid on amd64 architecture a "multi-type" feature in
that it contains "flags" and potentially also "attributes" (the only
cpuid attribute so far is the AVX10_VERSION).
2024-05-24 13:48:20 +03:00
Kubernetes Prow Robot
814255b7f1
Merge pull request #1671 from marquiz/devel/nfd-api-multi-type-feature
apis/nfd: allow different types of features of the same name
2024-05-24 03:42:30 -07:00
Markus Lehtonen
bb565c0949 source: allow multi-type features
Allow multiple types of features (flags, attributes, instances) under
the same name.
2024-05-24 13:18:31 +03:00
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