Skip to content

Commit 0cbab37

Browse files
authored
Merge pull request #1553 from marquiz/devel/hack
hack/generate: patch auto-generated deepcopy functions
2 parents 22cd9d3 + ef4ac7c commit 0cbab37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hack/generate.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@ rm -rf pkg/generated
3030

3131
mv sigs.k8s.io/node-feature-discovery/pkg/generated pkg/
3232

33+
34+
# HACK: manually patching the auto-generated code as code-generator cannot
35+
# properly handle deepcopy of MatchExpressionSet.
36+
sed s'/out = new(map\[string\]\*MatchExpression)/out = new(MatchExpressionSet)/' -i pkg/apis/nfd/v1alpha1/zz_generated.deepcopy.go
37+
3338
rm -rf sigs.k8s.io
3439

0 commit comments

Comments
 (0)