1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

hack/generate: patch auto-generated deepcopy functions

Temporary (hopefully) fix for deepcopy functions that code-generator
doesn't get quite right.
This commit is contained in:
Markus Lehtonen 2024-01-18 17:13:03 +02:00
parent 22cd9d3d18
commit ef4ac7c5d3

View file

@ -30,5 +30,10 @@ rm -rf pkg/generated
mv sigs.k8s.io/node-feature-discovery/pkg/generated pkg/
# HACK: manually patching the auto-generated code as code-generator cannot
# properly handle deepcopy of MatchExpressionSet.
sed s'/out = new(map\[string\]\*MatchExpression)/out = new(MatchExpressionSet)/' -i pkg/apis/nfd/v1alpha1/zz_generated.deepcopy.go
rm -rf sigs.k8s.io