1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
Commit graph

19 commits

Author SHA1 Message Date
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
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
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
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
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
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
Carlos Eduardo Arango Gutierrez
3434557d7c
Move NFD api to a separate go mod
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-05 16:35:47 +02:00
Carlos Eduardo Arango Gutierrez
dd24e8bc97
Update generate scripts to use latest code_gen functions
Rewrite the generate.sh into update_codegen inspired in
k8s.io/code-generator documentation.

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-03-12 11:35:47 +01:00
Markus Lehtonen
ef4ac7c5d3 hack/generate: patch auto-generated deepcopy functions
Temporary (hopefully) fix for deepcopy functions that code-generator
doesn't get quite right.
2024-01-18 17:15:09 +02:00
Carlos Eduardo Arango Gutierrez
f5d04fca6b
Fix Usage example for prepare-release.sh
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2023-04-26 11:15:18 +02:00
Markus Lehtonen
e5d83d031b hack/prepare-release.sh: fix name of one e2e test file 2023-04-17 23:43:49 +03:00
Muyassarov, Feruzjon
99595f5fab omit go version control information (buildvcs)
Omit go version control information (buildvcs), otherwise
go command fails to obtain vcs status as shown below:

error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.

Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
2023-03-11 22:14:24 +02:00
Markus Lehtonen
59ebff46c9 apis/nfd: add CRD for communicating node features
Add a new NodeFeature CRD to the nfd Kubernetes API to communicate node
features over K8s api objects instead of gRPC. The new resource is
namespaced which will help the management of multiple NodeFeature
objects per node. This aims at enabling 3rd party detectors for custom
features.

In addition to communicating raw features the NodeFeature object also
has a field for directly requesting labels that should be applied on the
node object.

Rename the crd deployment file to nfd-api-crds.yaml so that it matches
the new content of the file. Also, rename the Helm subdir for CRDs to
match the expected chart directory structure.
2022-12-14 07:31:28 +02:00
Markus Lehtonen
97590e200a scripts: move hacky scripts to hack directory
Move prepare-release.sh and kustomize.sh from scripts/ to hack/.
2022-09-13 17:58:09 +03:00
Markus Lehtonen
acdc632935 helm: rename "manifests" subdir to "crds"
Rename the Helm subdir that contains CRD(s) to match the expected chart
directory structure.
2022-08-19 14:58:01 +03:00
Markus Lehtonen
676d14688c Containerized auto-generation
Run code auto-generation inside a container instead of the host system.
Our auto-generation depends on specific versions of a multitude of tools
(like k8s code-generator, controller-gen, protoc, mockery etc). This
made it really awkward (and error-prone) to run in the host environment,
especially if/when you needed different versions of those tools for
other projects. Making it even more unwieldy, the required versions of
tools were not neatly documented anywhere (except for git commits,
perhaps).

With this patch we have a "fixed environment", as we build a special
auto-generate-builder container which has correct versions of all the
dependencies. Using the container makes auto-generation easy to run
anywhere, independent of the host system, giving reproducibility and
reliability. Also, the patch moves the auto-generation steps out from
the makefile into a separate script, making the makefile cleaner and the
script easier to maintain.
2022-08-10 09:44:43 +03:00
Zvonko Kaiser
c69e47a27a Iniital multi arch build 2022-01-20 15:41:08 +01:00
Markus Lehtonen
d4d9a03732 grpc: extend the API to send raw features
Enable transmitting the discovered "raw" features over the gRPC API.

Extend pkg/api/feature with protobuf and gRPC code. In this, utilize
go-to-protobuf from k8s code-generator for auto-generating the gRPC
interface from golang code. The tool can be Installed with:

  go install k8s.io/code-generator/cmd/go-to-protobuf@v0.20.7

The auto-generated code is (re-)generated/updated with "make apigen".
2021-11-16 17:32:28 +02:00