1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/pkg/apis/nfd/v1alpha1/generate.sh
Markus Lehtonen 0e1d4a9046 apis/nfd: migrate pkg/api/feature
Move the previously-protobuf-only internal "feature api" over to the
public "nfd api" package. This is in preparation for introducing a new
CRD API for communicating features.

This patch carries no functional changes. Just moving code around.
2022-10-15 07:42:20 +03:00

12 lines
412 B
Bash
Executable file

#!/bin/sh -ex
go-to-protobuf \
--output-base=. \
--go-header-file ../../../../hack/boilerplate.go.txt \
--proto-import ../../../../vendor/ \
--packages +sigs.k8s.io/node-feature-discovery/pkg/apis/nfd/v1alpha1=v1alpha1 \
--keep-gogoproto=false \
--apimachinery-packages "-k8s.io/apimachinery/pkg/util/intstr"
mv sigs.k8s.io/node-feature-discovery/pkg/apis/nfd/v1alpha1/* .
rm -rf sigs.k8s.io